next up previous contents
Next: Methods Up: Constructors Previous: Constructors

ReVarCifArray

NAME ReVarCifArray

PROTOTYPE

#include "ReVarCifArray.h"

ReVarCifArray();
ReVarCifArray(unsigned n, int gb);
ReVarCifArray(const ReVarCifArray<TYPE$> &s);
ReVarCifArray(const TYPE *s,unsigned n );

EXAMPLE

#include "ReVarCifArray.h"
#include "CifString.h"

ReVarCifArray<CifString> * a1 = new ReVarCifArray<CifString>();
ReVarCifArray<CifString> * a2 = new ReVarCifArray<CifString>(8,4);
ReVarCifArray<CifString> * a3 = new ReVarCifArray<CifString>(a2);
PURPOSE

ReVarCifArray() Default constructor. Constructs a resizable array with initial length 1 and a reallocation increment of 1.
ReVarCifArray(unsigned, int) Constructs a resizable array with initial length n and a reallocation increment of gb.
ReVarCifArray(const ReVarCifArray<TYPE> &) Copy constructor.
ReVarCifArray(const TYPE *, unsigned) Constructor that creates resizable array and copies the data from the low-level C array. Defaults to not allowing any resizing.

RECEIVES

ReVarCifArray()
None  

ReVarCifArray(unsigned, int)
n allocated length
gb reallocation inctement
ReVarCifArray(const ReVarCifArray<TYPE> &)
s copied ReVarCifArray
ReVarCifArray(const TYPE *, unsigned)
s low-level C array
n allocated length

RETURN VALUE

None

REMARKS

None



Olivera Tosic
12/21/1999