Class to compute a string->index map from all string:N metadata. More...
#include <openvdb/points/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 trueif no string elements in metadata. | |
| size_t | size () const | 
| Returns the number of string elements in metadata. | |
| void | reset (const MetaMap &metadata) | 
| Clears and re-populates the cache. | |
| void | insert (const Name &key, Index index) | 
| Insert a new element in the cache. | |
| const ValueMap & | map () const | 
| Retrieve the value map (string -> index) | |
Class to compute a string->index map from all string:N metadata.
| using UniquePtr = std::unique_ptr<StringMetaCache> | 
| 
 | default | 
| 
 | explicit | 
| 
 | inline | 
Return true if no string elements in metadata. 
| 
 | inline | 
Retrieve the value map (string -> index)
| void reset | ( | const MetaMap & | metadata | ) | 
Clears and re-populates the cache.
| 
 | inline | 
Returns the number of string elements in metadata.