Skip to content

Commit

Permalink
DOC: Document constructors and assignment operators of Array2D
Browse files Browse the repository at this point in the history
Anticipating adding one more constructor.
  • Loading branch information
N-Dekker committed Mar 7, 2024
1 parent 091a270 commit 88e4f10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Modules/Core/Common/include/itkArray2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,23 @@ class ITK_TEMPLATE_EXPORT Array2D : public vnl_matrix<TValue>
using Self = Array2D;
using VnlMatrixType = vnl_matrix<TValue>;

/** Default-constructor. Creates a matrix of size zero (0 rows and 0 columns). */
Array2D() = default;

/** Constructs a matrix of the specified number of rows and columns. */
Array2D(unsigned int numberOfRows, unsigned int numberOfCols);

/** Copy-constructor. */
Array2D(const Self & array);

/** Converting constructor. Implicitly converts the specified matrix to an Array2D. */
Array2D(const VnlMatrixType & matrix);

/** Copy-assignment operator. */
Self &
operator=(const Self & array);

/** Assigns the specified matrix to an Array2D. */
Self &
operator=(const VnlMatrixType & matrix);

Expand Down

0 comments on commit 88e4f10

Please sign in to comment.