Face sets. More...
#include <ogdf/basic/FaceSet.h>
Public Types | |
| using | ListType = typename std::conditional< SupportFastSizeQuery, List< face >, ListPure< face > >::type |
Public Member Functions | |
| FaceSet (const CombinatorialEmbedding &E) | |
Creates an empty face set associated with combinatorial embedding E. More... | |
| template<bool OtherSupportsFastSizeQuery> | |
| FaceSet (const FaceSet< OtherSupportsFastSizeQuery > &other) | |
| Copy constructor. More... | |
| void | clear () |
| Removes all faces from this set-. More... | |
| const ConstCombinatorialEmbedding & | embeddingOf () const |
| Returns the associated combinatorial embedding. More... | |
| const ListType & | faces () const |
| Returns a reference to the list of faces contained in this set. More... | |
| void | insert (face f) |
Inserts face f into this set. More... | |
| bool | isMember (face f) const |
Returns true iff face f is contained in this set. More... | |
| template<bool OtherSupportsFastSizeQuery> | |
| FaceSet & | operator= (const FaceSet< OtherSupportsFastSizeQuery > &other) |
| Assignment operator. More... | |
| void | remove (face f) |
Removes face f from this set. More... | |
| int | size () const |
| Returns the number of faces in this set. More... | |
Private Attributes | |
| ListType | m_faces |
| The list of faces contained in this set. More... | |
| FaceArray< ListIterator< face > > | m_it |
| m_it[f] contains the list iterator pointing to f if f is contained in S, or an invalid list iterator otherwise. More... | |
Face sets.
Maintains a subset of faces contained in an associated combinatorial embedding. Provides efficient operations for testing membership, iteration, insertion and deletion of elements, as well as clearing the set.
| SupportFastSizeQuery | Whether this set supports querying it's size in constant instead of linear time (in the size). |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |