|
Assimp
v4.1. (December 2018)
|
The object cache - all objects addressed by pointers are added here. More...
Public Types | |
| typedef std::map< Pointer, TOUT< ElemBase > > | StructureCache |
Public Member Functions | |
| template<typename T > | |
| void | get (const Structure &s, TOUT< T > &out, const Pointer &ptr) const |
| Check whether a specific item is in the cache. More... | |
| ObjectCache (const FileDatabase &db) | |
| template<typename T > | |
| void | set (const Structure &s, const TOUT< T > &out, const Pointer &ptr) |
| Add an item to the cache after the item has been fully read. More... | |
The object cache - all objects addressed by pointers are added here.
This avoids circular references and avoids object duplication.
| typedef std::map< Pointer, TOUT<ElemBase> > Assimp::Blender::ObjectCache< TOUT >::StructureCache |
|
inline |
| void Assimp::Blender::ObjectCache< TOUT >::get | ( | const Structure & | s, |
| TOUT< T > & | out, | ||
| const Pointer & | ptr | ||
| ) | const |
Check whether a specific item is in the cache.
| s | Data type of the item |
| out | Output pointer. Unchanged if the cache doesn't know the item yet. |
| ptr | Item address to look for. |
| void Assimp::Blender::ObjectCache< TOUT >::set | ( | const Structure & | s, |
| const TOUT< T > & | out, | ||
| const Pointer & | ptr | ||
| ) |
Add an item to the cache after the item has been fully read.
Do not insert anything that may be faulty or might cause the loading to abort.
| s | Data type of the item |
| out | Item to insert into the cache |
| ptr | address (cache key) of the item. |