Gadget
Public Member Functions | Protected Attributes | List of all members
FormulaMatrixPtrVector Class Reference

This class implements a dynamic vector of FormulaMatrix values. More...

#include <formulamatrixptrvector.h>

Collaboration diagram for FormulaMatrixPtrVector:
Collaboration graph

Public Member Functions

 FormulaMatrixPtrVector ()
 This is the default FormulaMatrixPtrVector constructor. More...
 
 FormulaMatrixPtrVector (const FormulaMatrixPtrVector &initial)
 This is the FormulaMatrixPtrVector constructor that creates a copy of an existing FormulaMatrixPtrVector. More...
 
 ~FormulaMatrixPtrVector ()
 This is the FormulaMatrixPtrVector destructor. More...
 
void resize (FormulaMatrix *value)
 This will add one new entry to the vector. More...
 
void Delete (int pos)
 This will delete an entry from the vector. More...
 
int Size () const
 This will return the size of the vector. More...
 
FormulaMatrix *& operator[] (int pos)
 This will return the value of an element of the vector. More...
 
FormulaMatrix *const & operator[] (int pos) const
 This will return the value of an element of the vector. More...
 

Protected Attributes

FormulaMatrix ** v
 This is the vector of FormulaMatrix values. More...
 
int size
 This is the size of the vector. More...
 

Detailed Description

This class implements a dynamic vector of FormulaMatrix values.

Constructor & Destructor Documentation

◆ FormulaMatrixPtrVector() [1/2]

FormulaMatrixPtrVector::FormulaMatrixPtrVector ( )
inline

This is the default FormulaMatrixPtrVector constructor.

◆ FormulaMatrixPtrVector() [2/2]

FormulaMatrixPtrVector::FormulaMatrixPtrVector ( const FormulaMatrixPtrVector initial)

This is the FormulaMatrixPtrVector constructor that creates a copy of an existing FormulaMatrixPtrVector.

Parameters
initialis the FormulaMatrixPtrVector to copy

◆ ~FormulaMatrixPtrVector()

FormulaMatrixPtrVector::~FormulaMatrixPtrVector ( )

This is the FormulaMatrixPtrVector destructor.

Note
This will free all the memory allocated to all the elements of the vector

Member Function Documentation

◆ Delete()

void FormulaMatrixPtrVector::Delete ( int  pos)

This will delete an entry from the vector.

Parameters
posis the element of the vector to be deleted
Note
This will free the memory allocated to the deleted element of the vector

◆ operator[]() [1/2]

FormulaMatrix*& FormulaMatrixPtrVector::operator[] ( int  pos)
inline

This will return the value of an element of the vector.

Parameters
posis the element of the vector to be returned
Returns
the value of the specified element

◆ operator[]() [2/2]

FormulaMatrix* const& FormulaMatrixPtrVector::operator[] ( int  pos) const
inline

This will return the value of an element of the vector.

Parameters
posis the element of the vector to be returned
Returns
the value of the specified element

◆ resize()

void FormulaMatrixPtrVector::resize ( FormulaMatrix value)

This will add one new entry to the vector.

Parameters
valueis the value that will be entered for the new entry

◆ Size()

int FormulaMatrixPtrVector::Size ( ) const
inline

This will return the size of the vector.

Returns
the size of the vector

Member Data Documentation

◆ size

int FormulaMatrixPtrVector::size
protected

This is the size of the vector.

◆ v

FormulaMatrix** FormulaMatrixPtrVector::v
protected

This is the vector of FormulaMatrix values.


The documentation for this class was generated from the following files: