|
PolyFEM
|
Set of ids stored as a sorted vector: iterates in increasing order like std::set<int>, but uses a fraction of its memory for the short element lists of the non-conforming meshes. More...
#include <NCMeshStorage.hpp>
Public Types | |
| using | const_iterator = std::vector< int >::const_iterator |
Public Member Functions | |
| void | insert (const int id) |
| size_t | erase (const int id) |
| Removes id; returns the number of removed ids (0 or 1). | |
| size_t | size () const |
| bool | empty () const |
| void | clear () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
Private Attributes | |
| std::vector< int > | ids_ |
Set of ids stored as a sorted vector: iterates in increasing order like std::set<int>, but uses a fraction of its memory for the short element lists of the non-conforming meshes.
Definition at line 18 of file NCMeshStorage.hpp.
| using polyfem::mesh::SortedIds::const_iterator = std::vector<int>::const_iterator |
Definition at line 21 of file NCMeshStorage.hpp.
|
inline |
Definition at line 44 of file NCMeshStorage.hpp.
References ids_.
|
inline |
Definition at line 46 of file NCMeshStorage.hpp.
References ids_.
Referenced by polyfem::mesh::NCMesh2D::ncBoundary::get_element(), and polyfem::mesh::NCMesh3D::ncBoundary::get_element().
|
inline |
Definition at line 47 of file NCMeshStorage.hpp.
References ids_.
|
inline |
Definition at line 42 of file NCMeshStorage.hpp.
References ids_.
|
inline |
Definition at line 41 of file NCMeshStorage.hpp.
References ids_.
|
inline |
Definition at line 45 of file NCMeshStorage.hpp.
References ids_.
|
inline |
Removes id; returns the number of removed ids (0 or 1).
Definition at line 31 of file NCMeshStorage.hpp.
References ids_.
Referenced by polyfem::mesh::NCMesh2D::ncBoundary::remove_element(), polyfem::mesh::NCMesh3D::ncVert::remove_element(), and polyfem::mesh::NCMesh3D::ncBoundary::remove_element().
|
inline |
Definition at line 23 of file NCMeshStorage.hpp.
References ids_.
Referenced by polyfem::mesh::NCMesh2D::ncBoundary::add_element(), polyfem::mesh::NCMesh3D::ncVert::add_element(), polyfem::mesh::NCMesh3D::ncBoundary::add_element(), and polyfem::mesh::NCMesh3D::append().
|
inline |
Definition at line 40 of file NCMeshStorage.hpp.
References ids_.
Referenced by polyfem::mesh::NCMesh2D::ncBoundary::n_elem(), polyfem::mesh::NCMesh3D::ncVert::n_elem(), and polyfem::mesh::NCMesh3D::ncBoundary::n_elem().
|
private |