|
ViennaGrid - The Vienna Grid Library
2.1.0
|
A segmentation is a logical decomposition of the mesh (or a subset thereof) into segments. Segments may overlap. More...
#include <segmentation.hpp>
Data Structures | |
| class | const_iterator |
| Const iterator for iterating over all segments. More... | |
| class | iterator |
| Iterator for iterating over all segments. More... | |
| struct | segment |
| For internal use only. | |
Public Types | |
| typedef result_of::segmentation_appendix_type < WrappedConfigType >::type | appendix_type |
| For internal use only. | |
| typedef result_of::segmentation_mesh_type < WrappedConfigType >::type | mesh_type |
| The mesh type to which the segmentation references. | |
| typedef result_of::segmentation_segment_container_tag < WrappedConfigType >::type | segment_container_tag |
| For internal use only. | |
| typedef segment_handle< self_type > | segment_handle_type |
| The segment type of the segmentation. | |
| typedef result_of::segmentation_segment_id_type < WrappedConfigType >::type | segment_id_type |
| The segment ID type. | |
| typedef viennagrid::segmentation < WrappedConfigType > | self_type |
| For internal use only. | |
| typedef result_of::segmentation_view_type < WrappedConfigType >::type | view_type |
| The view type in a segment. | |
Public Member Functions | |
| view_type & | all_elements () |
| view_type const & | all_elements () const |
| appendix_type & | appendix () |
| Returns the appenix of the segmentation, for internal use only. | |
| appendix_type const & | appendix () const |
| Returns the appenix of the segmentation, const version, for internal use only. | |
| segment_handle_type const & | at (segment_id_type const &segment_id) const |
| Returns segment with segment_id. Throws. | |
| segment_handle_type const & | at (std::string const &segment_name) const |
| Returns segment with segment_name. Throws. | |
| iterator | begin () |
| Returns an iterator pointing to the first segment. | |
| const_iterator | begin () const |
| Returns a const iterator pointing to the first segment, const version. | |
| const_iterator | cbegin () const |
| Returns a const iterator pointing to the first segment. | |
| const_iterator | cend () const |
| Returns a const iterator pointing to the end of the segments. | |
| void | clear () |
| Completely clears a segmentations. | |
| bool | empty () const |
| Queries if the segmentation is empty. | |
| iterator | end () |
| Returns an iterator pointing to the end of the segments. | |
| const_iterator | end () const |
| Returns a const iterator pointing to the end of the segments, const version. | |
| iterator | find (segment_id_type const &segment_id) |
| Finds a segment with a given segment ID. | |
| const_iterator | find (segment_id_type const &segment_id) const |
| Finds a segment with a given segment ID, const version. | |
| segment_handle_type & | get_make_segment (segment_id_type const &segment_id) |
| Returns the segment with the given ID, will create a new segment if no segment with the given ID is present. | |
| segment_handle_type & | get_make_segment (std::string const &segment_name) |
| Returns the segment with the given ID, will create a new segment if no segment with the given ID is present. | |
| segment_handle_type & | get_segment (segment_id_type const &segment_id) |
| Returns the segment with the given ID, will fail if no segment with segment_id is present. | |
| segment_handle_type const & | get_segment (segment_id_type const &segment_id) const |
| Returns the segment with the given ID, will fail if no segment with segment_id is present. | |
| segment_handle_type & | get_segment (std::string const &segment_name) |
| Returns the segment with the given name, will fail if no segment with segment_id is present. | |
| segment_handle_type const & | get_segment (std::string const &segment_name) const |
| Returns the segment with the given name, will fail if no segment with segment_id is present. | |
| segment_id_type | id_upper_bound () const |
| Returns the heighest segment ID. | |
| void | init (mesh_type &mesh_x) |
| (Re-)Initializes a segmentation based on a mesh. | |
| segment_handle_type & | make_segment () |
| Creates a new segment with an automatic assigned ID. | |
| mesh_type & | mesh () |
| Returns the mesh to which the segmentation is associated. | |
| mesh_type const & | mesh () const |
| Returns the mesh to which the segmentation is associated, const version. | |
| segment_handle_type & | operator() (segment_id_type const &segment_id) |
| Calls get_make_segment with segment_id. | |
| segment_handle_type const & | operator() (segment_id_type const &segment_id) const |
| Calls get_segment with segment_id. | |
| segment_handle_type & | operator() (std::string const &segment_name) |
| Calls get_make_segment with segment_name. | |
| segment_handle_type const & | operator() (std::string const &segment_name) const |
| Calls get_segment with segment_name. | |
| segment_handle_type & | operator[] (segment_id_type const &segment_id) |
| Calls get_make_segment with segment_id. | |
| segment_handle_type const & | operator[] (segment_id_type const &segment_id) const |
| Calls get_segment with segment_id. | |
| segment_handle_type & | operator[] (std::string const &segment_name) |
| Calls get_make_segment with segment_name. | |
| segment_handle_type const & | operator[] (std::string const &segment_name) const |
| Calls get_segment with segment_name. | |
| bool | segment_present (segment_id_type const &segment_id) const |
| Queries if a segment with given ID is present within the segmentation. | |
| segmentation (mesh_type &mesh_x) | |
| Constructor. | |
| std::size_t | size () const |
| Returns the number of segments in the segmentation. | |
Friends | |
| class | segment_handle< segmentation< WrappedConfigType > > |
A segmentation is a logical decomposition of the mesh (or a subset thereof) into segments. Segments may overlap.
| typedef result_of::segmentation_appendix_type<WrappedConfigType>::type appendix_type |
For internal use only.
| typedef result_of::segmentation_mesh_type<WrappedConfigType>::type mesh_type |
The mesh type to which the segmentation references.
| typedef result_of::segmentation_segment_container_tag<WrappedConfigType>::type segment_container_tag |
For internal use only.
| typedef segment_handle<self_type> segment_handle_type |
The segment type of the segmentation.
| typedef result_of::segmentation_segment_id_type<WrappedConfigType>::type segment_id_type |
The segment ID type.
| typedef viennagrid::segmentation<WrappedConfigType> self_type |
For internal use only.
| typedef result_of::segmentation_view_type<WrappedConfigType>::type view_type |
The view type in a segment.
| segmentation | ( | mesh_type & | mesh_x | ) | [inline] |
Constructor.
| mesh_x | The mesh object to which the segmentation references |
| view_type& all_elements | ( | ) | [inline] |
| view_type const& all_elements | ( | ) | const [inline] |
| appendix_type& appendix | ( | ) | [inline] |
Returns the appenix of the segmentation, for internal use only.
| appendix_type const& appendix | ( | ) | const [inline] |
Returns the appenix of the segmentation, const version, for internal use only.
| segment_handle_type const& at | ( | segment_id_type const & | segment_id | ) | const [inline] |
Returns segment with segment_id. Throws.
| segment_id | The ID of the segment to search |
| segment_handle_type const& at | ( | std::string const & | segment_name | ) | const [inline] |
Returns segment with segment_name. Throws.
| segment_name | The name of the segment to search |
Returns an iterator pointing to the first segment.
| const_iterator begin | ( | ) | const [inline] |
Returns a const iterator pointing to the first segment, const version.
| const_iterator cbegin | ( | ) | const [inline] |
Returns a const iterator pointing to the first segment.
| const_iterator cend | ( | ) | const [inline] |
Returns a const iterator pointing to the end of the segments.
| void clear | ( | ) | [inline] |
Completely clears a segmentations.
| bool empty | ( | ) | const [inline] |
Queries if the segmentation is empty.
Returns an iterator pointing to the end of the segments.
| const_iterator end | ( | ) | const [inline] |
Returns a const iterator pointing to the end of the segments, const version.
| iterator find | ( | segment_id_type const & | segment_id | ) | [inline] |
Finds a segment with a given segment ID.
| segment_id | The segment ID of the segment to find |
| const_iterator find | ( | segment_id_type const & | segment_id | ) | const [inline] |
Finds a segment with a given segment ID, const version.
| segment_id | The segment ID of the segment to find |
| segment_handle_type& get_make_segment | ( | segment_id_type const & | segment_id | ) | [inline] |
Returns the segment with the given ID, will create a new segment if no segment with the given ID is present.
| segment_id | The ID of the segment to search |
| segment_handle_type& get_make_segment | ( | std::string const & | segment_name | ) | [inline] |
Returns the segment with the given ID, will create a new segment if no segment with the given ID is present.
| segment_id | The ID of the segment to search |
| segment_handle_type& get_segment | ( | segment_id_type const & | segment_id | ) | [inline] |
Returns the segment with the given ID, will fail if no segment with segment_id is present.
| segment_id | The ID of the segment to search |
| segment_handle_type const& get_segment | ( | segment_id_type const & | segment_id | ) | const [inline] |
Returns the segment with the given ID, will fail if no segment with segment_id is present.
| segment_id | The ID of the segment to search |
| segment_handle_type& get_segment | ( | std::string const & | segment_name | ) | [inline] |
Returns the segment with the given name, will fail if no segment with segment_id is present.
| segment_id | The name of the segment to search |
| segment_handle_type const& get_segment | ( | std::string const & | segment_name | ) | const [inline] |
Returns the segment with the given name, will fail if no segment with segment_id is present.
| segment_id | The name of the segment to search |
| segment_id_type id_upper_bound | ( | ) | const [inline] |
Returns the heighest segment ID.
| segment_handle_type& make_segment | ( | ) | [inline] |
Creates a new segment with an automatic assigned ID.
Returns the mesh to which the segmentation is associated.
Returns the mesh to which the segmentation is associated, const version.
| segment_handle_type& operator() | ( | segment_id_type const & | segment_id | ) | [inline] |
Calls get_make_segment with segment_id.
| segment_id | The ID of the segment to search |
| segment_handle_type const& operator() | ( | segment_id_type const & | segment_id | ) | const [inline] |
Calls get_segment with segment_id.
| segment_id | The ID of the segment to search |
| segment_handle_type& operator() | ( | std::string const & | segment_name | ) | [inline] |
Calls get_make_segment with segment_name.
| segment_name | The name of the segment to search |
| segment_handle_type const& operator() | ( | std::string const & | segment_name | ) | const [inline] |
Calls get_segment with segment_name.
| segment_name | The name of the segment to search |
| segment_handle_type& operator[] | ( | segment_id_type const & | segment_id | ) | [inline] |
Calls get_make_segment with segment_id.
| segment_id | The ID of the segment to search |
| segment_handle_type const& operator[] | ( | segment_id_type const & | segment_id | ) | const [inline] |
Calls get_segment with segment_id.
| segment_id | The ID of the segment to search |
| segment_handle_type& operator[] | ( | std::string const & | segment_name | ) | [inline] |
Calls get_make_segment with segment_name.
| segment_name | The name of the segment to search |
| segment_handle_type const& operator[] | ( | std::string const & | segment_name | ) | const [inline] |
Calls get_segment with segment_name.
| segment_name | The name of the segment to search |
| bool segment_present | ( | segment_id_type const & | segment_id | ) | const [inline] |
Queries if a segment with given ID is present within the segmentation.
| segment_id | The ID of the segment to search |
| std::size_t size | ( | ) | const [inline] |
Returns the number of segments in the segmentation.
friend class segment_handle< segmentation< WrappedConfigType > > [friend] |
1.7.6.1