Inviwo  0.9.10.1
Inviwo documentation
inviwo::ValueWrapper< T > Struct Template Reference
+ Inheritance diagram for inviwo::ValueWrapper< T >:

Public Member Functions

 ValueWrapper (std::string valname, T val)
 
 ValueWrapper (const ValueWrapper< T > &rhs)=default
 
ValueWrapper< T > & operator= (const ValueWrapper< T > &that)=default
 
ValueWrapper< T > & operator= (const T &val)
 
 operator T & ()
 
 operator const T & () const
 
bool isDefault () const
 
void reset ()
 
void setAsDefault ()
 
void serialize (Serializer &s, PropertySerializationMode mode=PropertySerializationMode::Default) const
 
bool deserialize (Deserializer &d, PropertySerializationMode mode=PropertySerializationMode::Default)
 
bool update (const ValueWrapper< T > &src)
 
bool update (const T &src)
 

Public Attributes

value
 
defaultValue
 
std::string name
 

Member Function Documentation

◆ update() [1/2]

template<typename T>
bool inviwo::ValueWrapper< T >::update ( const ValueWrapper< T > &  src)
inline

Update the value of this to that of src.

Returns
if value was modified

◆ update() [2/2]

template<typename T>
bool inviwo::ValueWrapper< T >::update ( const T &  src)
inline

Update the value of this to that of src.

Returns
if value was modified

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