Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ValueWrapper< T > Struct Template Reference

Public Member Functions

template<typename... U>
requires std::constructible_from<T, U&&...>
 ValueWrapper (std::string_view name, U &&... vals)
 
 ValueWrapper (const ValueWrapper< T > &rhs)=default
 
 ValueWrapper (ValueWrapper< T > &&rhs)=default
 
ValueWrapper< T > & operator= (const ValueWrapper< T > &that)=default
 
ValueWrapper< T > & operator= (ValueWrapper< T > &&that)=default
 
ValueWrapper< T > & operator= (const T &val)
 
 operator const T & () const
 
const T & operator* () const
 
const T * operator-> () const
 
bool isDefault () const
 
bool 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)
 
template<typename U >
requires std::assignable_from<T&, U> && (!std::is_same_v<T, U>) && std::equality_comparable_with<const U&, const T&>
bool update (const U &src)
 
auto operator<=> (const ValueWrapper< T > &rhs) const
 
bool operator== (const ValueWrapper< T > &rhs) const
 
auto operator<=> (const T &rhs) const
 
bool operator== (const T &rhs) const
 

Public Attributes

value
 
defaultValue
 
std::string name
 

Member Function Documentation

◆ update() [1/3]

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

◆ update() [2/3]

template<typename T >
template<typename U >
requires std::assignable_from<T&, U> && (!std::is_same_v<T, U>) && std::equality_comparable_with<const U&, const T&>
bool inviwo::ValueWrapper< T >::update ( const U & src)
inline

Update the value of this to that of src.

Returns
if value was modified

◆ update() [3/3]

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

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