|
Assimp
v4.1. (December 2018)
|
This class implements a value. More...
Classes | |
| class | Iterator |
| This class implements an iterator through a Value list. More... | |
Public Types | |
| enum | ValueType { ddl_none = -1, ddl_bool = 0, ddl_int8, ddl_int16, ddl_int32, ddl_int64, ddl_unsigned_int8, ddl_unsigned_int16, ddl_unsigned_int32, ddl_unsigned_int64, ddl_half, ddl_float, ddl_double, ddl_string, ddl_ref, ddl_types_max } |
| This enum describes the data type stored in the value. More... | |
Public Member Functions | |
| void | dump (IOStreamBase &stream) |
| Dumps the value. More... | |
| bool | getBool () |
| Returns the boolean value. More... | |
| double | getDouble () const |
| Returns the double value. More... | |
| float | getFloat () const |
| Returns the float value. More... | |
| int16 | getInt16 () |
| Returns the int16 value. More... | |
| int32 | getInt32 () |
| Returns the int16 value. More... | |
| int64 | getInt64 () |
| Returns the int16 value. More... | |
| int8 | getInt8 () |
| Returns the int8 value. More... | |
| Value * | getNext () const |
| Returns the next value. More... | |
| Reference * | getRef () const |
| Returns the pointer showing to the reference. More... | |
| const char * | getString () const |
| Returns the std::string value. More... | |
| uint16 | getUnsignedInt16 () const |
| Returns the unsigned int16 value. More... | |
| uint32 | getUnsignedInt32 () const |
| Returns the unsigned int8 value. More... | |
| uint64 | getUnsignedInt64 () const |
| Returns the unsigned int64 value. More... | |
| uint8 | getUnsignedInt8 () const |
| Returns the unsigned int8 value. More... | |
| void | setBool (bool value) |
| Assigns a boolean to the value. More... | |
| void | setDouble (double value) |
| Assigns a double to the value. More... | |
| void | setFloat (float value) |
| Assigns a float to the value. More... | |
| void | setInt16 (int16 value) |
| Assigns a int16 to the value. More... | |
| void | setInt32 (int32 value) |
| Assigns a int32 to the value. More... | |
| void | setInt64 (int64 value) |
| Assigns a int64 to the value. More... | |
| void | setInt8 (int8 value) |
| Assigns a int8 to the value. More... | |
| void | setNext (Value *next) |
| Assigns the next value. More... | |
| void | setRef (Reference *ref) |
| Set the reference. More... | |
| void | setString (const std::string &str) |
| Assigns a std::string to the value. More... | |
| void | setUnsignedInt16 (uint16 value) |
| Assigns a unsigned int16 to the value. More... | |
| void | setUnsignedInt32 (uint32 value) |
| Assigns a unsigned int32 to the value. More... | |
| void | setUnsignedInt64 (uint64 value) |
| Assigns a unsigned int64 to the value. More... | |
| void | setUnsignedInt8 (uint8 value) |
| Assigns a unsigned int8 to the value. More... | |
| size_t | size () const |
| Gets the length of the array. More... | |
| Value (ValueType type) | |
| The class constructor. More... | |
| ~Value () | |
| The class destructor. More... | |
Public Attributes | |
| unsigned char * | m_data |
| Value * | m_next |
| size_t | m_size |
| ValueType | m_type |
Friends | |
| struct | ValueAllocator |
This class implements a value.
Values are used to store data types like boolean, integer, floats, double and many mode. To get an overview please check the enum VylueType (
| enum Value::ValueType |
This enum describes the data type stored in the value.
| Enumerator | |
|---|---|
| ddl_none | Nothing specified. |
| ddl_bool | A boolean type. |
| ddl_int8 | Integer type, 8 bytes. |
| ddl_int16 | Integer type, 16 bytes. |
| ddl_int32 | Integer type, 32 bytes. |
| ddl_int64 | Integer type, 64 bytes. |
| ddl_unsigned_int8 | Unsigned integer type, 8 bytes. |
| ddl_unsigned_int16 | Unsigned integer type, 16 bytes. |
| ddl_unsigned_int32 | Unsigned integer type, 32 bytes. |
| ddl_unsigned_int64 | Unsigned integer type, 64 bytes. |
| ddl_half | Half data type. |
| ddl_float | float data type |
| ddl_double | Double data type. |
| ddl_string | String data type. |
| ddl_ref | Reference, used to define references to other data definitions. |
| ddl_types_max | Upper limit. |
| Value::Value | ( | ValueType | type | ) |
The class constructor.
| type | [in] The value type. |
| Value::~Value | ( | ) |
The class destructor.
| void Value::dump | ( | IOStreamBase & | stream | ) |
Dumps the value.
| stream | [in] The stream to write in. |
| bool Value::getBool | ( | ) |
Returns the boolean value.
| double Value::getDouble | ( | ) | const |
Returns the double value.
| float Value::getFloat | ( | ) | const |
Returns the float value.
| int16 Value::getInt16 | ( | ) |
Returns the int16 value.
| int32 Value::getInt32 | ( | ) |
Returns the int16 value.
| int64 Value::getInt64 | ( | ) |
Returns the int16 value.
| int8 Value::getInt8 | ( | ) |
Returns the int8 value.
| Value * Value::getNext | ( | ) | const |
Returns the next value.
| Reference * Value::getRef | ( | ) | const |
Returns the pointer showing to the reference.
| const char * Value::getString | ( | ) | const |
Returns the std::string value.
| uint16 Value::getUnsignedInt16 | ( | ) | const |
Returns the unsigned int16 value.
| uint32 Value::getUnsignedInt32 | ( | ) | const |
Returns the unsigned int8 value.
| uint64 Value::getUnsignedInt64 | ( | ) | const |
Returns the unsigned int64 value.
| uint8 Value::getUnsignedInt8 | ( | ) | const |
Returns the unsigned int8 value.
| void Value::setBool | ( | bool | value | ) |
Assigns a boolean to the value.
| value | [in9 The value. |
| void Value::setDouble | ( | double | value | ) |
Assigns a double to the value.
| value | [in] The value. |
| void Value::setFloat | ( | float | value | ) |
Assigns a float to the value.
| value | [in] The value. |
| void Value::setInt16 | ( | int16 | value | ) |
Assigns a int16 to the value.
| value | [in] The value. |
| void Value::setInt32 | ( | int32 | value | ) |
Assigns a int32 to the value.
| value | [in] The value. |
| void Value::setInt64 | ( | int64 | value | ) |
Assigns a int64 to the value.
| value | [in] The value. |
| void Value::setInt8 | ( | int8 | value | ) |
Assigns a int8 to the value.
| value | [in] The value. |
| void Value::setNext | ( | Value * | next | ) |
Assigns the next value.
| next | [n] The next value. |
| void Value::setRef | ( | Reference * | ref | ) |
Set the reference.
| ref | [in] Pointer showing to the reference. |
| void Value::setString | ( | const std::string & | str | ) |
Assigns a std::string to the value.
| str | [in] The value. |
| void Value::setUnsignedInt16 | ( | uint16 | value | ) |
Assigns a unsigned int16 to the value.
| value | [in] The value. |
| void Value::setUnsignedInt32 | ( | uint32 | value | ) |
Assigns a unsigned int32 to the value.
| value | [in] The value. |
| void Value::setUnsignedInt64 | ( | uint64 | value | ) |
Assigns a unsigned int64 to the value.
| value | [in] The value. |
| void Value::setUnsignedInt8 | ( | uint8 | value | ) |
Assigns a unsigned int8 to the value.
| value | [in] The value. |
| size_t Value::size | ( | ) | const |
Gets the length of the array.
|
friend |
| unsigned char* Value::m_data |
| Value* Value::m_next |
| size_t Value::m_size |
| ValueType Value::m_type |