Data structure that has a compile-time upper bound, provides vector semantics and supports network serialization.
More...
#include <RewindableFixedVector.h>
|
typedef const RewindableObject< TYPE, Multiplayer::RewindHistorySize > * | const_iterator |
|
typedef RewindableObject< TYPE, Multiplayer::RewindHistorySize > * | iterator |
|
template<typename TYPE, uint32_t SIZE>
class Multiplayer::RewindableFixedVector< TYPE, SIZE >
Data structure that has a compile-time upper bound, provides vector semantics and supports network serialization.
◆ RewindableFixedVector()
template<typename TYPE , uint32_t SIZE>
Construct and initialize buffer to the provided value
- Parameters
-
initialValue | initial value to set the internal buffer to |
count | initial value to reserve in the vector |
◆ copy_values()
template<typename TYPE , uint32_t SIZE>
Copies elements from the buffer pointed to by Buffer to this FixedSizeVector instance, vector size will be set to BufferSize
- Parameters
-
buffer | pointer to the buffer to copy |
bufferSize | number of elements in the buffer to copy |
- Returns
- bool true on success, false if the input data was too large to fit in the vector
◆ empty()
template<typename TYPE , uint32_t SIZE>
Returns if the vector is empty
- Returns
- bool true on empty, false if the vector contains valid elements
◆ operator!=()
template<typename TYPE , uint32_t SIZE>
Inequality operator, returns true if the current instance is not equal to RHS
- Parameters
-
rhs | the FixedSizeVector instance to test for inequality against |
- Returns
- bool false if equal, true if not equal
◆ operator=()
template<typename TYPE , uint32_t SIZE>
Copy buffer from the provided vector
- Parameters
-
◆ operator==()
template<typename TYPE , uint32_t SIZE>
Equality operator, returns true if the current instance is equal to RHS
- Parameters
-
rhs | the FixedSizeVector instance to test for equality against |
- Returns
- bool true if equal, false if not
◆ operator[]() [1/2]
template<typename TYPE , uint32_t SIZE>
Non-const element access
- Parameters
-
Index | index of the element to return |
- Returns
- non-const reference to the requested element
◆ operator[]() [2/2]
template<typename TYPE , uint32_t SIZE>
Const element access
- Parameters
-
Index | index of the element to return |
- Returns
- const reference to the requested element
◆ pop_back()
template<typename TYPE , uint32_t SIZE>
Pops the last element off the vector, decreasing the vector's size by one
- Returns
- bool true on success, false if the vector was empty
◆ push_back()
template<typename TYPE , uint32_t SIZE>
Pushes a new element to the back of the vector
- Parameters
-
Value | value to append to the back of this vector |
- Returns
- boolean true on success, false if the vector was full
◆ resize()
template<typename TYPE , uint32_t SIZE>
Resizes the vector to the requested number of elements, initializing new elements if necessary
- Parameters
-
count | the number of elements to size the vector to |
- Returns
- bool true on success
◆ resize_no_construct()
template<typename TYPE , uint32_t SIZE>
Resizes the vector to the requested number of elements, without initialization
- Parameters
-
count | the number of elements to size the vector to |
- Returns
- bool true on success
◆ Serialize() [1/2]
template<typename TYPE , uint32_t SIZE>
Serialization method for fixed vector contained rewindable objects
- Parameters
-
serializer | ISerializer instance to use for serialization |
- Returns
- bool true for success, false for serialization failure
◆ Serialize() [2/2]
template<typename TYPE , uint32_t SIZE>
Serialization method for fixed vector contained rewindable objects
- Parameters
-
serializer | ISerializer instance to use for serialization |
deltaRecord | Bitset delta record used to detect state change during reconciliation |
- Returns
- bool true for success, false for serialization failure
The documentation for this class was generated from the following files:
- Gems/Multiplayer/Code/Include/Multiplayer/NetworkTime/RewindableFixedVector.h
- Gems/Multiplayer/Code/Include/Multiplayer/NetworkTime/RewindableFixedVector.inl