|
uint32_t | Remove (BuildingBlock aBlock) |
|
void | Add (BuildingBlock aBlock) |
|
FORCEINLINE int32_t | AddUnique (const BuildingBlock &Item) |
|
int32_t | Find (const BuildingBlock &Item) const |
|
bool | Contains (BuildingBlock aBlock) const |
|
uint32_t | Num () const |
|
void | Reset () |
|
void | SmartReset () |
|
void | SetVectorElementByIndex (int32_t Index, BuildingBlock Value) |
|
const std::vector< BuildingBlock > & | GetElements () const |
|
std::vector< BuildingBlock > & | ModifyElements () |
|
std::vector< BuildingBlock >::iterator | begin () |
|
std::vector< BuildingBlock >::iterator | end () |
|
FORCEINLINE BuildingBlock & | IndexToObject (int32_t Index) |
|
FORCEINLINE bool | IsValidIndex (int32_t Index) const |
|
template<typename BuildingBlock>
class KarmaVector< BuildingBlock >
Karma's std::vector wrapper.
template<typename BuildingBlock >
We just reset the vector. UE has the following implementation
Same as empty, but doesn't change memory allocations, unless the new size is larger than the current array. It calls the destructors on held items if needed and then zeros the ArrayNum.
- Parameters
-
NewSize | The expected usage size after calling this function. |