|
| KarmaVector () |
| Constructor.
|
|
| ~KarmaVector () |
| Destructor.
|
|
uint32_t | Remove (BuildingBlock aBlock) |
| Removes an element from the vector.
|
|
void | Add (BuildingBlock aBlock) |
| Add an element to the vector.
|
|
FORCEINLINE int32_t | AddUnique (const BuildingBlock &Item) |
|
int32_t | Find (const BuildingBlock &Item) const |
|
bool | Contains (BuildingBlock aBlock) const |
| Sees if the vector contains the specified element.
|
|
uint32_t | Num () const |
| Returns the total number of elements in a vector.
|
|
void | Reset () |
| We just reset the vector. UE has the following implementation.
|
|
void | SmartReset () |
| Just clear the elements.
|
|
void | SetVectorElementByIndex (int32_t Index, BuildingBlock Value) |
| Set the element of a vector using the vector index.
|
|
const std::vector< BuildingBlock > & | GetElements () const |
| Getter for the elements of vector.
|
|
std::vector< BuildingBlock > & | ModifyElements () |
| Getter for elements of vector for modification in appropriate way.
|
|
std::vector< BuildingBlock >::iterator | begin () |
| Getter for first vector element.
|
|
std::vector< BuildingBlock >::iterator | end () |
| Getter for the last vector element.
|
|
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. |
- Warning
- Included deletion of possible UObjects. Hence needs rewriting once ShivaActor is functional
- Since
- Karma 1.0.0