Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

TArray Class Template Reference

#include <hyp.type.h>

List of all members.

Public Methods

 TArray (t_size Capacity, const T &Data=T())
void reset (const T &Data)
void show (std::ostream &Stream)


Detailed Description

template<class T> class TArray

Defines arrays. In fact, this class is a trick to switch easily between two standard containers :


Constructor & Destructor Documentation

template<class T>
TArray<T>::TArray<T> ( t_size Capacity,
const T & Data = T() ) [inline, explicit]
 

Constructs an array.

Parameters:
Capacity   Capacity of the created array.
Data   Value which is used to initialize the entire array.


Member Function Documentation

template<class T>
void TArray<T>::reset ( const T & Data ) [inline]
 

Resets the entire array.

Parameters:
Data   Value which is used to initialize the entire array.

template<class T>
void TArray<T>::show ( std::ostream & Stream ) [inline]
 

Shows the array in a defined stream.

Parameters:
Stream   Stream which is used to show the array.


The documentation for this class was generated from the following file:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.