Visual Computing Library
|
The HasReferencesOfType concept checks whether a component T stores references (pointers or indices) of a type (element) R. More...
The HasReferencesOfType concept checks whether a component T stores references (pointers or indices) of a type (element) R.
Each component that store pointers/indices of a type R, must:
void updateReferences(const R* oldBase, std::size_t offset = 0);
the function updates the stored R pointers/indices having the old base of the container (needed to update pointers) and the possible non-zero offset (used for append operations).
void updateReferences(const std::vector<uint>& newIndices);
the function updates the stored R pointers/indices having, for each old element index, its new index in the container.
T | the type to be evaluated. |
R | the type of the references. |