|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
Storage for a chunk that may appear up to N times in one entity (MOTV texcoord sets, MOCV vertex-color layers). More...
#include <wowlib/formats/common/chunked_file.hpp>
Public Types | |
| using | value_type = T |
| The per-occurrence payload type — spelled like a standard container's so the generic walkers (validation) treat slots as a sequence. | |
Public Member Functions | |
| T * | push () |
| Claim the next slot (the serializer's per-encounter hook). | |
| std::size_t | size () const |
| bool | empty () const |
| bool | full () const |
| void | clear () |
| Reset to no filled slots; slot contents return to default-constructed. | |
| T & | operator[] (std::size_t i) |
| const T & | operator[] (std::size_t i) const |
| T * | begin () |
| T * | end () |
| const T * | begin () const |
| const T * | end () const |
Static Public Member Functions | |
| static constexpr std::size_t | capacity () |
Static Public Attributes | |
| static constexpr bool | ValidationSlots = true |
| Each slot is a complete occurrence of the chunk, not one element of a larger array: a count contract holds per filled slot (see the validation walker's SlotSequence). | |
Storage for a chunk that may appear up to N times in one entity (MOTV texcoord sets, MOCV vertex-color layers).
Slots fill in encounter order.
| T | the per-occurrence payload type. |
| N | the maximum occurrence count (matches the member's repeats(N) annotation). |
Definition at line 154 of file chunked_file.hpp.
| using wowlib::formats::Repeated< T, N >::value_type = T |
The per-occurrence payload type — spelled like a standard container's so the generic walkers (validation) treat slots as a sequence.
Definition at line 158 of file chunked_file.hpp.
|
inlinenodiscard |
Definition at line 198 of file chunked_file.hpp.
|
inlinenodiscard |
Definition at line 204 of file chunked_file.hpp.
|
inlinestaticnodiscardconstexpr |
Definition at line 188 of file chunked_file.hpp.
|
inline |
Reset to no filled slots; slot contents return to default-constructed.
Definition at line 182 of file chunked_file.hpp.
|
inlinenodiscard |
Definition at line 176 of file chunked_file.hpp.
|
inlinenodiscard |
Definition at line 201 of file chunked_file.hpp.
|
inlinenodiscard |
Definition at line 207 of file chunked_file.hpp.
|
inlinenodiscard |
Definition at line 179 of file chunked_file.hpp.
|
inlinenodiscard |
| i | a filled-slot index, < size(). |
Definition at line 192 of file chunked_file.hpp.
|
inlinenodiscard |
| i | a filled-slot index, < size(). |
Definition at line 195 of file chunked_file.hpp.
|
inline |
Claim the next slot (the serializer's per-encounter hook).
Definition at line 167 of file chunked_file.hpp.
|
inlinenodiscard |
Definition at line 173 of file chunked_file.hpp.
|
staticconstexpr |
Each slot is a complete occurrence of the chunk, not one element of a larger array: a count contract holds per filled slot (see the validation walker's SlotSequence).
Definition at line 163 of file chunked_file.hpp.