CircularVector< Contained > Class Template Reference
List of all members.
Detailed Description
template<class Contained>
class CircularVector< Contained >
This class is a generic
CircularVector implementation that uses dynamically allocated memory representation with adaptable behaviour
- Author:
- G06
Definition at line 18 of file ep_cvec.h.
Constructor & Destructor Documentation
template<class Contained>
Default constructor
Definition at line 129 of file ep_cvec.h.
Member Function Documentation
template<class Contained>
Returns the CircularVector last Contained reference
- Returns:
- a reference to the last Contained
Definition at line 231 of file ep_cvec.h.
template<class Contained>
Gets a iterator that iterates over const Contained values
- Returns:
- a ConstIterator that iterates over the CircularVector instance first element
Definition at line 149 of file ep_cvec.h.
template<class Contained>
Gets a iterator that iterates over const Contained values
- Returns:
- a ConstIterator that iterates over the CircularVector instance first element
Definition at line 141 of file ep_cvec.h.
template<class Contained>
template<class Contained>
Gets a iterator that iterates over const Contained values
- Returns:
- a ConstIterator that iterates over the CircularVector instance end (garbage)
Definition at line 165 of file ep_cvec.h.
template<class Contained>
Gets a iterator that iterates over const Contained values
- Returns:
- a ConstIterator that iterates over the CircularVector instance end (garbage)
Definition at line 157 of file ep_cvec.h.
template<class Contained>
template<class Contained>
Returns the CircularVector first Contained reference
- Returns:
- a reference to the first Contained
Definition at line 223 of file ep_cvec.h.
template<class Contained>
void CircularVector< Contained >::inc |
( |
int & |
toIncrement, |
|
|
int |
n | |
|
) |
| | [inline, protected] |
Increments ciruclarly the passed int
- Parameters:
-
| toIncrement | the integer that will be incremented |
| n | the reference size |
Definition at line 290 of file ep_cvec.h.
template<class Contained>
template<class Contained>
template<class Contained>
template<class Contained>
template<class Contained>
Auxiliar print method that shows the internal values of each Contained
Definition at line 118 of file ep_cvec.h.
template<class Contained>
void CircularVector< Contained >::pushBack |
( |
const Contained & |
contained |
) |
[inline] |
Inserts the Contained type in the last position of the Vector
- Parameters:
-
| contained | the object to be inserted |
Definition at line 186 of file ep_cvec.h.
template<class Contained>
void CircularVector< Contained >::pushFront |
( |
const Contained & |
contained |
) |
[inline] |
Inserts the Contained type in the first position of the Vector
- Parameters:
-
| contained | the object to be inserted |
Definition at line 173 of file ep_cvec.h.
template<class Contained>
void CircularVector< Contained >::remove |
( |
const Contained & |
contained |
) |
[inline] |
O(n) remove that iterates over the array elements till it finds the Contained to be removed. Nothing happens if the passed object doesn't exists in the CircularVector instance
- Parameters:
-
| contained | the Contained to be removed |
Definition at line 264 of file ep_cvec.h.
template<class Contained>
Member Data Documentation
template<class Contained>
Begin and end pointers
Definition at line 283 of file ep_cvec.h.
template<class Contained>
Dynamically allocated array of Contained
Definition at line 278 of file ep_cvec.h.
The documentation for this class was generated from the following file:
- /home/andref/projetos/epos--/include/ep_cvec.h