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.
void updateMatrix2Value (const Matrix2 &matrixValue)
 Sets the value of the field to matrixValue, but only touch field if the new value is different from the old value.
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 1841 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 1902 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 1896 of file mlFields.h.

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

Definition at line 1899 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.

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

Sets the value of the field to matrixValue, but only touch field if the new value is different from the old value.

(NOTE that values must be identical to avoid touching the field!)


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