next up previous contents
Next: Operators Up: Methods Previous: Data   Contents

Clear

NAME

Clear

PROTOTYPE

#include "ReVarPCifArray.h"

void ReVarPCifArray<TYPE>::Clear();

EXAMPLE

#include "ReVarPCifArray.h"
#include "CifString.h"

ReVarPCifArray<int> a = new ReVarPCifArray<int>();
a->Add(1);
a->Add(2);
a->Clear()
PURPOSE

Clear() Inserts the data pointed to by s into the array. Up to n elements are inserted, (truncating if necesary), starting at position p, (counted by zero).

RECEIVES

None

RETURN VALUE

Returns number of elements inserted, or 0 if error.

REMARKS

None



Olivera Tosic 2002-06-12