Generated on Tue Jul 18 2017 18:41:42 for Gecode by doxygen 1.8.13
Gecode::Action::Storage Class Reference

Object for storing action values. More...

#include <action.hpp>

Public Member Functions

template<class View >
 Storage (Home home, ViewArray< View > &x, double d, typename BranchTraits< typename View::VarType >::Merit bm)
 Allocate action values. More...
 
 ~Storage (void)
 Delete object. More...
 
void update (int i)
 Update action value at position i. More...
 

Public Attributes

Support::Mutex m
 Mutex to synchronize globally shared access. More...
 
unsigned int use_cnt
 How many references exist for this object. More...
 
int n
 Number of action values. More...
 
double * a
 Action values. More...
 
double invd
 Inverse decay factor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. More...
 

Detailed Description

Object for storing action values.

Definition at line 51 of file action.hpp.

Constructor & Destructor Documentation

◆ Storage()

template<class View >
Gecode::Action::Storage::Storage ( Home  home,
ViewArray< View > &  x,
double  d,
typename BranchTraits< typename View::VarType >::Merit  bm 
)
inline

Allocate action values.

Definition at line 268 of file action.hpp.

◆ ~Storage()

Gecode::Action::Storage::~Storage ( void  )
inline

Delete object.

Definition at line 295 of file action.hpp.

Member Function Documentation

◆ update()

void Gecode::Action::Storage::update ( int  i)
inline

Update action value at position i.

Definition at line 283 of file action.hpp.

Member Data Documentation

◆ m

Support::Mutex Gecode::Action::Storage::m

Mutex to synchronize globally shared access.

Definition at line 54 of file action.hpp.

◆ use_cnt

unsigned int Gecode::Action::Storage::use_cnt

How many references exist for this object.

Definition at line 56 of file action.hpp.

◆ n

int Gecode::Action::Storage::n

Number of action values.

Definition at line 58 of file action.hpp.

◆ a

double* Gecode::Action::Storage::a

Action values.

Definition at line 60 of file action.hpp.

◆ invd

double Gecode::Action::Storage::invd

Inverse decay factor.

Definition at line 62 of file action.hpp.


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