Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

plArray Class Reference

A {plArray} is a single type variable set containing the elements of an {n} dimensional array of unidimensional variables. More...

#include <plArray.h>

Inheritance diagram for plArray:

Inheritance graph
[legend]
Collaboration diagram for plArray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 plArray (const string &print_name, const plType &variable_type, const unsigned int &tab_dim, unsigned int first_dimension,...)
 Constructs a Variable Set containing an array of one dimensional variables of the same type.
 plArray ()
 Default constructor.
virtual ~plArray ()
 Erase the array of variables.
plSymbol operator() (unsigned int first_index,...)
 Access operator for an array of variables.

Detailed Description

A {plArray} is a single type variable set containing the elements of an {n} dimensional array of unidimensional variables.

That is, all the variables on the set are of the same type.

Definition at line 35 of file plArray.h.


Constructor & Destructor Documentation

plArray::plArray const string &  print_name,
const plType variable_type,
const unsigned int &  tab_dim,
unsigned int  first_dimension,
  ...
 

Constructs a Variable Set containing an array of one dimensional variables of the same type.

The array named {print name} contains variables of type {variable type}, has dimensions {tab dim}. The other parameters {first ,...} are the sizes for each dimension. Example {plArray t("matrix",t1,2,3,4)} creates a table named {matrix} with variables of type {t1} and of size (2 dimensions) {3x4}.


Member Function Documentation

plSymbol plArray::operator() unsigned int  first_index,
  ...
 

Access operator for an array of variables.

Example, for a 2x2 table {t} you can access {t(0,0), t(0,1), t(1,0) of t(1,1)}.


The documentation for this class was generated from the following file:
Generated on Fri Apr 1 10:58:18 2005 for ProBT by  doxygen 1.4.1