
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) | |
| Initialize action values. | |
| void | update (int i) |
| Update action value at position i. | |
| ~Storage (void) | |
| Delete object. | |
Public Member Functions inherited from Gecode::SharedHandle::Object | |
| Object (void) | |
| Initialize. | |
| virtual | ~Object (void) |
| Delete shared object. | |
Public Attributes | |
| int | n |
| Number of action values. | |
| double | invd |
| Inverse decay factor. | |
| double * | a |
| Action values (more follow) | |
Static Public Attributes | |
| static Support::Mutex | m |
| Mutex to synchronize globally shared access. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::HeapAllocated | |
| static void * | operator new (size_t s) |
| Memory management. | |
| static void | operator delete (void *p) |
| Free memory allocated from heap. | |
Object for storing action values.
Definition at line 47 of file action.hpp.
|
inline |
Initialize action values.
Definition at line 257 of file action.hpp.
| Gecode::Action::Storage::~Storage | ( | void | ) |
Delete object.
Definition at line 40 of file action.cpp.
|
inline |
Update action value at position i.
Definition at line 271 of file action.hpp.
|
static |
Mutex to synchronize globally shared access.
Definition at line 50 of file action.hpp.
| int Gecode::Action::Storage::n |
Number of action values.
Definition at line 52 of file action.hpp.
| double Gecode::Action::Storage::invd |
Inverse decay factor.
Definition at line 54 of file action.hpp.
| double* Gecode::Action::Storage::a |
Action values (more follow)
Definition at line 56 of file action.hpp.