GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
tinygltf::Value Class Reference

#include <tiny_gltf.h>

Collaboration diagram for tinygltf::Value:

Public Types

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

Public Member Functions

 Value ()
 Value (bool b)
 Value (int i)
 Value (double n)
 Value (const std::string &s)
 Value (std::string &&s)
 Value (const unsigned char *p, size_t n)
 Value (std::vector< unsigned char > &&v) noexcept
 Value (const ArrayArray &a)
 Value (ArrayArray &&a) noexcept
 Value (const Object &o)
 Value (Object &&o) noexcept
char Type () const
bool IsBool () const
bool IsInt () const
bool IsNumber () const
bool IsReal () const
bool IsString () const
bool IsBinary () const
bool IsArray () const
bool IsObject () const
double GetNumberAsDouble () const
int GetNumberAsInt () 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_ = NULL_TYPE
int int_value_ = 0
double real_value_ = 0.0
std::string string_value_
std::vector< unsigned char > binary_value_
ArrayArray array_value_
Object object_value_
bool boolean_value_ = false

Member Typedef Documentation

◆ Array

typedef std::vector<Value> tinygltf::Value::Array

◆ Object

typedef std::map<std::string, Value> tinygltf::Value::Object

Constructor & Destructor Documentation

◆ Value() [1/12]

tinygltf::Value::Value ( )
inline
Here is the caller graph for this function:

◆ Value() [2/12]

tinygltf::Value::Value ( bool b)
inlineexplicit

◆ Value() [3/12]

tinygltf::Value::Value ( int i)
inlineexplicit

◆ Value() [4/12]

tinygltf::Value::Value ( double n)
inlineexplicit

◆ Value() [5/12]

tinygltf::Value::Value ( const std::string & s)
inlineexplicit

◆ Value() [6/12]

tinygltf::Value::Value ( std::string && s)
inlineexplicit

◆ Value() [7/12]

tinygltf::Value::Value ( const unsigned char * p,
size_t n )
inlineexplicit

◆ Value() [8/12]

tinygltf::Value::Value ( std::vector< unsigned char > && v)
inlineexplicitnoexcept

◆ Value() [9/12]

tinygltf::Value::Value ( const ArrayArray & a)
inlineexplicit

◆ Value() [10/12]

tinygltf::Value::Value ( ArrayArray && a)
inlineexplicitnoexcept

◆ Value() [11/12]

tinygltf::Value::Value ( const Object & o)
inlineexplicit

◆ Value() [12/12]

tinygltf::Value::Value ( Object && o)
inlineexplicitnoexcept

Member Function Documentation

◆ ArrayLen()

size_t tinygltf::Value::ArrayLen ( ) const
inline
Here is the caller graph for this function:

◆ Get() [1/4]

template<typename T>
T & tinygltf::Value::Get ( )

◆ Get() [2/4]

template<typename T>
const T & tinygltf::Value::Get ( ) const
Here is the caller graph for this function:

◆ Get() [3/4]

const Value & tinygltf::Value::Get ( const std::string & key) const
inline

◆ Get() [4/4]

const Value & tinygltf::Value::Get ( int idx) const
inline

◆ GetNumberAsDouble()

double tinygltf::Value::GetNumberAsDouble ( ) const
inline
Here is the caller graph for this function:

◆ GetNumberAsInt()

int tinygltf::Value::GetNumberAsInt ( ) const
inline
Here is the caller graph for this function:

◆ Has()

bool tinygltf::Value::Has ( const std::string & key) const
inline

◆ IsArray()

bool tinygltf::Value::IsArray ( ) const
inline
Here is the caller graph for this function:

◆ IsBinary()

bool tinygltf::Value::IsBinary ( ) const
inline

◆ IsBool()

bool tinygltf::Value::IsBool ( ) const
inline

◆ IsInt()

bool tinygltf::Value::IsInt ( ) const
inline

◆ IsNumber()

bool tinygltf::Value::IsNumber ( ) const
inline

◆ IsObject()

bool tinygltf::Value::IsObject ( ) const
inline
Here is the caller graph for this function:

◆ IsReal()

bool tinygltf::Value::IsReal ( ) const
inline

◆ IsString()

bool tinygltf::Value::IsString ( ) const
inline

◆ Keys()

std::vector< std::string > tinygltf::Value::Keys ( ) const
inline
Here is the caller graph for this function:

◆ operator==()

bool tinygltf::Value::operator== ( const tinygltf::Value & other) const

◆ Size()

size_t tinygltf::Value::Size ( ) const
inline

◆ Type()

char tinygltf::Value::Type ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ array_value_

ArrayArray tinygltf::Value::array_value_
protected

◆ binary_value_

std::vector<unsigned char> tinygltf::Value::binary_value_
protected

◆ boolean_value_

bool tinygltf::Value::boolean_value_ = false
protected

◆ int_value_

int tinygltf::Value::int_value_ = 0
protected

◆ object_value_

Object tinygltf::Value::object_value_
protected

◆ real_value_

double tinygltf::Value::real_value_ = 0.0
protected

◆ string_value_

std::string tinygltf::Value::string_value_
protected

◆ type_

int tinygltf::Value::type_ = NULL_TYPE
protected

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