Assimp  v4.1. (December 2018)
glTF2::LazyDict< T > Class Template Reference

Manages lazy loading of the glTF top-level objects, and keeps a reference to them by ID It is the owner the loaded objects, so when it is destroyed it also deletes them. More...

Public Member Functions

Ref< T > Create (const char *id)
 
Ref< T > Create (const std::string &id)
 
Ref< T > Get (const char *id)
 
Ref< T > Get (unsigned int i)
 
 LazyDict (Asset &asset, const char *dictId, const char *extId=0)
 
T & operator[] (size_t i)
 
unsigned int Remove (const char *id)
 
Ref< T > Retrieve (unsigned int i)
 
unsigned int Size () const
 
 ~LazyDict ()
 

Friends

class Asset
 
class AssetWriter
 

Detailed Description

template<class T>
class glTF2::LazyDict< T >

Manages lazy loading of the glTF top-level objects, and keeps a reference to them by ID It is the owner the loaded objects, so when it is destroyed it also deletes them.

Constructor & Destructor Documentation

◆ LazyDict()

template<class T >
glTF2::LazyDict< T >::LazyDict ( Asset asset,
const char *  dictId,
const char *  extId = 0 
)
inline

◆ ~LazyDict()

template<class T >
glTF2::LazyDict< T >::~LazyDict
inline

Member Function Documentation

◆ Create() [1/2]

template<class T >
Ref< T > glTF2::LazyDict< T >::Create ( const char *  id)

◆ Create() [2/2]

template<class T >
Ref<T> glTF2::LazyDict< T >::Create ( const std::string &  id)
inline

◆ Get() [1/2]

template<class T >
Ref< T > glTF2::LazyDict< T >::Get ( const char *  id)

◆ Get() [2/2]

template<class T >
Ref< T > glTF2::LazyDict< T >::Get ( unsigned int  i)

◆ operator[]()

template<class T >
T& glTF2::LazyDict< T >::operator[] ( size_t  i)
inline

◆ Remove()

template<class T >
unsigned int glTF2::LazyDict< T >::Remove ( const char *  id)

◆ Retrieve()

template<class T >
Ref< T > glTF2::LazyDict< T >::Retrieve ( unsigned int  i)

◆ Size()

template<class T >
unsigned int glTF2::LazyDict< T >::Size ( ) const
inline

Friends And Related Function Documentation

◆ Asset

template<class T >
friend class Asset
friend

◆ AssetWriter

template<class T >
friend class AssetWriter
friend

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