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 void * | operator new (size_t s) |
Memory management. More... | |
static void | operator delete (void *p) |
Free memory allocated from heap. More... | |
Object for storing action values.
Definition at line 51 of file action.hpp.
|
inline |
Allocate action values.
Definition at line 268 of file action.hpp.
|
inline |
Delete object.
Definition at line 295 of file action.hpp.
|
inline |
Update action value at position i.
Definition at line 283 of file action.hpp.
Support::Mutex Gecode::Action::Storage::m |
Mutex to synchronize globally shared access.
Definition at line 54 of file action.hpp.
unsigned int Gecode::Action::Storage::use_cnt |
How many references exist for this object.
Definition at line 56 of file action.hpp.
int Gecode::Action::Storage::n |
Number of action values.
Definition at line 58 of file action.hpp.
double* Gecode::Action::Storage::a |
Action values.
Definition at line 60 of file action.hpp.
double Gecode::Action::Storage::invd |
Inverse decay factor.
Definition at line 62 of file action.hpp.