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