X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fstructures%2Fmatrix.h;h=5fd552503ed6a9918363776bc8eab27b3b1e60d7;hb=fa33ec7512eb5a32e25abeb266c24661cad9447b;hp=ddd733472a94066da33448693798a12e3fcf1150;hpb=936edc460f256ba5ddba2ad1c80e8d278b9608cc;p=feisty_meow.git diff --git a/nucleus/library/structures/matrix.h b/nucleus/library/structures/matrix.h index ddd73347..5fd55250 100644 --- a/nucleus/library/structures/matrix.h +++ b/nucleus/library/structures/matrix.h @@ -31,7 +31,7 @@ template class matrix : protected basis::array { public: - matrix(int rows = 0, int cols = 0, contents *data = NIL); + matrix(int rows = 0, int cols = 0, contents *data = NULL_POINTER); //!< the "data" array must have at least "rows" * "cols" contents in it. matrix(const matrix &to_copy); @@ -54,7 +54,7 @@ public: /*!< the result can be used as a pointer to the whole row of data, or it can be indexed into by column to find a row/column position. this is dangerous if one is not careful about ensuring that the column used is - within bounds. if the "row" parameter is out of bounds, then NIL is + within bounds. if the "row" parameter is out of bounds, then NULL_POINTER is returned. */ const contents *operator[] (int row) const; //!< dangerous: constant peek into data for "row" in underlying contents. @@ -111,7 +111,7 @@ private: class int_matrix : public matrix { public: - int_matrix(int rows = 0, int cols = 0, int *data = NIL) + int_matrix(int rows = 0, int cols = 0, int *data = NULL_POINTER) : matrix(rows, cols, data) {} int_matrix(const matrix &to_copy) : matrix(to_copy) {} }; @@ -120,7 +120,7 @@ public: class string_matrix : public matrix { public: - string_matrix(int rows = 0, int cols = 0, basis::astring *data = NIL) + string_matrix(int rows = 0, int cols = 0, basis::astring *data = NULL_POINTER) : matrix(rows, cols, data) {} string_matrix(const matrix &to_copy) : matrix(to_copy) {} }; @@ -129,7 +129,7 @@ public: class double_matrix : public matrix { public: - double_matrix(int rows = 0, int cols = 0, double *data = NIL) + double_matrix(int rows = 0, int cols = 0, double *data = NULL_POINTER) : matrix(rows, cols, data) {} double_matrix(const matrix &to_copy) : matrix(to_copy) {} };