35 #include "../bfl_err.h" 36 #include "../wrappers/matrix/vector_wrapper.h" 37 #include "../wrappers/matrix/matrix_wrapper.h" 59 Sample (
unsigned int dimension = 0);
71 const T& ValueGet ( )
const;
74 unsigned int DimensionGet ()
const;
77 void DimensionSet (
unsigned int dim);
83 void ValueSet (
const T& value );
90 template <
typename S>
friend ostream &
operator<< (ostream & stream,
93 template <
typename S>
friend istream &
operator>> (istream & stream,
155 template <
typename S> ostream & operator<< (ostream & stream, Sample<S> & my_sample)
157 stream << my_sample.
ValueGet() << endl;
180 #include "sample.cpp"
std::basic_ostream< E, T > & operator<<(std::basic_ostream< E, T > &os, const vector_expression< VE > &v)
output stream operator for vector expressions
Sample & operator=(const Sample &my_sample)
Operator =.
std::basic_istream< E, T > & operator>>(std::basic_istream< E, T > &is, vector< VT, VA > &v)
input stream operator for vectors
void ValueSet(const T &value)
Set the value of the Sample.
T & ValueGet()
Get the value of the Sample.
virtual ~Sample()
Destructor.
Sample(unsigned int dimension=0)
Constructor.