Conscience Core
Public Types | Public Member Functions | Protected Attributes | List of all members
tinygltf::Value Class Reference

#include <tiny_gltf.h>

Public Types

typedef std::vector< ValueArray
 
typedef std::map< std::string, ValueObject
 

Public Member Functions

 Value ()=default
 
 Value (bool b)
 
 Value (int i)
 
 Value (double n)
 
 Value (const std::string &s)
 
 Value (std::string &&s)
 
 Value (const char *s)
 
 Value (const unsigned char *p, size_t n)
 
 Value (std::vector< unsigned char > &&v) noexcept
 
 Value (const Array &a)
 
 Value (Array &&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 ValueGet (size_t idx) const
 
const ValueGet (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_
 
Array 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/13]

tinygltf::Value::Value ( )
default

◆ Value() [2/13]

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

◆ Value() [3/13]

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

◆ Value() [4/13]

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

◆ Value() [5/13]

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

◆ Value() [6/13]

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

◆ Value() [7/13]

tinygltf::Value::Value ( const char *  s)
inlineexplicit

◆ Value() [8/13]

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

◆ Value() [9/13]

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

◆ Value() [10/13]

tinygltf::Value::Value ( const Array a)
inlineexplicit

◆ Value() [11/13]

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

◆ Value() [12/13]

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

◆ Value() [13/13]

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

Member Function Documentation

◆ ArrayLen()

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

◆ Get() [1/4]

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

◆ Get() [2/4]

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

◆ Get() [3/4]

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

◆ Get() [4/4]

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

◆ GetNumberAsDouble()

double tinygltf::Value::GetNumberAsDouble ( ) const
inline

◆ GetNumberAsInt()

int tinygltf::Value::GetNumberAsInt ( ) const
inline

◆ Has()

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

◆ IsArray()

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

◆ 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

◆ IsReal()

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

◆ IsString()

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

◆ Keys()

std::vector<std::string> tinygltf::Value::Keys ( ) const
inline

◆ 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

Member Data Documentation

◆ array_value_

Array 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: