Class xlifepp::Value#

class Value#

Collaboration diagram for xlifepp::Value:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="std::map< string_t, structPair >" tooltip="std::map< string_t, structPair >"] "3" [label="std::map< K, T >" tooltip="std::map< K, T >"] "1" [label="xlifepp::Value" tooltip="xlifepp::Value" fillcolor="#BFBFBF"] "2" -> "3" [dir=forward tooltip="template-instance"] "1" -> "2" [dir=forward tooltip="usage"] }

to encapsulate any kind of users value (scalar, Vector or Matrix)

Public Functions

Value(const real_t&)#

constructors only for supported types

Value(const Value&)#

copy constructor

~Value()#

destructor

template<typename T>
void checkType(const T&) const#

check if T is an authorized type

void clearValue()#

clear value

void copyValue(const Value&)#

full copy of value

dimPair dims() const#

return dimensions of value, (1,1) in scalar case

Value &operator=(const Value&)#

assign Value

void opposite()#

change the sign of value

void print(std::ostream&) const#

print Value on a output stream

inline StrucType strucType() const#

return the structure type (scalar, vector, matrix)

template<class T>
T &value()#

return object as value of T type (no type check)

template<class T>
T value() const#

return object as value of T type (const, no type check)

template<class T>
T &valueSafe() const#

return object as value of T type (type check is performed)

inline ValueType valueType() const#

return the value type (real, complex)

Public Members

mutable bool conjugate_#

temporary conjugate state flag (use in operator construction)

mutable bool transpose_#

temporary transposition state flag (use in operator construction)

Public Static Functions

template<typename T>
static bool checkTypeInList(const T&)#

check if a value is in list of supported types

template<typename T>
static bool isTypeInList(const T&)#

check if a value is in list of supported types

static void printValueTypeRTINames(std::ostream&)#

print RTI names

template<typename T>
static structPair typeOf(const T &v)#

return types of a T value

static void valueTypeRTINamesInit()#

initialization of RTI names of supported types

Public Static Attributes

static std::map<string_t, structPair> theValueTypeRTInames#

list of RTI names of supported types

list of RTI names of valuetypes (real, complex, Vector<>, …)

Friends

friend Value &adj(Value&)#

set to true or false the temporary conjugate/transpose flag

set to true or false the temporary transpose/conjugate flag

friend Value &conj(Value&)#

set to true or false the temporary conjugate flag

friend std::ostream &operator<<(std::ostream&, const Value&)#

outputs Value in a output stream

friend Value &trans(Value&)#

set to true or false the temporary transpose flag