33 #ifndef __H__LIB_GRID__GEOMETRIC_OBJECT_COLLECTION_IMPL__
34 #define __H__LIB_GRID__GEOMETRIC_OBJECT_COLLECTION_IMPL__
49 template <
class TGeomObj>
inline
50 const typename ElementStorage<typename geometry_traits<TGeomObj>::grid_base_object>::
55 section_container(
m_levels[level].vrtContainer,
m_levels[level].edgeContainer,
59 template <
class TGeomObj>
inline
65 section_container(
m_levels[level].vrtContainer,
m_levels[level].edgeContainer,
71 template <
class TGeomObj>
75 return iterator_cast<typename geometry_traits<TGeomObj>::const_iterator>
76 (get_container<TGeomObj>(level)->section_begin(
82 template <
class TGeomObj>
86 return iterator_cast<typename geometry_traits<TGeomObj>::const_iterator>
87 (get_container<TGeomObj>(level)->section_end(
93 template <
class TGeomObj>
97 return iterator_cast<typename geometry_traits<TGeomObj>::iterator>
98 (get_container<TGeomObj>(level)->section_begin(
104 template <
class TGeomObj>
108 return iterator_cast<typename geometry_traits<TGeomObj>::iterator>
109 (get_container<TGeomObj>(level)->section_end(
115 template <
class TGeomObj>
122 return get_container<TGeomObj>(level)->num_elements();
124 return get_container<TGeomObj>(level)->num_elements(secIndex);
128 template <
class TGeomObj>
133 for(
size_t i = 0; i <
m_levels.size(); ++i)
134 counter += num<TGeomObj>(i);
This struct is used to hold GridObjects and their attachment pipes.
Definition: element_storage.h:44
geometry_traits< TGeomObj >::iterator begin(size_t level=0)
Definition: grid_object_collection_impl.hpp:95
geometry_traits< TGeomObj >::iterator end(size_t level=0)
Definition: grid_object_collection_impl.hpp:106
const ElementStorage< typename geometry_traits< TGeomObj >::grid_base_object >::SectionContainer * get_container(size_t level) const
Definition: grid_object_collection_impl.hpp:52
size_t num() const
Definition: grid_object_collection_impl.hpp:130
ContainerVec m_levels
Definition: grid_object_collection.h:225
A container that is divided into different sections.
Definition: section_container.h:59
Definition: grid_base_object_traits.h:68
Helper class to access the correct element storage from its element type.
Definition: element_storage.h:210