
#include <core/VectorValue.hpp>
Public Member Functions | |
| VectorValue () | |
| VectorValue (const VectorValue &Val) | |
| VectorValue (unsigned long Size) | |
| VectorValue (unsigned long Size, double InitValue) | |
| VectorValue (double *Data, unsigned long Size) | |
| Value & | operator= (const Value &Other) |
| virtual | ~VectorValue () |
| Type | getType () const |
| Value * | clone () const |
| void | writeToStream (std::ostream &OutStm) const |
Public Member Functions inherited from openfluid::core::CompoundValue | |
| bool | isSimple () const |
| bool | isCompound () const |
Public Member Functions inherited from openfluid::core::Value | |
| Value () | |
| Value (const Value &) | |
| virtual | ~Value () |
| 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 () |
| std::string | toString () const |
Public Member Functions inherited from openfluid::core::Vector< double > | |
| Vector () | |
| Vector (const Vector &Vector) | |
| Vector (unsigned long Size) | |
| Vector (unsigned long Size, doubleInitValue) | |
| Vector (double *Data, unsigned long Size) | |
| ~Vector () | |
| unsigned long | getSize () const |
| unsigned long | size () const |
| double * | getData () const |
| void | setData (double *Data, unsigned long Size) |
| double | getElement (unsigned long Index) const |
| double | at (unsigned long Index) const |
| double | get (unsigned long Index) const |
| void | setElement (unsigned long Index, doubleElement) |
| void | set (unsigned long Index, doubleElement) |
| double & | operator[] (unsigned long Index) |
| Vector< double > & | operator= (const Vector &A) |
| void | fill (const double &Val) |
| void | clear () |
Additional Inherited Members | |
Public Types inherited from openfluid::core::CompoundValue | |
| typedef std::vector< std::string > | SeparatorsByLevels_t |
Public Types inherited from openfluid::core::Value | |
| enum | Type { NONE, BOOLEAN, INTEGER, DOUBLE, STRING, VECTOR, MATRIX, MAP, NULLL } |
Static Public Member Functions inherited from openfluid::core::CompoundValue | |
| static std::string | getStreamSeparator (const unsigned int &Level) |
| static void | setStreamSeparator (const unsigned int &Level, const std::string &Sep) |
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::Vector< double > | |
| bool | allocate (unsigned long Size) |
| void | init () |
Static Protected Member Functions inherited from openfluid::core::Vector< double > | |
| static void | copy (const Vector &Source, Vector &Dest) |
Protected Attributes inherited from openfluid::core::Vector< double > | |
| double * | m_Data |
| unsigned long | m_Size |
Static Protected Attributes inherited from openfluid::core::CompoundValue | |
| static SeparatorsByLevels_t | m_StreamSeparators |
VectorValue is a container for a 1D vector 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
Example : setting the contained values
Example : conversion from string
Example : conversion to string
|
inline |
Default constructor
|
inline |
Copy constructor
|
inline |
Constructor, creates a vector containing Size elements
|
inline |
Constructor, creates a vector containing Size elements, initialized with value InitValue
|
inline |
Constructor, creates a vector of size Size, containing Data
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from openfluid::core::Value.
|
inlinevirtual |
Implements openfluid::core::Value.
Assignment operator
Reimplemented from openfluid::core::Value.
|
virtual |
Implements openfluid::core::Value.
1.8.6