#include <NameIdReflectionMap.h>
|
void | Clear () |
| Clears the container back to empty.
|
|
void | Reserve (size_t capacity) |
| Reserves sufficient memory for capacity elements.
|
|
bool | Insert (const Name &id, IndexType index) |
| Inserts a new id -> index mapping. Emits an error and returns false if the same entry is added twice.
|
|
IndexType | Find (const Name &id) const |
| Finds and returns the index associated with the requested id. If no matching id exists, a null index is returned.
|
|
Name | Find (IndexType index) const |
| Finds and returns the name associated with the index mapping. If no matching index mapping exists, an empty name is returned.
|
|
size_t | Size () const |
| Return the number of entries.
|
|
bool | IsEmpty () const |
|
|
static void | Reflect (ReflectContext *context) |
|
template<typename IndexType = Handle<>>
class AZ::RHI::NameIdReflectionMap< IndexType >
This class is a simple utility for mapping an AZ::Name to an RHI::Handle<> instance. It is useful for implementing name-to-index reflection. It uses a sorted vector with binary search to be cache friendly and use a single allocation (when serialized).
The documentation for this class was generated from the following file:
- Gems/Atom/RHI/Code/Include/Atom/RHI.Reflect/NameIdReflectionMap.h