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