33 #ifndef __UTIL__SECTION_CONTAINER__
34 #define __UTIL__SECTION_CONTAINER__
57 template <
class TValue,
class TContainer>
A container that is divided into different sections.
Definition: section_container.h:59
Container m_container
Definition: section_container.h:154
std::vector< Section > SectionVec
Definition: section_container.h:151
Container::const_iterator const_iterator
Definition: section_container.h:64
Container & get_container()
returns the container for raw access.
Definition: section_container.h:116
uint m_numElements
Definition: section_container.h:156
void erase(const iterator &iter, int sectionIndex)
Definition: section_container.hpp:296
const_iterator end() const
Definition: section_container.h:81
iterator section_begin(int sectionIndex)
Definition: section_container.hpp:117
value_type & front(int secIndex=-1)
returns the first entry in the given section.
Definition: section_container.hpp:165
iterator begin()
Definition: section_container.h:77
int num_sections() const
Definition: section_container.h:109
void add_sections(int num)
Definition: section_container.hpp:200
const_iterator begin() const
Definition: section_container.h:80
void clear_section(int sectionIndex)
Definition: section_container.hpp:81
uint num_elements() const
Definition: section_container.h:108
iterator section_end(int sectionIndex)
Definition: section_container.hpp:143
SectionVec m_vSections
Definition: section_container.h:155
TValue value_type
Definition: section_container.h:61
value_type & back(int secIndex=-1)
returns the last entry in the given section.
Definition: section_container.hpp:176
void transfer_elements(SectionContainer &c)
takes all elements from the given section container and transfers them to this one.
Definition: section_container.hpp:361
TContainer Container
Definition: section_container.h:62
Container::iterator iterator
Definition: section_container.h:63
iterator end()
Definition: section_container.h:78
void append(const SectionContainer &c)
appends the elements of the given container to the current one
Definition: section_container.hpp:347
void clear()
Definition: section_container.hpp:63
iterator insert(const TValue &val, int sectionIndex)
Definition: section_container.hpp:224
SectionContainer()
Definition: section_container.hpp:56
unsigned int uint
Definition: types.h:114
T value_type
Definition: sparsematrix_interface.h:2
Definition: section_container.h:133
Section()
Definition: section_container.h:134
Section(const iterator &elemsBegin, const iterator &elemsEnd, int numElems)
Definition: section_container.h:135
iterator m_elemsEnd
Definition: section_container.h:145
uint m_numElements
Definition: section_container.h:148
iterator m_elemsBegin
Definition: section_container.h:144