Assimp  v3.1.1 (June 2014)
glTF::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...

Inherits glTF::LazyDictBase.

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 Size () const
 
 ~LazyDict ()
 
- Public Member Functions inherited from glTF::LazyDictBase
virtual ~LazyDictBase ()
 

Friends

class Asset
 
class AssetWriter
 

Detailed Description

template<class T>
class glTF::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

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

Member Function Documentation

template<class T >
Ref< T > glTF::LazyDict< T >::Create ( const char *  id)
template<class T>
Ref<T> glTF::LazyDict< T >::Create ( const std::string &  id)
inline
template<class T >
Ref< T > glTF::LazyDict< T >::Get ( const char *  id)
template<class T >
Ref< T > glTF::LazyDict< T >::Get ( unsigned int  i)
template<class T>
T& glTF::LazyDict< T >::operator[] ( size_t  i)
inline
template<class T>
unsigned int glTF::LazyDict< T >::Size ( ) const
inline

Friends And Related Function Documentation

template<class T>
friend class Asset
friend
template<class T>
friend class AssetWriter
friend

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