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