MeshConnectivity.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
MeshConnectivity
¶ Mesh connectivity stores a sparse data structure of connections (incidence relations) between mesh entities for a fixed pair of topological dimensions.
The connectivity can be specified either by first giving the number of entities and the number of connections for each entity, which may either be equal for all entities or different, or by giving the entire (sparse) connectivity pattern.
-
MeshConnectivity
(std::size_t d0, std::size_t d1)¶ Create empty connectivity between given dimensions (d0 – d1)
-
MeshConnectivity
(const MeshConnectivity &connectivity)¶ Copy constructor
-
const MeshConnectivity &
operator=
(const MeshConnectivity &connectivity)¶ Assignment
-
bool
empty
() const¶ Return true if the total number of connections is equal to zero
-
std::size_t
size
() const¶ Return total number of connections
-
std::size_t
size
(std::size_t entity) const¶ Return number of connections for given entity
-
std::size_t
size_global
(std::size_t entity) const¶ Return global number of connections for given entity
-
const unsigned int *
operator()
(std::size_t entity) const¶ Return array of connections for given entity
-
const std::vector<unsigned int> &
operator()
() const¶ Return contiguous array of connections for all entities
-
void
clear
()¶ Clear all data
-
void
init
(std::size_t num_entities, std::size_t num_connections)¶ Initialize number of entities and number of connections (equal for all)
-
void
init
(std::vector<std::size_t> &num_connections)¶ Initialize number of entities and number of connections (individually)
-
void
set
(std::size_t entity, std::size_t connection, std::size_t pos)¶ Set given connection for given entity
-
void
set
(std::size_t entity, const T &connections)¶ Set all connections for given entity. T is a contains, e.g. std::vector<std::size_t>
-
void
set
(std::size_t entity, std::size_t *connections)¶ Set all connections for given entity
-
void
set
(const std::vector<T> &connections)¶ Set all connections for all entities (T is a container, e.g. a std::vector<std::size_t>, std::set<std::size_t>, etc)
-
void
set_global_size
(const std::vector<unsigned int> &num_global_connections)¶ Set global number of connections for all local entities
-
std::size_t
hash
() const¶ Hash of connections
-
std::string
str
(bool verbose) const¶ Return informal string representation (pretty-print)
-