71 OGDF_ASSERT(f->embeddingOf() == m_isContained.embeddingOf());
72 bool &isContained = m_isContained[f];
73 if (isContained ==
false) {
87 for(
face f : m_faces) {
88 m_isContained[f] =
false;
101 OGDF_ASSERT(f->embeddingOf() == m_isContained.embeddingOf());
102 return m_isContained[f];
153 OGDF_ASSERT(f->embeddingOf() == m_it.embeddingOf());
156 itF = m_faces.pushBack(f);
166 OGDF_ASSERT(f->embeddingOf() == m_it.embeddingOf());
182 for(
face f : m_faces) {
196 OGDF_ASSERT(f->embeddingOf() == m_it.embeddingOf());
197 return m_it[f].valid();
249 OGDF_ASSERT(f->embeddingOf() == m_it.embeddingOf());
252 itF = m_faces.pushBack(f);
262 OGDF_ASSERT(f->embeddingOf() == m_it.embeddingOf());
278 for(
face f : m_faces) {
292 OGDF_ASSERT(f->embeddingOf() == m_it.embeddingOf());
293 return m_it[f].valid();
301 return m_faces.size();
Declaration of singly linked lists and iterators.
List< face > m_faces
The list of faces contained in S.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void clear()
Removes all faces from S.
void clear()
Removes all faces from S.
ListPure< face > m_faces
The list of faces contained in S.
void insert(face f)
Inserts face f into set S.
FaceArray< ListIterator< face > > m_it
m_it[f] contains the list iterator pointing to f if f is contained in S, an invalid list iterator oth...
declaration and implementation of FaceArray class
const List< face > & faces() const
Returns a reference to the list of faces contained in S.
void clear()
Removes all faces from S.
bool isMember(face f) const
Returns true if face f is contained in S, false otherwise.
void insert(face f)
Inserts face f into S.
SListPure< face > m_faces
The list of faces contained in S.
bool isMember(face f) const
Returns true if face f is contained in S, false otherwise.
void insert(face f)
Inserts face f into S.
Doubly linked lists (maintaining the length of the list).
Faces in a combinatorial embedding.
const SListPure< face > & faces() const
Returns a reference to the list of faces contained in S.
Encapsulates a pointer to a list element.
bool isMember(face f) const
Returns true if face f is contained in S, false otherwise.
const ListPure< face > & faces() const
Returns a reference to the list of faces contained in S.
FaceSetSimple(const CombinatorialEmbedding &E)
Creates an empty face set associated with combinatorial embedding E.
FaceArray< ListIterator< face > > m_it
m_it[f] contains the list iterator pointing to f if f is contained in S, an invalid list iterator oth...
FaceSetPure(const CombinatorialEmbedding &E)
Creates an empty node set associated with combinatorial embedding E.
int size() const
Returns the size of S.
FaceArray< bool > m_isContained
m_isContained[f] is true iff f is contained in S.
The namespace for all OGDF objects.
FaceSet(const CombinatorialEmbedding &E)
Creates an empty node set associated with combinatorial embedding E.
Combinatorial embeddings of planar graphs with modification functionality.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.