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. | |
| ~Storage (void) | |
| Delete object. | |
| void | update (int i) |
| Update action value at position i. | |
Public Attributes | |
| Support::Mutex | m |
| Mutex to synchronize globally shared access. | |
| unsigned int | use_cnt |
| How many references exist for this object. | |
| int | n |
| Number of action values. | |
| double * | a |
| Action values. | |
| double | invd |
| Inverse decay factor. | |
Detailed Description
Object for storing action values.
Definition at line 51 of file action.hpp.
Constructor & Destructor Documentation
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.
| Gecode::Action::Storage::~Storage | ( | void | ) | [inline] |
Delete object.
Definition at line 295 of file action.hpp.
Member Function Documentation
| 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
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.
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.
Inverse decay factor.
Definition at line 62 of file action.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/action.hpp (Revision: 15565)
