#include <FaceArray.h>

Public Member Functions | |
| FaceArray () | |
| Constructs an empty face array associated with no combinatorial embedding. | |
| FaceArray (const ConstCombinatorialEmbedding &E) | |
| Constructs a face array associated with E. | |
| FaceArray (const ConstCombinatorialEmbedding &E, const T &x) | |
| Constructs a face array associated with E. | |
| FaceArray (const FaceArray< T > &A) | |
| Constructs an face array that is a copy of A. | |
| bool | valid () const |
| Returns true iff the array is associated with a combinatorial embedding. | |
| const ConstCombinatorialEmbedding * | embeddingOf () const |
| Returns a pointer to the associated combinatorial embedding. | |
| const T & | operator[] (face f) const |
| Returns a reference to the element with index f. | |
| T & | operator[] (face f) |
| Returns a reference to the element with index f. | |
| const T & | operator[] (int index) const |
| Returns a reference to the element with index index. | |
| T & | operator[] (int index) |
| Returns a reference to the element with index index. | |
| FaceArray< T > & | operator= (const FaceArray< T > &a) |
| Assignment operator. | |
| void | init () |
| Reinitializes the array. Associates the array with no combinatorial embedding. | |
| void | init (const ConstCombinatorialEmbedding &E) |
| Reinitializes the array. Associates the array with E. | |
| void | init (const ConstCombinatorialEmbedding &E, const T &x) |
| Reinitializes the array. Associates the array with E. | |
| void | fill (const T &x) |
| Sets all array elements to x. | |
| void * | operator new (size_t nBytes) |
| void * | operator new (size_t, void *p) |
| void | operator delete (void *p, size_t nBytes) |
Private Member Functions | |
| virtual void | enlargeTable (int newTableSize) |
| Virtual function called when table size has to be enlarged. | |
| virtual void | reinit (int initTableSize) |
| Virtual function called when table has to be reinitialized. | |
Private Attributes | |
| T | m_x |
| The default value for array elements. | |
Face arrays adjust their table size automatically when the combinatorial embedding grows.
Definition at line 117 of file FaceArray.h.
| ogdf::FaceArray< T >::FaceArray | ( | ) | [inline] |
Constructs an empty face array associated with no combinatorial embedding.
Definition at line 122 of file FaceArray.h.
| ogdf::FaceArray< T >::FaceArray | ( | const ConstCombinatorialEmbedding & | E | ) | [inline] |
| ogdf::FaceArray< T >::FaceArray | ( | const ConstCombinatorialEmbedding & | E, | |
| const T & | x | |||
| ) | [inline] |
Constructs a face array associated with E.
| E | is the associated combinatorial embedding. | |
| x | is the default value for all array elements. |
Definition at line 131 of file FaceArray.h.
| ogdf::FaceArray< T >::FaceArray | ( | const FaceArray< T > & | A | ) | [inline] |
Constructs an face array that is a copy of A.
Associates the array with the same combinatorial embedding as A and copies all elements.
Definition at line 138 of file FaceArray.h.
| bool ogdf::FaceArray< T >::valid | ( | ) | const [inline] |
Returns true iff the array is associated with a combinatorial embedding.
Definition at line 141 of file FaceArray.h.
| const ConstCombinatorialEmbedding* ogdf::FaceArray< T >::embeddingOf | ( | ) | const [inline] |
Returns a pointer to the associated combinatorial embedding.
Definition at line 144 of file FaceArray.h.
| const T& ogdf::FaceArray< T >::operator[] | ( | face | f | ) | const [inline] |
| T& ogdf::FaceArray< T >::operator[] | ( | face | f | ) | [inline] |
| const T& ogdf::FaceArray< T >::operator[] | ( | int | index | ) | const [inline] |
Returns a reference to the element with index index.
Reimplemented from ogdf::Array< T >.
Definition at line 165 of file FaceArray.h.
| T& ogdf::FaceArray< T >::operator[] | ( | int | index | ) | [inline] |
Returns a reference to the element with index index.
Reimplemented from ogdf::Array< T >.
Definition at line 174 of file FaceArray.h.
| FaceArray<T>& ogdf::FaceArray< T >::operator= | ( | const FaceArray< T > & | a | ) | [inline] |
| void ogdf::FaceArray< T >::init | ( | ) | [inline] |
Reinitializes the array. Associates the array with no combinatorial embedding.
Reimplemented from ogdf::Array< T >.
Definition at line 187 of file FaceArray.h.
| void ogdf::FaceArray< T >::init | ( | const ConstCombinatorialEmbedding & | E | ) | [inline] |
| void ogdf::FaceArray< T >::init | ( | const ConstCombinatorialEmbedding & | E, | |
| const T & | x | |||
| ) | [inline] |
Reinitializes the array. Associates the array with E.
| E | is the associated combinatorial embedding. | |
| x | is the default value. |
Definition at line 201 of file FaceArray.h.
| void ogdf::FaceArray< T >::fill | ( | const T & | x | ) | [inline] |
Sets all array elements to x.
Reimplemented from ogdf::Array< T >.
Definition at line 206 of file FaceArray.h.
| virtual void ogdf::FaceArray< T >::enlargeTable | ( | int | newTableSize | ) | [inline, private, virtual] |
Virtual function called when table size has to be enlarged.
Implements ogdf::FaceArrayBase.
Definition at line 213 of file FaceArray.h.
| virtual void ogdf::FaceArray< T >::reinit | ( | int | initTableSize | ) | [inline, private, virtual] |
Virtual function called when table has to be reinitialized.
Implements ogdf::FaceArrayBase.
Definition at line 217 of file FaceArray.h.
| void* ogdf::FaceArray< T >::operator new | ( | size_t | nBytes | ) | [inline] |
| void* ogdf::FaceArray< T >::operator new | ( | size_t | , | |
| void * | p | |||
| ) | [inline] |
| void ogdf::FaceArray< T >::operator delete | ( | void * | p, | |
| size_t | nBytes | |||
| ) | [inline] |
T ogdf::FaceArray< T >::m_x [private] |