![]() |
#include <core/MatrixValue.hpp>


Public Member Functions | |
| MatrixValue () | |
| MatrixValue (const MatrixValue &Val) | |
| MatrixValue (unsigned long ColsNbr, unsigned long RowsNbr) | |
| MatrixValue (unsigned long ColsNbr, unsigned long RowsNbr, double InitValue) | |
| virtual | ~MatrixValue () |
| Value & | operator= (const Value &Other) |
| Type | getType () const |
| Value * | clone () const |
| void | writeToStream (std::ostream &OutStm) const |
| void | writeQuotedToStream (std::ostream &OutStm) const |
Public Member Functions inherited from openfluid::core::CompoundValue | |
| CompoundValue () | |
| bool | isSimple () const |
| bool | isCompound () const |
Public Member Functions inherited from openfluid::core::Value | |
| Value () | |
| virtual | ~Value () |
| virtual bool | convert (Value &) const |
| bool | isDoubleValue () const |
| const DoubleValue & | asDoubleValue () const |
| DoubleValue & | asDoubleValue () |
| bool | isIntegerValue () const |
| const IntegerValue & | asIntegerValue () const |
| IntegerValue & | asIntegerValue () |
| bool | isBooleanValue () const |
| const BooleanValue & | asBooleanValue () const |
| BooleanValue & | asBooleanValue () |
| bool | isStringValue () const |
| const StringValue & | asStringValue () const |
| StringValue & | asStringValue () |
| bool | isNullValue () const |
| const NullValue & | asNullValue () const |
| NullValue & | asNullValue () |
| bool | isVectorValue () const |
| const VectorValue & | asVectorValue () const |
| VectorValue & | asVectorValue () |
| bool | isMatrixValue () const |
| const MatrixValue & | asMatrixValue () const |
| MatrixValue & | asMatrixValue () |
| bool | isMapValue () const |
| const MapValue & | asMapValue () const |
| MapValue & | asMapValue () |
| bool | isTreeValue () const |
| const TreeValue & | asTreeValue () const |
| TreeValue & | asTreeValue () |
| std::string | toString () const |
Public Member Functions inherited from openfluid::core::Matrix< double > | |
| Matrix () | |
| Matrix (const Matrix &Matrix) | |
| Matrix (unsigned long ColsNbr, unsigned long RowsNbr) | |
| Matrix (unsigned long ColsNbr, unsigned long RowsNbr, doubleInitValue) | |
| virtual | ~Matrix () |
| unsigned long | getColsNbr () const |
| unsigned long | getRowsNbr () const |
| unsigned long | getSize () const |
| unsigned long | size () const |
| double * | data () const |
| void | setData (double *Data, unsigned long ColsNbr, unsigned long RowsNbr) |
| double | getElement (unsigned long ColIndex, unsigned long RowIndex) const |
| double | at (unsigned long ColIndex, unsigned long RowIndex) const |
| double | get (unsigned long ColIndex, unsigned long RowIndex) const |
| void | setElement (unsigned long ColIndex, unsigned long RowIndex, doubleElement) |
| void | set (unsigned long ColIndex, unsigned long RowIndex, doubleElement) |
| Matrix< double > & | operator= (const Matrix &A) |
| void | fill (const double &Val) |
| void | clear () |
Additional Inherited Members | |
Public Types inherited from openfluid::core::Value | |
| enum | Type { NONE, BOOLEAN, INTEGER, DOUBLE, STRING, VECTOR, MATRIX, MAP, TREE, NULLL } |
Static Public Member Functions inherited from openfluid::core::Value | |
| static bool | getValueTypeFromString (const std::string &ValueTypeString, Value::Type &ValueType) |
| static std::string | getStringFromValueType (const Value::Type ValueType) |
Protected Member Functions inherited from openfluid::core::Matrix< double > | |
| bool | allocate (unsigned long ColsNbr, unsigned long RowsNbr) |
| void | init () |
Protected Attributes inherited from openfluid::core::Matrix< double > | |
| double * | m_Data |
| unsigned long | m_ColsNbr |
| unsigned long | m_RowsNbr |
MatrixValue is a container for a 2D matrix of signed double precision floating point values.
Example : declaration
Example : getting the contained values
Example : getting all values as a c-style array of double, rows-first indexed
Example : setting the contained values
Example : conversion from string
Example : conversion to string
|
inline |
Default constructor
|
inline |
Copy constructor
|
inline |
Constructor, creates a Matrix containing ColsNbr x RowsNbr elements
|
inline |
Constructor, creates a Matrix containing ColsNbr x RowsNbr elements, initialized with value InitValue
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from openfluid::core::Value.
|
inlinevirtual |
Implements openfluid::core::Value.
Assignment operator
Reimplemented from openfluid::core::Value.
|
inlinevirtual |
Implements openfluid::core::Value.
|
virtual |
Implements openfluid::core::Value.
1.8.11