Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

FaceSet.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 #include <ogdf/basic/basic.h>
37 
38 namespace ogdf {
39 
41 
53 template<bool SupportFastSizeQuery = true>
54 class FaceSet : public RegisteredSet<ConstCombinatorialEmbedding, SupportFastSizeQuery> {
56 
57 public:
58  using RS::RS;
59 
61  const typename RS::list_type& faces() const { return RS::elements(); }
62 
66  return *RS::registeredAt();
67  }
68 };
69 
70 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::RegisteredSet< ConstCombinatorialEmbedding, SupportFastSizeQuery >::elements
const list_type & elements() const
Returns a reference to the list of elements contained in this set.
Definition: RegisteredSet.h:144
OGDF_ASSERT
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Definition: basic.h:66
RegisteredSet.h
Declaration and implementation of ogdf::RegisteredSet.
ogdf::FaceSet::embeddingOf
const ConstCombinatorialEmbedding & embeddingOf() const
Returns the associated combinatorial embedding.
Definition: FaceSet.h:64
ogdf::RegisteredSet< ConstCombinatorialEmbedding, SupportFastSizeQuery >::list_type
typename std::conditional< SupportFastSizeQuery, List< element_type >, ListPure< element_type > >::type list_type
Definition: RegisteredSet.h:59
ogdf::RegisteredSet< ConstCombinatorialEmbedding, SupportFastSizeQuery >::registeredAt
const ConstCombinatorialEmbedding * registeredAt() const
Returns the associated registry.
Definition: RegisteredSet.h:147
ogdf::FaceSet::faces
const RS::list_type & faces() const
Returns a reference to the list of faces contained in this set.
Definition: FaceSet.h:61
ogdf::FaceSet
Face sets.
Definition: FaceSet.h:54
ogdf::RegisteredSet
Constant-time set operations.
Definition: RegisteredSet.h:55
ogdf::ConstCombinatorialEmbedding
Combinatorial embeddings of planar graphs.
Definition: CombinatorialEmbedding.h:216
basic.h
Basic declarations, included by all source files.
CombinatorialEmbedding.h
Declaration of CombinatorialEmbedding and face.