TrinityCore
|
#include <PacketUtilities.h>
Public Types | |
using | allocator_type = short_alloc::short_alloc< T,(N *sizeof(T)+(alignof(std::max_align_t) - 1)) &~(alignof(std::max_align_t) - 1)> |
using | arena_type = typename allocator_type::arena_type |
using | storage_type = std::vector< T, allocator_type > |
using | max_capacity = std::integral_constant< std::size_t, N > |
using | value_type = typename storage_type::value_type |
using | size_type = typename storage_type::size_type |
using | pointer = typename storage_type::pointer |
using | const_pointer = typename storage_type::const_pointer |
using | reference = typename storage_type::reference |
using | const_reference = typename storage_type::const_reference |
using | iterator = typename storage_type::iterator |
using | const_iterator = typename storage_type::const_iterator |
Public Member Functions | |
Array () | |
Array (Array const &other) | |
Array (Array &&other) noexcept=delete | |
Array & | operator= (Array const &other) |
Array & | operator= (Array &&other) noexcept=delete |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
pointer | data () |
const_pointer | data () const |
size_type | size () const |
bool | empty () const |
reference | operator[] (size_type i) |
const_reference | operator[] (size_type i) const |
void | resize (size_type newSize) |
void | push_back (value_type const &value) |
void | push_back (value_type &&value) |
template<typename... Args> | |
T & | emplace_back (Args &&... args) |
iterator | erase (const_iterator first, const_iterator last) |
void | clear () |
Private Attributes | |
arena_type | _data |
storage_type | _storage |
Utility class for automated prevention of loop counter spoofing in client packets
Definition at line 137 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::allocator_type = short_alloc::short_alloc<T, (N * sizeof(T) + (alignof(std::max_align_t) - 1)) & ~(alignof(std::max_align_t) - 1)> |
Definition at line 140 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::arena_type = typename allocator_type::arena_type |
Definition at line 141 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::const_iterator = typename storage_type::const_iterator |
Definition at line 154 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::const_pointer = typename storage_type::const_pointer |
Definition at line 150 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::const_reference = typename storage_type::const_reference |
Definition at line 152 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::iterator = typename storage_type::iterator |
Definition at line 153 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::max_capacity = std::integral_constant<std::size_t, N> |
Definition at line 145 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::pointer = typename storage_type::pointer |
Definition at line 149 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::reference = typename storage_type::reference |
Definition at line 151 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::size_type = typename storage_type::size_type |
Definition at line 148 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::storage_type = std::vector<T, allocator_type> |
Definition at line 143 of file PacketUtilities.h.
using WorldPackets::Array< T, N >::value_type = typename storage_type::value_type |
Definition at line 147 of file PacketUtilities.h.
|
inline |
Definition at line 156 of file PacketUtilities.h.
|
inline |
Definition at line 158 of file PacketUtilities.h.
|
deletenoexcept |
|
inline |
|
inline |
Definition at line 181 of file PacketUtilities.h.
|
inline |
Definition at line 231 of file PacketUtilities.h.
|
inline |
|
inline |
Definition at line 187 of file PacketUtilities.h.
|
inline |
Definition at line 220 of file PacketUtilities.h.
|
inline |
|
inline |
|
inline |
Definition at line 184 of file PacketUtilities.h.
|
inline |
Definition at line 226 of file PacketUtilities.h.
|
deletenoexcept |
|
inline |
Definition at line 166 of file PacketUtilities.h.
|
inline |
Definition at line 192 of file PacketUtilities.h.
|
inline |
Definition at line 193 of file PacketUtilities.h.
|
inline |
Definition at line 211 of file PacketUtilities.h.
|
inline |
Definition at line 203 of file PacketUtilities.h.
|
inline |
|
inline |
|
private |
Definition at line 237 of file PacketUtilities.h.
|
private |
Definition at line 238 of file PacketUtilities.h.