Simple face sets.
More...
#include <ogdf/basic/FaceSet.h>
Simple face sets.
A face set maintains a subset S of the faces contained in an associated combinatorial embedding. This kind of face set only provides efficient operation for testing membership, insertion, and clearing the set.
- See also
-
Definition at line 56 of file FaceSet.h.
◆ FaceSetSimple()
Creates an empty face set associated with combinatorial embedding E.
Definition at line 59 of file FaceSet.h.
◆ ~FaceSetSimple()
| ogdf::FaceSetSimple::~FaceSetSimple |
( |
| ) |
|
|
inline |
◆ clear()
| void ogdf::FaceSetSimple::clear |
( |
| ) |
|
|
inline |
Removes all faces from S.
After this operation, the S is empty and still associated with the same combinatorial embedding. The runtime of this operations is O(k), where k is the number of faces in S before this operation.
Definition at line 86 of file FaceSet.h.
◆ faces()
Returns a reference to the list of faces contained in S.
This list can be used for iterating over all faces in S.
Definition at line 109 of file FaceSet.h.
◆ insert()
| void ogdf::FaceSetSimple::insert |
( |
face |
f | ) |
|
|
inline |
Inserts face f into set S.
This operation has constant runtime.
- Precondition
f is a face in the associated combinatorial embedding.
Definition at line 70 of file FaceSet.h.
◆ isMember()
| bool ogdf::FaceSetSimple::isMember |
( |
face |
f | ) |
const |
|
inline |
Returns true if face f is contained in S, false otherwise.
This operation has constant runtime.
- Precondition
f is a face in the associated combinatorial embedding.
Definition at line 100 of file FaceSet.h.
◆ m_faces
The list of faces contained in S.
Definition at line 118 of file FaceSet.h.
◆ m_isContained
| FaceArray<bool> ogdf::FaceSetSimple::m_isContained |
|
private |
m_isContained[f] is true iff f is contained in S.
Definition at line 115 of file FaceSet.h.
The documentation for this class was generated from the following file: