IMP::domino::CombState Class Reference
Detailed Description
Holds a combination of states for each particle in the restraint graph.
Holds an index for fast merge and split operations ans well as for is_subset queries
|
Public Member Functions |
void | add_data_item (Particle *p, unsigned int val) |
void | combine (CombState *other) |
| Combine the combination encoded in other.
|
| CombState (const CombState &other) |
| Copy constructor.
|
| CombState () |
| Constructor.
|
const CombData * | get_data () const |
CombState * | get_partial (const Particles &ps) const |
unsigned int | get_state_num (Particle *p) const |
Float | get_total_score () const |
bool | has_particle (Particle *p) |
bool | is_part (const CombState &other) const |
| Checks if the other state is part of this state.
|
const std::string | key () const |
const std::string | partial_key (const Particles *ps) const |
void | set_total_score (float val) |
void | show (std::ostream &out=std::cout) const |
void | update_total_score (float old_val, float new_val) |
Protected Attributes |
CombData | data_ |
Float | total_score_ |
Member Function Documentation
void IMP::domino::CombState::combine |
( |
CombState * |
other |
) |
|
Combine the combination encoded in other.
- Parameters:
-
[in] | other | the other combination |
bool IMP::domino::CombState::is_part |
( |
const CombState & |
other |
) |
const |
Checks if the other state is part of this state.
- Parameters:
-
[in] | other | the other state |
void IMP::domino::CombState::set_total_score |
( |
float |
val |
) |
|
- Parameters:
-
[in] | val | the total score is updated to be val |
void IMP::domino::CombState::update_total_score |
( |
float |
old_val, |
|
|
float |
new_val | |
|
) |
| | |
- Parameters:
-
[in] | old_val | the value to substracte |
[in] | new_val | the value to add |
- Note:
- the total score is updated to be current - old_val + new_val
The documentation for this class was generated from the following files: