Class MeshConnectivity

Class Documentation

class MeshConnectivity

MeshConnectivity class stores the various connectivities for a mesh object.

Public Types

typedef std::vector<uint_t>::iterator connectivity_iterator
typedef std::vector<uint_t>::const_iterator const_connectivity_iterator

Public Functions

inline MeshConnectivity()
inline explicit MeshConnectivity(uint_t n)

\detailed ctor construct by setting the size of the connectivity

inline explicit MeshConnectivity(const std::vector<uint_t> &conn)

\detailed cto construct by passing the std::vector that holds the global connection indices

inline MeshConnectivity(const MeshConnectivity &o)

\detailed copy constructor

inline MeshConnectivity &operator=(const MeshConnectivity &o)

\detailed copy assignement operator

inline void assign_connections(const std::vector<uint_t> &connections)

\detailed assign the global indices of the MeshEntities that the MeshEntity this MeshConnectivity corresponds to

inline void set_connectivity_size(uint_t size)

\detailed set the size of the connectivity

inline void set_connection(uint_t i, uint_t connection_idx)

\detailed set the connection at position i to connection_idx

void invalidate_connections()

\detailed invalidate the connections

inline void clear_connections()

\detailed clear the connections returns to a state just like when calling the default ctor

inline void push_back(uint_t idx)

\detailed add to the end the given idx

inline uint_t operator[](uint_t i) const

\detailed get the i-th connectivity index

inline uint_t size() const

\detailed get the size for this connectivity

inline bool empty() const

\detailed true iff the connections_.empty() returs true

inline uint_t connection_idx(uint_t i) const

\detailed get the connection for the local index i

inline std::ostream &print_connectivity_info(std::ostream &o) const

\detailed print the connectivity info

inline connectivity_iterator connectivity_begin()
inline connectivity_iterator connectivity_end()
inline const_connectivity_iterator connectivity_begin() const
inline const_connectivity_iterator connectivity_end() const