Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FRefCountVector
Description
Todo: remove clear Rebuilds all reference counts from external source data via callables.
For example, we could rebuild ref counts for vertices by iterating over all triangles via the Iterate callable, and in the process any vertex we encounter for the first time gets a ref count of 1 via the AllocateRefCount callable, and any vertex we encounter repeatedly has its ref count incremented by one via the IncrementRefCount callable.
| Name | Rebuild |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Util/RefCountVector.h |
| Include Path | #include "Util/RefCountVector.h" |
template<typename IterateFunc, typename AllocateRefCountFunc, typename IncrementRefCountFunc>
void Rebuild
(
unsigned int Num,
IterateFunc && Iterate,
AllocateRefCountFunc && AllocateRefCount,
IncrementRefCountFunc && IncrementRefCount
)
Parameters
| Name | Remarks |
|---|---|
| Num | Number of items that get referenced. |
| Iterate | Callable that iterates over all referenced items in the external source data. |
| AllocateRefCount | Callable for allocating an item, i.e. an item that is referenced for the first time. |
| IncrementRefCount | Callable for incrementing an item, i.e. an item that has been referenced before. |