![]() |
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
#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) | |
virtual | ~VectorValue () |
Value & | operator= (const Value &Other) |
Type | getType () const |
Value * | clone () const |
void | writeToStream (std::ostream &OutStm) const |
void | writeQuotedToStream (std::ostream &OutStm) const |
![]() | |
CompoundValue () | |
virtual | ~CompoundValue () |
bool | isSimple () const |
bool | isCompound () const |
![]() | |
Value ()=default | |
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 |
![]() | |
Vector () | |
Vector (const Vector &Vector) | |
Vector (unsigned long Size) | |
Vector (unsigned long Size, double InitValue) | |
Vector (double *Data, unsigned long Size) | |
virtual | ~Vector () |
unsigned long | getSize () const |
unsigned long | size () const |
double * | data () 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, double Element) |
void | set (unsigned long Index, double Element) |
double & | operator[] (unsigned long Index) |
Vector< double > & | operator= (const Vector &A) |
void | fill (const double &Val) |
void | clear () |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
Additional Inherited Members | |
![]() | |
enum | Type { NONE, BOOLEAN, INTEGER, DOUBLE, STRING, VECTOR, MATRIX, MAP, TREE, NULLL } |
![]() | |
typedef double * | iterator |
typedef const double * | const_iterator |
![]() | |
static bool | getValueTypeFromString (const std::string &ValueTypeString, Value::Type &ValueType) |
static std::string | getStringFromValueType (const Value::Type ValueType) |
![]() | |
bool | allocate (unsigned long Size) |
void | init () |
![]() | |
static void | copy (const Vector &Source, Vector &Dest) |
![]() | |
double * | m_Data |
unsigned long | m_Size |
|
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.
|
inlinevirtual |
Implements openfluid::core::Value.
|
virtual |
Implements openfluid::core::Value.