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

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

#include <conversionindexptrvector.h>

Collaboration diagram for ConversionIndexPtrVector:
Collaboration graph

Public Member Functions

 ConversionIndexPtrVector ()
 This is the default ConversionIndexPtrVector constructor. More...
 
 ConversionIndexPtrVector (const ConversionIndexPtrVector &initial)
 This is the ConversionIndexPtrVector constructor that creates a copy of an existing ConversionIndexPtrVector. More...
 
 ~ConversionIndexPtrVector ()
 This is the ConversionIndexPtrVector destructor. More...
 
void resize (ConversionIndex *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...
 
ConversionIndex *& operator[] (int pos)
 This will return the value of an element of the vector. More...
 
ConversionIndex *const & operator[] (int pos) const
 This will return the value of an element of the vector. More...
 

Protected Attributes

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

Detailed Description

This class implements a dynamic vector of ConversionIndex values.

Constructor & Destructor Documentation

◆ ConversionIndexPtrVector() [1/2]

ConversionIndexPtrVector::ConversionIndexPtrVector ( )
inline

This is the default ConversionIndexPtrVector constructor.

◆ ConversionIndexPtrVector() [2/2]

ConversionIndexPtrVector::ConversionIndexPtrVector ( const ConversionIndexPtrVector initial)

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

Parameters
initialis the ConversionIndexPtrVector to copy

◆ ~ConversionIndexPtrVector()

ConversionIndexPtrVector::~ConversionIndexPtrVector ( )

This is the ConversionIndexPtrVector destructor.

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

Member Function Documentation

◆ Delete()

void ConversionIndexPtrVector::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]

ConversionIndex*& ConversionIndexPtrVector::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]

ConversionIndex* const& ConversionIndexPtrVector::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 ConversionIndexPtrVector::resize ( ConversionIndex value)

This will add one new entry to the vector.

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

◆ Size()

int ConversionIndexPtrVector::Size ( ) const
inline

This will return the size of the vector.

Returns
the size of the vector

Member Data Documentation

◆ size

int ConversionIndexPtrVector::size
protected

This is the size of the vector.

◆ v

ConversionIndex** ConversionIndexPtrVector::v
protected

This is the vector of ConversionIndex values.


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