|
| Value () noexcept |
| Default constructor initializes Value to TYPE_ERROR.
|
|
| Value (bool value) noexcept |
|
| Value (ColorList &&value) noexcept |
|
| Value (const AColor &value) noexcept |
|
| Value (const char *value) |
|
| Value (const Color &value) noexcept |
|
| Value (const Color *values, size_t count) |
|
template<size_t count> |
| Value (const Color(&arr)[count]) |
|
| Value (const ColorList &value) |
|
| Value (const float *values, size_t count) |
|
template<size_t count> |
| Value (const float(&arr)[count]) |
|
| Value (const FloatList &value) |
|
| Value (const int *values, size_t count) |
|
template<size_t count> |
| Value (const int(&arr)[count]) |
|
| Value (const IntList &value) |
|
| Value (const Matrix &value) noexcept |
|
| Value (const Plugin *values, size_t count) |
|
template<size_t count> |
| Value (const Plugin(&arr)[count]) |
|
| Value (const PluginList &value) |
|
| Value (const PluginRef &value) noexcept |
|
| Value (const std::string &value) |
|
| Value (const StringList &value) |
|
| Value (const Transform &value) noexcept |
|
| Value (const Transform *values, size_t count) |
|
template<size_t count> |
| Value (const Transform(&arr)[count]) |
|
| Value (const TransformList &value) |
|
| Value (const Value &value) |
|
| Value (const Value *values, size_t count) |
|
template<size_t count> |
| Value (const Value(&arr)[count]) |
|
| Value (const ValueList &value) |
|
| Value (const Vector &value) noexcept |
|
| Value (const Vector *values, size_t count) |
|
template<size_t count> |
| Value (const Vector(&arr)[count]) |
|
| Value (const VectorList &value) |
|
| Value (double value) noexcept |
|
| Value (float value) noexcept |
|
| Value (FloatList &&value) noexcept |
|
| Value (int value) noexcept |
|
| Value (IntList &&value) noexcept |
|
| Value (PluginList &&value) noexcept |
|
| Value (std::string &&value) noexcept |
|
| Value (StringList &&value) noexcept |
|
| Value (TransformList &&value) noexcept |
|
| Value (Value &&value) noexcept |
|
template<size_t count> |
| Value (Value(&&arr)[count]) |
|
| Value (ValueList &&value) noexcept |
|
| Value (VectorList &&value) noexcept |
|
template<typename T > |
T & | as () |
|
template<typename T > |
const T & | as () const |
|
template<typename T > |
T | get () const |
|
AColor | getAColor () const |
| Returns zero AColor if the value is not AColor. Keep in mind the value can be an AColor and still be zero.
|
|
bool | getBool () const |
| Works if the value is int, float, double or boolean. Otherwise returns false.
|
|
Color | getColor () const |
| Works if the value is Color or AColor. Otherwise returns zero color.
|
|
ColorList | getColorList () const |
|
size_t | getCount () const |
| Returns number of list elements if the value is a list type.
|
|
double | getDouble () const |
| Works if the value is int, float, double or boolean. Otherwise returns 0.0.
|
|
float | getFloat () const |
| Works if the value is int, float, double or boolean. Otherwise returns 0.0f.
|
|
FloatList | getFloatList () const |
|
int | getInt () const |
| Works if the value is int, float, double or boolean. Otherwise returns 0.
|
|
IntList | getIntList () const |
|
Matrix | getMatrix () const |
| Returns default constructed (uninitialized) Matrix if the value is not Matrix.
|
|
Plugin | getPlugin () const |
| Returns invalid Plugin if the value is not Plugin. Keep in mind the value can be a Plugin and still be invalid.
|
|
PluginList | getPluginList () const |
|
PluginRef | getPluginRef () const |
| Returns invalid PluginRef if the value is not Plugin. Keep in mind the value can be a Plugin and still be invalid.
|
|
std::string | getString () const |
| Returns empty string if the value is not string. Keep in mind the value can be a string and still be empty.
|
|
StringList | getStringList () const |
|
const char * | getStringType () const |
| Returns a string representation of the type.
|
|
Transform | getTransform () const |
| Returns default constructed (uninitialized) Transform if the value is not Transform.
|
|
TransformList | getTransformList () const |
|
Type | getType () const noexcept |
| Get the actual type of the stored value.
|
|
ValueList | getValueList () const |
|
Vector | getVector () const |
| Returns zero Vector if the value is not Vector. Keep in mind the value can be a Vector and still be zero.
|
|
VectorList | getVectorList () const |
|
bool | isBad () const |
| True if there was an error and the value can't be used. Checks against TYPE_ERROR.
|
|
bool | isList () const |
| False if this holds a single value.
|
|
bool | isOK () const |
| True if the value can be used. Checks against TYPE_ERROR and TYPE_UNSPECIFIED.
|
|
bool | operator!= (const Value &value) const noexcept |
|
Value & | operator= (const Value &value) |
|
Value & | operator= (Value &&value) noexcept |
|
bool | operator== (const Value &value) const noexcept |
|
Value & | operator[] (int i) |
|
const Value | operator[] (int i) const |
|
void | set (bool value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (ColorList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const AColor &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const char *value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Color &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Color *values, size_t count) |
| Stores the passed value array and sets the appropriate type.
|
|
void | set (const ColorList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const float *values, size_t count) |
| Stores the passed value array and sets the appropriate type.
|
|
void | set (const FloatList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const int *values, size_t count) |
| Stores the passed value array and sets the appropriate type.
|
|
void | set (const IntList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Matrix &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Plugin &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const PluginList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const PluginRef &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const std::string &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const std::string *values, size_t count) |
| Stores the passed value array and sets the appropriate type.
|
|
void | set (const StringList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Transform &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Transform *values, size_t count) |
| Stores the passed value array and sets the appropriate type.
|
|
void | set (const TransformList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const ValueList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Vector &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (const Vector *values, size_t count) |
| Stores the passed value array and sets the appropriate type.
|
|
void | set (const VectorList &value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (double value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (float value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (FloatList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (int value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (IntList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (PluginList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (std::string &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (StringList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (TransformList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (ValueList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | set (VectorList &&value) |
| Stores the passed value and sets the appropriate type.
|
|
void | swap (Value &value) noexcept |
|
std::string | toString () const |
| Returns the value as string.
|
|