RavEngine
Loading...
Searching...
No Matches
tinygltf::Value Class Reference

Public Types

typedef std::vector< Value > Array
 
typedef std::map< std::string, Value > Object
 

Public Member Functions

 Value (bool b)
 
 Value (int i)
 
 Value (double n)
 
 Value (const std::string &s)
 
 Value (const unsigned char *p, size_t n)
 
 Value (const Array &a)
 
 Value (const Object &o)
 
char Type () const
 
bool IsBool () const
 
bool IsInt () const
 
bool IsNumber () const
 
bool IsString () const
 
bool IsBinary () const
 
bool IsArray () const
 
bool IsObject () const
 
template<typename T >
const T & Get () const
 
template<typename T >
T & Get ()
 
const Value & Get (int idx) const
 
const Value & Get (const std::string &key) const
 
size_t ArrayLen () const
 
bool Has (const std::string &key) const
 
std::vector< std::string > Keys () const
 
size_t Size () const
 
bool operator== (const tinygltf::Value &other) const
 

Protected Attributes

int type_
 
int int_value_
 
double number_value_
 
std::string string_value_
 
std::vector< unsigned char > binary_value_
 
Array array_value_
 
Object object_value_
 
bool boolean_value_
 

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