C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Compile with the given preprocessor define for control of reading/writing char* and TCHAR* only via ReadTCHAR/WriteTCHAR(), not via illegally operator << and >>. More...
#include <io_tape.h>
Public Member Functions | |
TapeRegistrator () | |
Map of [index]-[object] pairs. More... | |
virtual | ~TapeRegistrator () |
Destructor. | |
size_t | Count () const |
Get a number of registered objects. | |
bool | Reserve (size_t n) |
Reserve space for a given number of elements. | |
size_t | FindIt (const TapeBase *e) const |
Find the object in array. | |
bool | IsExist (const TapeBase *e) const |
Whether the object is in the array. | |
size_t | GetMaxCount () const |
Get the maximal possible number of registered objects. | |
TapeBase * | operator[] (size_t ind) const |
Get the pointer from the registered object array by the given index. More... | |
size_t | Add (const TapeBase *e) |
Add the object to the array. | |
virtual TapeBase * | Get (const ClusterReference &) const |
Get the pointer of the registered object by the position in the cluster. | |
virtual ClusterReference | GetClusterRef (size_t) const |
Get position in the cluster by given index. | |
virtual void | AddClusterRef (size_t, const ClusterReference &) |
Add the object position in the cluster. | |
virtual void | FlushRegistered () |
Flush the array of registered objects. | |
virtual void | FlushObj (const TapeBase *) |
Flush the registered object. | |
Protected Member Functions | |
void | FlushObjInd (size_t) |
Flush the registered object. | |
Protected Attributes | |
size_t | maxCount |
Map of [object]-[index] pairs. | |
IndexTapeMap | indexesAndObjs |
Maximal number of registered objects. | |
Compile with the given preprocessor define for control of reading/writing char* and TCHAR* only via ReadTCHAR/WriteTCHAR(), not via illegally operator << and >>.
Array for object registration while reading/writing.
Array for object registration while reading/writing.
TapeRegistrator::TapeRegistrator | ( | ) |
Map of [index]-[object] pairs.
Constructor.
TapeBase* TapeRegistrator::operator[] | ( | size_t | ind | ) | const |
Get the pointer from the registered object array by the given index.
Insert an element with defined index.