Generic key whose converter type is StdMatrix. More...
#include "keyvalue/key/generic/Matrix.h"
Public Types | |
enum | |
typedef Traits< ElementType, StdMatrix, Default > | Traits_ |
typedef StdMatrix< typename Default< ElementType > ::OutputType_ > | ConverterType_ |
typedef ConverterType_::InputType_ | InputType_ |
typedef ConverterType_::OutputType_ | OutputType_ |
Public Member Functions | |
Matrix (const string &name) | |
Constructs the key and sets its name. | |
Matrix (const string &name, size_t nRows, size_t nCols_) | |
Constructs the key and sets its name and the expected dimension of the StdMatrix content. | |
string | getName () const |
Gets Key's name. | |
void | setName (const string &name) |
Sets name. | |
Private Member Functions | |
void | checkSize (size_t nRows, size_t nCols) const |
Checks if given and expected dimensions match. | |
Private Attributes | |
size_t | nRows_ |
size_t | nCols_ |
Generic key whose converter type is StdMatrix.
ElementType | : (template parameter) Matrix element type. |
Matrix | ( | const string & | name, | |
size_t | nRows, | |||
size_t | nCols_ | |||
) | [inline] |
void checkSize | ( | size_t | nRows, | |
size_t | nCols | |||
) | const [inline, private] |
Checks if given and expected dimensions match.
nRows | : Expected number of rows; | |
nCols | : Expected number of columns. |
RuntimeError : If given and expected dimension do not match.
string getName | ( | ) | const [inherited] |
void setName | ( | const string & | name | ) | [inherited] |
Sets name.
name | : The name. |