HDK
|
Class to compute a string->index map from all string:N metadata. More...
#include <AttributeArrayString.h>
Public Types | |
using | UniquePtr = std::unique_ptr< StringMetaCache > |
using | ValueMap = std::unordered_map< Name, Index > |
Public Member Functions | |
StringMetaCache ()=default | |
StringMetaCache (const MetaMap &metadata) | |
bool | empty () const |
Return true if no string elements in metadata. More... | |
size_t | size () const |
Returns the number of string elements in metadata. More... | |
void | reset (const MetaMap &metadata) |
Clears and re-populates the cache. More... | |
void | insert (const Name &key, Index index) |
Insert a new element in the cache. More... | |
const ValueMap & | map () const |
Retrieve the value map (string -> index) More... | |
Class to compute a string->index map from all string:N metadata.
Definition at line 56 of file AttributeArrayString.h.
using openvdb::OPENVDB_VERSION_NAME::points::StringMetaCache::UniquePtr = std::unique_ptr<StringMetaCache> |
Definition at line 59 of file AttributeArrayString.h.
using openvdb::OPENVDB_VERSION_NAME::points::StringMetaCache::ValueMap = std::unordered_map<Name, Index> |
Definition at line 60 of file AttributeArrayString.h.
|
default |
|
explicit |
|
inline |
Return true
if no string elements in metadata.
Definition at line 66 of file AttributeArrayString.h.
void openvdb::OPENVDB_VERSION_NAME::points::StringMetaCache::insert | ( | const Name & | key, |
Index | index | ||
) |
Insert a new element in the cache.
Retrieve the value map (string -> index)
Definition at line 77 of file AttributeArrayString.h.
Clears and re-populates the cache.
|
inline |
Returns the number of string elements in metadata.
Definition at line 68 of file AttributeArrayString.h.