Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::FaceSetPure Class Reference

maintains a subset S of the faces contained in an associated combinatorial embedding E More...

#include <FaceSet.h>

List of all members.

Public Member Functions

 FaceSetPure (const CombinatorialEmbedding &E)
 creates a new empty face set associated with combinatorial embedding E
 ~FaceSetPure ()
 destructor
void insert (face f)
 inserts face f into set S
void remove (face f)
 removes face f from set S
void clear ()
 removes all faces from set S
bool isMember (face f) const
 returns true iff face f is contained in S
const ListPure< face > & faces () const
 returns the list of faces contained in S

Private Attributes

FaceArray< ListIterator< face > > m_it
 m_it[f] contains list iterator pointing to f if f is contained in S, an invalid list iterator otherwise
ListPure< facem_faces
 list of faces contained in S


Detailed Description

maintains a subset S of the faces contained in an associated combinatorial embedding E

(no efficient access to size of S)

Definition at line 131 of file FaceSet.h.


Constructor & Destructor Documentation

ogdf::FaceSetPure::FaceSetPure ( const CombinatorialEmbedding E  )  [inline]

creates a new empty face set associated with combinatorial embedding E

Definition at line 134 of file FaceSet.h.

ogdf::FaceSetPure::~FaceSetPure (  )  [inline]

destructor

Definition at line 137 of file FaceSet.h.


Member Function Documentation

void ogdf::FaceSetPure::insert ( face  f  )  [inline]

inserts face f into set S

running time: O(1) Precond.: f is a face in the associated combinatorial embedding

Definition at line 143 of file FaceSet.h.

void ogdf::FaceSetPure::remove ( face  f  )  [inline]

removes face f from set S

running time: O(1) Precond.: f is a face in the asociated embedding

Definition at line 154 of file FaceSet.h.

void ogdf::FaceSetPure::clear (  )  [inline]

removes all faces from set S

running time: O(|S|)

Definition at line 167 of file FaceSet.h.

bool ogdf::FaceSetPure::isMember ( face  f  )  const [inline]

returns true iff face f is contained in S

running time: O(1) Precond.: f is a face in the asociated embedding

Definition at line 180 of file FaceSet.h.

const ListPure<face>& ogdf::FaceSetPure::faces (  )  const [inline]

returns the list of faces contained in S

Definition at line 186 of file FaceSet.h.


Member Data Documentation

FaceArray<ListIterator<face> > ogdf::FaceSetPure::m_it [private]

m_it[f] contains list iterator pointing to f if f is contained in S, an invalid list iterator otherwise

Definition at line 192 of file FaceSet.h.

ListPure<face> ogdf::FaceSetPure::m_faces [private]

list of faces contained in S

Definition at line 194 of file FaceSet.h.


The documentation for this class was generated from the following file:

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:07 2007 by doxygen 1.5.4.