MEPP2 Project
Public Types | Public Member Functions | Private Attributes | List of all members
FEVV::DataStructures::AIF::AIFCellContainer< T > Class Template Reference

#include <AIFCellContainer.h>

Inheritance diagram for FEVV::DataStructures::AIF::AIFCellContainer< T >:
Inheritance graph
Collaboration diagram for FEVV::DataStructures::AIF::AIFCellContainer< T >:
Collaboration graph

Public Types

typedef std::vector< T >::iterator iterator
 
typedef std::vector< T >::const_iterator const_iterator
 

Public Member Functions

void add (T c)
 
std::size_t remove (std::size_t i)
 
T & operator[] (std::size_t idx)
 
const T & operator[] (std::size_t idx) const
 
iterator begin (void)
 
iterator end (void)
 
const_iterator begin (void) const
 
const_iterator end (void) const
 
const_iterator cbegin (void) const
 
const_iterator cend (void) const
 
std::size_t size (void) const
 
void reserve (std::size_t n)
 
void erase (const iterator iter)
 
void displayDebugInfos (const char *title)
 

Private Attributes

std::vector< T > container
 the real cell container More...
 

Detailed Description

template<typename T>
class FEVV::DataStructures::AIF::AIFCellContainer< T >

Definition at line 25 of file AIFCellContainer.h.

Member Typedef Documentation

◆ const_iterator

template<typename T >
typedef std::vector< T >::const_iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::const_iterator

Definition at line 29 of file AIFCellContainer.h.

◆ iterator

template<typename T >
typedef std::vector< T >::iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::iterator

Definition at line 28 of file AIFCellContainer.h.

Member Function Documentation

◆ add()

template<typename T >
void FEVV::DataStructures::AIF::AIFCellContainer< T >::add ( c)
inline

Add element c to the end of container.

Definition at line 34 of file AIFCellContainer.h.

Here is the caller graph for this function:

◆ begin() [1/2]

template<typename T >
iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::begin ( void  )
inline
  Return an iterator pointing to the beginning of the

container.

Definition at line 108 of file AIFCellContainer.h.

Here is the caller graph for this function:

◆ begin() [2/2]

template<typename T >
const_iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::begin ( void  ) const
inline
  Return a const iterator pointing to the beginning of the

container.

Definition at line 117 of file AIFCellContainer.h.

◆ cbegin()

template<typename T >
const_iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::cbegin ( void  ) const
inline
  Return a const iterator pointing to the beginning of the

container.

Definition at line 127 of file AIFCellContainer.h.

Here is the caller graph for this function:

◆ cend()

template<typename T >
const_iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::cend ( void  ) const
inline
  Return a const iterator pointing to the end of the

container.

Definition at line 132 of file AIFCellContainer.h.

Here is the caller graph for this function:

◆ displayDebugInfos()

template<typename T >
void FEVV::DataStructures::AIF::AIFCellContainer< T >::displayDebugInfos ( const char *  title)
inline

Display debug information of the container.

Definition at line 150 of file AIFCellContainer.h.

◆ end() [1/2]

template<typename T >
iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::end ( void  )
inline

Return an iterator pointing to the end of the container.

Definition at line 112 of file AIFCellContainer.h.

Here is the caller graph for this function:

◆ end() [2/2]

template<typename T >
const_iterator FEVV::DataStructures::AIF::AIFCellContainer< T >::end ( void  ) const
inline
  Return a const iterator pointing to the end of the

container.

Definition at line 122 of file AIFCellContainer.h.

◆ erase()

template<typename T >
void FEVV::DataStructures::AIF::AIFCellContainer< T >::erase ( const iterator  iter)
inline
  Remove the element pointed by the iterator in the

container.

Definition at line 146 of file AIFCellContainer.h.

Here is the caller graph for this function:

◆ operator[]() [1/2]

template<typename T >
T& FEVV::DataStructures::AIF::AIFCellContainer< T >::operator[] ( std::size_t  idx)
inline
  Random access to element located at the i-th position in the

container.

Definition at line 98 of file AIFCellContainer.h.

◆ operator[]() [2/2]

template<typename T >
const T& FEVV::DataStructures::AIF::AIFCellContainer< T >::operator[] ( std::size_t  idx) const
inline
  Random access to element located at the i-th position in the

container.

Definition at line 103 of file AIFCellContainer.h.

◆ remove()

template<typename T >
std::size_t FEVV::DataStructures::AIF::AIFCellContainer< T >::remove ( std::size_t  i)
inline
  Remove the element located at the i-th position in the

container.

Definition at line 43 of file AIFCellContainer.h.

Here is the caller graph for this function:

◆ reserve()

template<typename T >
void FEVV::DataStructures::AIF::AIFCellContainer< T >::reserve ( std::size_t  n)
inline

Reserve a given size for the container.

Definition at line 140 of file AIFCellContainer.h.

◆ size()

template<typename T >
std::size_t FEVV::DataStructures::AIF::AIFCellContainer< T >::size ( void  ) const
inline

Return the size of the container.

Definition at line 136 of file AIFCellContainer.h.

Here is the caller graph for this function:

Member Data Documentation

◆ container

template<typename T >
std::vector< T > FEVV::DataStructures::AIF::AIFCellContainer< T >::container
private

the real cell container

Definition at line 161 of file AIFCellContainer.h.


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