Class Block


			
template class Block<class Type>
Programmer: Matt Splett

Description:

Block is a simple wrapper for an array class that limits usage as a pointer.

Public Methods:

Block (const UInteger &);
Constructor, where size is the number of elements to allocate

virtual ~Block ();
Default Destructor, needed to deallocate included pointer

Block (const Block<Type>&);
Copy Constructor to build from anonther array of same type

Block (const UInteger, Type*);
Constructor to build from a specified size and a low level array

Block& operator = (const Block<Type>&);
Assignment

virtual Type & operator [] (const UInteger &);


virtual const Type & operator [] (const UInteger &);
SubIndexing operator

const UInteger size ();
Reports number of elements allocated

Protected Methods:

Block ( );
Doesn't make sense to create blocks without a specified size.

Protected Members:


UInteger mySize;
The number of allocated elements


Type* myBlock;
Low level pointer to array of type Type