Next: CifString Public Method and
Up: No Title
Previous: Contents
The CIFLibCommon package contains several files that converge together in the CifString class and ReVarCifArray and ReVarPCifArray template classe
CifString is dynamic, resizable string class.
- CifString class provides all function as primitive string.
- Reallocaton of memory for CifString is done automaticaly by specified increment.
- CifString class provides reference counting.
ReVarCifArray is resizable, variable-length array template class, where the type of contained object can be any other class. That means we can have, for example, resizable, variable-length array of CifStrings.
ReVarPCifArray is resizable, variable-length array template class, where the type of contained object can be any primitive type, such as integer, long, etc.
- ReVarCifArray and ReVarPCifArray have the same methods. Some private methods are different because of memory allocation.
- Reallocaton of memory for array is done automaticaly by specified increment
Note: Every class that we wont to put in ReVarCifArray has to have DeleteElement() method. This method has the same functionality as destructor.
Olivera Tosic
12/21/1999