![]() |
ufe
3.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
Value class that can hold a wide set of types. More...
#include <value.h>
Public Member Functions | |
Value () | |
Default constructor. Creates an empty Value. More... | |
template<typename T > | |
Value (const T &v) | |
Value (const Value &) | |
Default copy constructor. More... | |
Value (Value &&) noexcept | |
Move constructor. More... | |
Value & | operator= (const Value &v) |
Default assignment operator. More... | |
Value & | operator= (Value &&) noexcept |
Move assignment. Right hand side becomes empty. More... | |
~Value () | |
Destructor. More... | |
template<typename T > | |
T | get () const |
bool | empty () const |
std::string | typeName () const |
template<typename T > | |
bool | isType () const |
bool | operator== (const Value &rhs) const |
Equality operators. More... | |
bool | operator!= (const Value &rhs) const |
Equality operators. More... | |
Private Attributes | |
std::unique_ptr< Imp > | _imp |
Value class that can hold a wide set of types.
This class is instantiated for the following types:
bool
int
float
double
string
Ufe::Value::Value | ( | ) |
Default constructor. Creates an empty Value.
Ufe::Value::Value | ( | const T & | v | ) |
Ufe::Value::Value | ( | const Value & | ) |
Default copy constructor.
|
noexcept |
Move constructor.
Ufe::Value::~Value | ( | ) |
Destructor.
bool Ufe::Value::empty | ( | ) | const |
T Ufe::Value::get | ( | ) | const |
bool Ufe::Value::isType | ( | ) | const |
bool Ufe::Value::operator!= | ( | const Value & | rhs | ) | const |
Equality operators.
bool Ufe::Value::operator== | ( | const Value & | rhs | ) | const |
Equality operators.
std::string Ufe::Value::typeName | ( | ) | const |