Go to the documentation of this file.
14 namespace DataStructures {
24 template<
typename T >
28 typedef typename std::vector< T >::iterator
iterator;
46 std::size_t lastId =
size - 1;
48 if(
size == 0 || i > lastId)
49 throw std::runtime_error(
50 "In CellContainer::remove(): index out of range.");
55 std::size_t tmp =
container[i]->GetIndex();
56 bool ascending_order = (tmp==i) && (
container[lastId]->GetIndex() == lastId);
76 std::size_t index_max = 0;
77 for(std::size_t n=1; n <= lastId; ++n)
152 std::cout <<
"Debug, " << title <<
":\n";
153 std::cout <<
" size=" <<
container.size() <<
'\n';
154 for(std::size_t i = 0; i <
container.size(); i++)
155 std::cout <<
" [" << i <<
"]: " <<
container[i]->GetIndex() <<
", "
const_iterator cend(void) const
const_iterator cbegin(void) const
void reserve(std::size_t n)
std::vector< T >::iterator iterator
Interfaces for plugins These interfaces will be used for different plugins.
std::size_t remove(std::size_t i)
void displayDebugInfos(const char *title)
T & operator[](std::size_t idx)
std::vector< T > container
the real cell container
std::vector< T >::const_iterator const_iterator
const_iterator end(void) const
void erase(const iterator iter)
const T & operator[](std::size_t idx) const
std::size_t size(void) const
const_iterator begin(void) const