7 template<
int N,
int Size,
class P,
class B>
struct VectorFiller
14 :v(v_),parent(p),underfill(N<v.size())
27 #ifndef TOON_NDEBUG_FILL
30 #ifdef TOON_TEST_INTERNALS
31 throw Internal::Underfill();
33 std::cerr <<
"TooN: underfilled vector\n";
38 parent->underfill = 0;
58 template<
int N,
int R,
int C,
class P,
class B>
struct MatrixFiller
65 MatrixFiller(
Matrix<R, C, P, B>& m_,
MatrixFiller<N-1, R, C, P, B>*p,
int r_,
int c_)
66 :m(m_),parent(p),r(r_),c(c_),underfill(r < m.num_rows())
85 #ifndef TOON_NDEBUG_FILL
88 #ifdef TOON_TEST_INTERNALS
89 throw Internal::Underfill();
91 std::cerr <<
"TooN: underfilled matrix\n";
96 parent->underfill = 0;
Internal::MatrixStartFill< R, C, Precision, Base > Fill(Matrix< R, C, Precision, Base > &m)
VectorFiller< N-1, Size, P, B > * parent
VectorStartFill(Vector< Size, P, B > &v_)
MatrixStartFill(Matrix< R, C, P, B > &m_)
MatrixFiller< N+1, R, C, P, B > operator,(const P &p)
Everything lives inside this namespace.
VectorFiller< 1, Size, P, B > operator=(const P &p)
MatrixFiller(Matrix< R, C, P, B > &m_, MatrixFiller< N-1, R, C, P, B > *p, int r_, int c_)
MatrixFiller< N-1, R, C, P, B > * parent
VectorFiller< N+1, Size, P, B > operator,(const P &p)
VectorFiller(Vector< Size, P, B > &v_, VectorFiller< N-1, Size, P, B > *p)
MatrixFiller< 1, R, C, P, B > operator=(const P &p)