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

ReVarPCifArray

NAME ReVarPCifArray

PROTOTYPE

#include "ReVarPCifArray.h"

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

EXAMPLE

#include "ReVarPCifArray.h"

ReVarPCifArray<int> * a1 = new ReVarPCifArray<int>();
ReVarPCifArray<int> * a2 = new ReVarPCifArray<int>(8,4);
ReVarPCifArray<int> * a3 = new ReVarPCifArray<int>(a2);
PURPOSE

ReVarPCifArray() Default constructor. Constructs a resizable array with initial length 1 and a reallocation increment of 1.
ReVarPCifArray(unsigned, int) Constructs a resizable array with initial length n and a reallocation increment of gb.
ReVarPCifArray(const ReVarPCifArray<TYPE> &) Copy constructor.
ReVarPCifArray(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

ReVarPCifArray()
None  

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

RETURN VALUE

None

REMARKS

None



Olivera Tosic
12/21/1999