93 m_it =
H.registerHypernodeArray(
this);
137 m_it =
H->registerHypernodeArray(
this);
170 m_it =
H.registerHyperedgeArray(
this);
218 m_it =
H->registerHyperedgeArray(
this);
Declaration and a partial implementation of a Hypergraph class partly based on the original classes f...
The parameterized class Array implements dynamic arrays of type E.
const_reference operator[](INDEX i) const
Returns a reference to the element at position i.
void resize(INDEX newSize, const E &x)
Resizes (enlarges or shrinks) the array to hold newSize elements and sets new elements to x.
INDEX high() const
Returns the maximal array index.
void init()
Reinitializes the array to an array with empty index set.
Array< E, INDEX > & operator=(const Array< E, INDEX > &A)
Assignment operator.
INDEX low() const
Returns the minimal array index.
Dynamic arrays indexed with nodes.
virtual void enlargeTable(int newTableSize)
Table size enlargement.
bool valid() const
Returns true iff the array is associated with a hypergraph.
void init(const Hypergraph &H, const T &x)
Reinitializes the array. Associates the array with H.
HyperedgeArray()
Constructs an empty hypernode array associated with no graph.
HyperedgeArray(const Hypergraph &H, const T &x)
Constructs a hypernode array associated with H.
HyperedgeArray< T > & operator=(const HyperedgeArray< T > &a)
Assignment operator.
void init(const Hypergraph &H)
Reinitializes the array. Associates the array with H.
virtual void reregister(const Hypergraph *H)
Associates the array with a new hypergraph.
virtual void reinit(int initTableSize)
Table re-initialization.
T m_x
The default value for array elements.
T & operator[](int index)
Returns a reference to the element with index index.
T & operator[](hyperedge e)
Returns a reference to the element with the index of e.
virtual void disconnect()
Disconnetion from the hypergraph.
const T & operator[](int index) const
Returns a reference to the element with index index.
virtual ~HyperedgeArray()
Destructor.
Class for the representation of hyperedges.
int index() const
Returns the index of a hyperedge.
Abstract base class for hypergraph arrays.
HypergraphArrayBase(const Hypergraph *pH)
Initializes an array associated with pH.
virtual void reinit(int initTableSize)=0
Table re-initialization.
const Hypergraph * hypergraphOf() const
Returns a pointer to the associated hypergraph.
HypergraphArrayBase()
Initializes an array not associated with a hypergraph.
virtual void reregister(const Hypergraph *H)=0
Associates the array with a new hypergraph.
const Hypergraph * m_hypergraph
The associated hypergraph.
virtual ~HypergraphArrayBase()
Destructor, unregisters the array.
virtual void enlargeTable(int newTableSize)=0
Table size enlargement.
virtual void disconnect()=0
Disconnetion from the hypergraph.
ListIterator< HypergraphArrayBase * > m_it
Pointer to list element in the list of all registered hypergraph arrays which references this array.
void unregisterHypernodeArray(ListIterator< HypergraphArrayBase * > it) const
Unregisters a hypernode array.
void unregisterHyperedgeArray(ListIterator< HypergraphArrayBase * > it) const
Unregisters an hyperedge array.
Dynamic arrays indexed with hypernodes.
T & operator[](hypernode v)
Returns a reference to the element with index v.
const T & operator[](int index) const
Returns a reference to the element with index index.
virtual void reinit(int initTableSize)
Table re-initialization.
virtual void disconnect()
Disconnetion from the hypergraph.
virtual void enlargeTable(int newTableSize)
Table size enlargement.
HypernodeArray(const Hypergraph &H, const T &x)
Constructs a hypernode array associated with H.
virtual ~HypernodeArray()
HypernodeArray()
Constructs an empty hypernode array associated with no hypergraph.
HypernodeArray< T > & operator=(const HypernodeArray< T > &a)
Assignment operator.
virtual void reregister(const Hypergraph *H)
Associates the array with a new hypergraph.
T m_x
The default value for array elements.
void init(const Hypergraph &H, const T &x)
Reinitializes the array. Associates the array with H.
T & operator[](int index)
Returns a reference to the element with index index.
void init(const Hypergraph &H)
Reinitializes the array. Associates the array with H.
Class for the representation of hypernodes.
int index() const
Returns the (unique) hypernode index.
Encapsulates a pointer to a list element.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.