|
| Chunk1 (size_t const &size) |
| Constructor.
|
|
| ~Chunk1 () |
| Destructor.
|
|
| ChunkBase (size_t const &size) |
| Constructor.
|
|
virtual | ~ChunkBase () |
| Destructor.
|
|
template<typename... Data> |
void | pushData (Data &&... dataEntries) |
| provided.
|
|
template<typename... Pointers> |
void | dataPointer (size_t const &index, Pointers *&... pointers) |
|
void | swap (ImplProxy &other) |
| Swap data with other chunk of the same type.
|
|
size_t | getSize () const |
| Get the allocated size.
|
|
size_t | getUnusedSize () const |
| Number of unused data items.
|
|
size_t | getUsedSize () const |
| Number of used data items.
|
|
void | reset () |
| Sets the number of used items to zero.
|
|
void | resize (size_t newSize) |
| Resize the allocated data. Stored data is lost. Used size is set to zero.
|
|
void | setUsedSize (size_t const &usage) |
| Set the used size.
|
|
|
static size_t constexpr | EntrySize = sizeof(Data1) |
| Total size of all data in one entry.
|
|
void | allocateData () |
| Allocated the data if it was deallocated before.
|
|
void | dataPointer (size_t const &index, Data1 *&pointer1) |
|
void | deleteData () |
| Delete the allocated data.
|
|
void | erase (size_t const &start, size_t const &end) |
| Erase data items start, ..., end - 1.
|
|
void | pushData (Data1 const &value1) |
| provided.
|
|
void | readData (FileIo &handle) |
| Read data from the FileIo handle.
|
|
void | swap (Chunk1< Data1 > &other) |
| Swap data with other chunk of the same type.
|
|
void | writeData (FileIo &handle) const |
| Write data to the FileIo handle.
|
|
template<typename Data1>
struct codi::Chunk1< Data1 >
@ brief Chunk with one entry per item.
- Template Parameters
-