52 template<
bool SupportFastSizeQuery = true>
111 return m_it[f].valid();
121 return *
m_it.embeddingOf();
133 template<
bool OtherSupportsFastSizeQuery>
139 template<
bool OtherSupportsFastSizeQuery>
Declaration of singly linked lists and iterators.
int size() const
Returns the number of faces in this set.
FaceSet(const FaceSet< OtherSupportsFastSizeQuery > &other)
Copy constructor.
const ListType & faces() const
Returns a reference to the list of faces contained in this set.
Combinatorial embeddings of planar graphs.
declaration and implementation of FaceArray class
bool isMember(face f) const
Returns true iff face f is contained in this set.
FaceSet(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, or an invalid list iterator ...
void insert(face f)
Inserts face f into this set.
Dynamic arrays indexed with faces of a combinatorial embedding.
typename std::conditional< SupportFastSizeQuery, List< face >, ListPure< face > >::type ListType
const ConstCombinatorialEmbedding & embeddingOf() const
Returns the associated combinatorial embedding.
Faces in a combinatorial embedding.
Encapsulates a pointer to a list element.
FaceSet & operator=(const FaceSet< OtherSupportsFastSizeQuery > &other)
Assignment operator.
void clear()
Removes all faces from this set-.
The namespace for all OGDF objects.
Combinatorial embeddings of planar graphs with modification functionality.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
ListType m_faces
The list of faces contained in this set.