Data structure that has a compile-time upper bound, provides vector semantics and supports network serialization. More...
#include <RewindableFixedVector.h>
Public Types | |
| typedef const RewindableObject< TYPE, Multiplayer::RewindHistorySize > * | const_iterator |
| typedef RewindableObject< TYPE, Multiplayer::RewindHistorySize > * | iterator |
Public Member Functions | |
| constexpr | RewindableFixedVector ()=default |
| Default constructor. | |
| constexpr | RewindableFixedVector (const TYPE &initialValue, uint32_t count) |
| ~RewindableFixedVector () | |
| Destructor. | |
| bool | Serialize (AzNetworking::ISerializer &serializer) |
| bool | Serialize (AzNetworking::ISerializer &serializer, AzNetworking::IBitset &deltaRecord) |
| constexpr bool | copy_values (const TYPE *buffer, uint32_t bufferSize) |
| constexpr RewindableFixedVector< TYPE, SIZE > & | operator= (const RewindableFixedVector< TYPE, SIZE > &rhs) |
| constexpr bool | operator== (const RewindableFixedVector< TYPE, SIZE > &rhs) const |
| constexpr bool | operator!= (const RewindableFixedVector< TYPE, SIZE > &rhs) const |
| constexpr bool | resize (uint32_t count) |
| constexpr bool | resize_no_construct (uint32_t count) |
| constexpr void | clear () |
| Resets the vector, returning it to size 0. | |
| constexpr const TYPE & | operator[] (uint32_t index) const |
| constexpr TYPE & | operator[] (uint32_t index) |
| constexpr bool | push_back (const TYPE &value) |
| constexpr bool | pop_back () |
| constexpr bool | empty () const |
| constexpr const TYPE & | back () const |
| Gets the last element of the vector. | |
| constexpr uint32_t | size () const |
| Gets the size of the vector. | |
| const_iterator | begin () const |
| const_iterator | end () const |
| constexpr iterator | begin () |
| constexpr iterator | end () |
Data structure that has a compile-time upper bound, provides vector semantics and supports network serialization.
|
constexpr |
Construct and initialize buffer to the provided value
| initialValue | initial value to set the internal buffer to |
| count | initial value to reserve in the vector |
|
constexpr |
Copies elements from the buffer pointed to by Buffer to this FixedSizeVector instance, vector size will be set to BufferSize
| buffer | pointer to the buffer to copy |
| bufferSize | number of elements in the buffer to copy |
|
constexpr |
Returns if the vector is empty
|
constexpr |
Inequality operator, returns true if the current instance is not equal to RHS
| rhs | the FixedSizeVector instance to test for inequality against |
|
constexpr |
Copy buffer from the provided vector
| RHS | instance to copy from |
|
constexpr |
Equality operator, returns true if the current instance is equal to RHS
| rhs | the FixedSizeVector instance to test for equality against |
|
constexpr |
Non-const element access
| Index | index of the element to return |
|
constexpr |
Const element access
| Index | index of the element to return |
|
constexpr |
Pops the last element off the vector, decreasing the vector's size by one
|
constexpr |
Pushes a new element to the back of the vector
| Value | value to append to the back of this vector |
|
constexpr |
Resizes the vector to the requested number of elements, initializing new elements if necessary
| count | the number of elements to size the vector to |
|
constexpr |
Resizes the vector to the requested number of elements, without initialization
| count | the number of elements to size the vector to |
| bool Multiplayer::RewindableFixedVector< TYPE, SIZE >::Serialize | ( | AzNetworking::ISerializer & | serializer | ) |
Serialization method for fixed vector contained rewindable objects
| serializer | ISerializer instance to use for serialization |
| bool Multiplayer::RewindableFixedVector< TYPE, SIZE >::Serialize | ( | AzNetworking::ISerializer & | serializer, |
| AzNetworking::IBitset & | deltaRecord | ||
| ) |
Serialization method for fixed vector contained rewindable objects
| serializer | ISerializer instance to use for serialization |
| deltaRecord | Bitset delta record used to detect state change during reconciliation |