9 #ifndef VECTORARRAY_H_INCLUDED
10 #define VECTORARRAY_H_INCLUDED
53 std::vector<std::vector<T>> elems;
57 void assign(
int nR,
int nC, T newelem);
58 void size(
int &nR,
int &nC)
const
68 return (elems.size());
72 for (
int ii = 0; ii < int(elems.size()); ii++)
78 void write(std::ostream &streamout,
const char *sep =
", ")
const;
79 std::vector<T> &operator[](
const int a)
83 if (((a) >=
int(elems.size())) | (0 > a))
85 std::cerr <<
"Error in " << __PRETTY_FUNCTION__ << std::endl;
92 const std::vector<T> &operator[](
const int a)
const
96 if (((a) >=
int(elems.size())) | (0 > a))
98 std::cerr <<
"Error in " << __PRETTY_FUNCTION__ << std::endl;
Template class for vector of vectors (matrix).
File for the implementation of the class template vectorarray this .cpp file is INCLUDED as part of v...
Provides the error and warning system used by the RSVS3D project.
#define RSVS3D_ERROR_RANGE(M)
Throw a range_error.