Generated on Sat Feb 7 2015 02:01:43 for Gecode by doxygen 1.8.9.1
Gecode::Gist::NodeAllocatorBase< T > Class Template Reference

Node allocator. More...

#include <node.hh>

Public Member Functions

 NodeAllocatorBase (bool bab)
 Constructor. More...
 
 ~NodeAllocatorBase (void)
 Destructor. More...
 
int allocate (int p)
 Allocate new node with parent p. More...
 
int allocate (Space *root)
 Allocate new root node for space root. More...
 
T * operator[] (int i) const
 Return node for index i. More...
 
T * best (int i) const
 Return index of best node before i. More...
 
void setBest (int i, int b)
 Set index of best node before i to b. More...
 
bool bab (void) const
 Return branch-and-bound flag. More...
 
bool showLabels (void) const
 Return branching label flag. More...
 
void showLabels (bool b)
 Set branching label flag. More...
 
bool hasLabel (T *n) const
 Return whether node n has a label. More...
 
void setLabel (T *n, const QString &l)
 Set label of node n to l. More...
 
void clearLabel (T *n)
 Remove label of node n. More...
 
QString getLabel (T *n) const
 Get label of node n. More...
 

Detailed Description

template<class T>
class Gecode::Gist::NodeAllocatorBase< T >

Node allocator.

Definition at line 52 of file node.hh.

Constructor & Destructor Documentation

template<class T >
Gecode::Gist::NodeAllocatorBase< T >::NodeAllocatorBase ( bool  bab)

Constructor.

Definition at line 54 of file node.hpp.

template<class T >
Gecode::Gist::NodeAllocatorBase< T >::~NodeAllocatorBase ( void  )

Destructor.

Definition at line 63 of file node.hpp.

Member Function Documentation

template<class T >
int Gecode::Gist::NodeAllocatorBase< T >::allocate ( int  p)
inline

Allocate new node with parent p.

Definition at line 71 of file node.hpp.

template<class T >
int Gecode::Gist::NodeAllocatorBase< T >::allocate ( Space root)
inline

Allocate new root node for space root.

Definition at line 82 of file node.hpp.

template<class T >
T * Gecode::Gist::NodeAllocatorBase< T >::operator[] ( int  i) const
inline

Return node for index i.

Definition at line 93 of file node.hpp.

template<class T >
T * Gecode::Gist::NodeAllocatorBase< T >::best ( int  i) const
inline

Return index of best node before i.

Definition at line 101 of file node.hpp.

template<class T >
void Gecode::Gist::NodeAllocatorBase< T >::setBest ( int  i,
int  b 
)
inline

Set index of best node before i to b.

Definition at line 110 of file node.hpp.

template<class T >
bool Gecode::Gist::NodeAllocatorBase< T >::bab ( void  ) const
inline

Return branch-and-bound flag.

Definition at line 118 of file node.hpp.

template<class T >
bool Gecode::Gist::NodeAllocatorBase< T >::showLabels ( void  ) const
inline

Return branching label flag.

Definition at line 124 of file node.hpp.

template<class T >
void Gecode::Gist::NodeAllocatorBase< T >::showLabels ( bool  b)

Set branching label flag.

template<class T >
bool Gecode::Gist::NodeAllocatorBase< T >::hasLabel ( T *  n) const

Return whether node n has a label.

Definition at line 130 of file node.hpp.

template<class T >
void Gecode::Gist::NodeAllocatorBase< T >::setLabel ( T *  n,
const QString &  l 
)

Set label of node n to l.

Definition at line 136 of file node.hpp.

template<class T >
void Gecode::Gist::NodeAllocatorBase< T >::clearLabel ( T *  n)

Remove label of node n.

Definition at line 142 of file node.hpp.

template<class T >
QString Gecode::Gist::NodeAllocatorBase< T >::getLabel ( T *  n) const

Get label of node n.

Definition at line 148 of file node.hpp.


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