23 #ifndef __MESH_DOMAINS_H 24 #define __MESH_DOMAINS_H 62 std::map<std::size_t, std::size_t>&
markers(std::size_t dim);
66 const std::map<std::size_t, std::size_t>&
markers(std::size_t dim)
const;
70 bool set_marker(std::pair<std::size_t, std::size_t> marker,
75 std::size_t
get_marker(std::size_t entity_index, std::size_t dim)
const;
81 void init(std::size_t dim);
89 std::vector<std::map<std::size_t, std::size_t> > _markers;
std::size_t get_marker(std::size_t entity_index, std::size_t dim) const
Definition: MeshDomains.cpp:92
void init(std::size_t dim)
Initialize mesh domains for given topological dimension.
Definition: MeshDomains.cpp:116
Definition: MeshDomains.h:41
const MeshDomains & operator=(const MeshDomains &domains)
Assignment operator.
Definition: MeshDomains.cpp:108
bool set_marker(std::pair< std::size_t, std::size_t > marker, std::size_t dim)
Definition: MeshDomains.cpp:75
bool is_empty() const
Check whether domain data is empty.
Definition: MeshDomains.cpp:54
std::size_t max_dim() const
Return maximum topological dimension of stored markers.
Definition: MeshDomains.cpp:40
std::size_t num_marked(std::size_t dim) const
Return number of marked entities of given dimension.
Definition: MeshDomains.cpp:48
void clear()
Clear all data.
Definition: MeshDomains.cpp:125
~MeshDomains()
Destructor.
Definition: MeshDomains.cpp:35
MeshDomains()
Create empty mesh domains.
Definition: MeshDomains.cpp:30
std::map< std::size_t, std::size_t > & markers(std::size_t dim)
Definition: MeshDomains.cpp:62