Generated on for Gecode by doxygen 1.17.0

No-goods recorded from restarts. More...

#include <gecode/kernel/core.hpp>

Public Member Functions

 NoGoods (void)
 Initialize.
 NoGoods (const NoGoods &ng)
 Copy constructor.
NoGoodsoperator= (const NoGoods &ng)
 Assignment operator.
virtual void post (Space &home) const
 Post no-goods.
unsigned long int ng (void) const
 Return number of no-goods posted.
void ng (unsigned long int n)
 Set number of no-goods posted to n
virtual ~NoGoods (void)
 Destructor.

Static Public Attributes

static NoGoods eng
 Empty no-goods.

Protected Attributes

std::atomic< unsigned long int > n
 Number of no-goods.

Detailed Description

No-goods recorded from restarts.

Definition at line 1599 of file core.hpp.

Constructor & Destructor Documentation

◆ NoGoods() [1/2]

Gecode::NoGoods::NoGoods ( void )
inline

Initialize.

Definition at line 3121 of file core.hpp.

◆ NoGoods() [2/2]

Gecode::NoGoods::NoGoods ( const NoGoods & ng)
inline

Copy constructor.

Definition at line 3124 of file core.hpp.

◆ ~NoGoods()

Gecode::NoGoods::~NoGoods ( void )
inlinevirtual

Destructor.

Definition at line 3140 of file core.hpp.

Member Function Documentation

◆ operator=()

NoGoods & Gecode::NoGoods::operator= ( const NoGoods & ng)
inline

Assignment operator.

Definition at line 3127 of file core.hpp.

◆ post()

◆ ng() [1/2]

unsigned long int Gecode::NoGoods::ng ( void ) const
inline

Return number of no-goods posted.

Definition at line 3132 of file core.hpp.

◆ ng() [2/2]

void Gecode::NoGoods::ng ( unsigned long int n)
inline

Set number of no-goods posted to n

Definition at line 3136 of file core.hpp.

Member Data Documentation

◆ n

std::atomic<unsigned long int> Gecode::NoGoods::n
protected

Number of no-goods.

Definition at line 1602 of file core.hpp.

◆ eng

NoGoods Gecode::NoGoods::eng
static

Empty no-goods.

Definition at line 1621 of file core.hpp.


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