eosim::utils::DistVector Class Reference
[Collections]

#include <eosim/utils/distvector.hpp>

List of all members.


Detailed Description

Vector of Distributions.

Author:
Sebastián Alaggia
Version:
1.0.1
Date:
2005
This container stores Distributions in a vector. It is used by DistManager to register Distributions.


Public Member Functions

 DistVector ()
 The constructor creates an empty DistVector.
 ~DistVector ()
 The destructor of DistVector. This operation doesn’t delete any Distributions stored.
void push (dist::Distribution *elem)
 This operation adds elem at the end of the vector.
void remove (unsigned int i)
 This operation remove the element whose position in the vector is i.
dist::Distribution *& operator[] (unsigned int i)
 This operation returns the Distribution whose position in the vector is i.
unsigned int size ()
 This operation returns the size of the vector.


Constructor & Destructor Documentation

DistVector::~DistVector (  ) 

The destructor of DistVector. This operation doesn’t delete any Distributions stored.

Note:
This operation doesn’t delete any Distributions stored.


Member Function Documentation

void DistVector::remove ( unsigned int  i  ) 

This operation remove the element whose position in the vector is i.

Warning:
i must be within the limits of the vector.

Distribution *& DistVector::operator[] ( unsigned int  i  ) 

This operation returns the Distribution whose position in the vector is i.

Note:
The use of this operation is either dVect[i] or dVect.operator[](i).
Warning:
i must be within the limits of the vector.


Generated on Tue Oct 14 16:49:06 2008 for EOSimulator by  doxygen 1.5.2