ML Reference
ml::Matrix2Field Class Reference

Field encapsulating a 2x2 matrix. More...

#include <mlFields.h>

Inheritance diagram for ml::Matrix2Field:
ml::Field

List of all members.

Public Member Functions

 Matrix2Field (const std::string &name="")
 Constructor, creates a field with a name to manage a 2x2 matrix initialized to the unit matrix by default.
void setStringValue (const std::string &stringValue)
 Sets the field value to stringValue="a11 a12 a21 a22".
void setMatrixValue (const Matrix2 &matrixValue)
 Sets the value of the field to matrixValue.
void setMatrix2Value (const Matrix2 &matrixValue)
 Sets the value of the field to matrixValue; same as setMatrixValue for symmetry to other fields.
std::string getStringValue () const
 Returns the value of the field as a string value.
const Matrix2getMatrixValue () const
 Returns the value of the field.
const Matrix2getMatrix2Value () const
 Returns the value of the field; same as getMatrixValue for symmetry to other fields.
Deprecated
void setMat2fValue (const Matrix2 &value)
void setMat2Value (const Matrix2 &value)
const Matrix2getMat2Value () const

Protected Member Functions

virtual void setValueFromField (const Field &field)
 Reimplementation from Field which copies the field value more efficiently.

Detailed Description

Field encapsulating a 2x2 matrix.

Definition at line 1775 of file mlFields.h.


Constructor & Destructor Documentation

ml::Matrix2Field::Matrix2Field ( const std::string &  name = "")

Constructor, creates a field with a name to manage a 2x2 matrix initialized to the unit matrix by default.


Member Function Documentation

const Matrix2& ml::Matrix2Field::getMat2Value ( ) const [inline]
Deprecated:
Use getMatrix2Value instead.

Definition at line 1831 of file mlFields.h.

const Matrix2& ml::Matrix2Field::getMatrix2Value ( ) const

Returns the value of the field; same as getMatrixValue for symmetry to other fields.

const Matrix2& ml::Matrix2Field::getMatrixValue ( ) const

Returns the value of the field.

std::string ml::Matrix2Field::getStringValue ( ) const [virtual]

Returns the value of the field as a string value.

setStringValue must be able to reinterpret this returned string correctly.

Implements ml::Field.

void ml::Matrix2Field::setMat2fValue ( const Matrix2 value) [inline]
Deprecated:
Use setMatrix2Value instead.

Definition at line 1825 of file mlFields.h.

void ml::Matrix2Field::setMat2Value ( const Matrix2 value) [inline]
Deprecated:
Use setMatrix2Value instead.

Definition at line 1828 of file mlFields.h.

void ml::Matrix2Field::setMatrix2Value ( const Matrix2 matrixValue)

Sets the value of the field to matrixValue; same as setMatrixValue for symmetry to other fields.

void ml::Matrix2Field::setMatrixValue ( const Matrix2 matrixValue)

Sets the value of the field to matrixValue.

void ml::Matrix2Field::setStringValue ( const std::string &  stringValue) [virtual]

Sets the field value to stringValue="a11 a12 a21 a22".

If less than 4 valid numbers can be scanned in string then all components are set to 0.

Implements ml::Field.

virtual void ml::Matrix2Field::setValueFromField ( const Field field) [protected, virtual]

Reimplementation from Field which copies the field value more efficiently.

Reimplemented from ml::Field.


The documentation for this class was generated from the following file: