ARB
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PS_Candidate Class Reference

#include <ps_candidate.hxx>

Inheritance diagram for PS_Candidate:
Inheritance graph
[legend]
Collaboration diagram for PS_Candidate:
Collaboration graph
[legend]

Public Member Functions

unsigned long initFalseIDs (const SpeciesID _min_id, const SpeciesID _max_id, SpeciesID &_min_sets_id, SpeciesID &_max_sets_id)
 
unsigned long matchPathOnOneFalseIDs (IDSet &_path)
 
void decreasePasses ()
 
void getParentMap ()
 
bool hasChild (PS_NodePtr _ps_node) const
 
bool alreadyUsedNode (const PS_NodePtr &_ps_node) const
 
int addChild (unsigned long _distance, unsigned long _gain, const PS_NodePtr &_node, IDSet &_path)
 
bool updateBestChild (const unsigned long _gain, const unsigned long _one_false_IDs_matches, const float _filling_level, const PS_NodePtr &_node, IDSet &_path)
 
void reduceChildren (const float _filling_level)
 
void printProbes (const SpeciesID _species_count, const unsigned long _depth=0, const bool _descend=true) const
 
void print (const unsigned long _depth=0, const bool _print_one_false_IDs=false, const bool _descend=true) const
 
void save (PS_FileBuffer *_file, const unsigned long _bits_in_map)
 
void load (PS_FileBuffer *_file, const unsigned long _bits_in_map, const PS_NodePtr &_root_node)
 
 PS_Candidate (float _distance)
 
 ~PS_Candidate ()
 

Public Attributes

float filling_level
 
unsigned long depth
 
float distance
 
unsigned long gain
 
unsigned int passes_left
 
PS_Candidateparent
 
unsigned long false_IDs
 
ID2IDSetone_false_IDs
 
unsigned long one_false_IDs_matches
 
PS_BitMap_Counted * map
 
IDSet path
 
PS_NodePtr node
 
PS_CandidateByGainMap children
 

Static Public Attributes

static const unsigned int MAX_PASSES = 3
 

Detailed Description

Definition at line 56 of file ps_candidate.hxx.

Constructor & Destructor Documentation

PS_Candidate::PS_Candidate ( float  _distance)
inlineexplicit

Definition at line 468 of file ps_candidate.hxx.

References NULp, and SmartPtr< T, C >::setNull().

PS_Candidate::~PS_Candidate ( )
inline

Definition at line 481 of file ps_candidate.hxx.

Member Function Documentation

unsigned long PS_Candidate::initFalseIDs ( const SpeciesID  _min_id,
const SpeciesID  _max_id,
SpeciesID _min_sets_id,
SpeciesID _max_sets_id 
)
inline

Definition at line 90 of file ps_candidate.hxx.

unsigned long PS_Candidate::matchPathOnOneFalseIDs ( IDSet _path)
inline

Definition at line 125 of file ps_candidate.hxx.

void PS_Candidate::decreasePasses ( )
inline

Definition at line 141 of file ps_candidate.hxx.

void PS_Candidate::getParentMap ( )
inline

Definition at line 145 of file ps_candidate.hxx.

References map, and NULp.

bool PS_Candidate::hasChild ( PS_NodePtr  _ps_node) const
inline

Definition at line 151 of file ps_candidate.hxx.

bool PS_Candidate::alreadyUsedNode ( const PS_NodePtr _ps_node) const
inline

Definition at line 161 of file ps_candidate.hxx.

References alreadyUsedNode(), and SmartPtr< T, C >::isNull().

Referenced by alreadyUsedNode(), and PS_find_probe_for_sets().

int PS_Candidate::addChild ( unsigned long  _distance,
unsigned long  _gain,
const PS_NodePtr _node,
IDSet _path 
)
inline

Definition at line 171 of file ps_candidate.hxx.

Referenced by PS_find_probe_for_sets().

bool PS_Candidate::updateBestChild ( const unsigned long  _gain,
const unsigned long  _one_false_IDs_matches,
const float  _filling_level,
const PS_NodePtr _node,
IDSet _path 
)
inline

Definition at line 191 of file ps_candidate.hxx.

void PS_Candidate::reduceChildren ( const float  _filling_level)
inline

Definition at line 223 of file ps_candidate.hxx.

Referenced by PS_find_probes().

void PS_Candidate::printProbes ( const SpeciesID  _species_count,
const unsigned long  _depth = 0,
const bool  _descend = true 
) const
inline
void PS_Candidate::print ( const unsigned long  _depth = 0,
const bool  _print_one_false_IDs = false,
const bool  _descend = true 
) const
inline

Definition at line 334 of file ps_candidate.hxx.

References fflush(), and SmartPtr< T, C >::isNull().

Referenced by main(), and PS_descend().

void PS_Candidate::save ( PS_FileBuffer _file,
const unsigned long  _bits_in_map 
)
inline

Definition at line 382 of file ps_candidate.hxx.

References id, PS_FileBuffer::put_int(), PS_FileBuffer::put_uint(), and PS_FileBuffer::put_ulong().

Referenced by main().

void PS_Candidate::load ( PS_FileBuffer _file,
const unsigned long  _bits_in_map,
const PS_NodePtr _root_node 
)
inline

Member Data Documentation

const unsigned int PS_Candidate::MAX_PASSES = 3
static

Definition at line 75 of file ps_candidate.hxx.

float PS_Candidate::filling_level

Definition at line 76 of file ps_candidate.hxx.

Referenced by PS_descend().

unsigned long PS_Candidate::depth

Definition at line 77 of file ps_candidate.hxx.

Referenced by main(), PS_descend(), and PS_get_node_paths().

float PS_Candidate::distance

Definition at line 78 of file ps_candidate.hxx.

unsigned long PS_Candidate::gain

Definition at line 79 of file ps_candidate.hxx.

unsigned int PS_Candidate::passes_left

Definition at line 80 of file ps_candidate.hxx.

PS_Candidate* PS_Candidate::parent

Definition at line 81 of file ps_candidate.hxx.

Referenced by main(), PS_ascend(), PS_get_node_paths(), and PS_make_map_for_candidate().

unsigned long PS_Candidate::false_IDs

Definition at line 82 of file ps_candidate.hxx.

Referenced by main().

ID2IDSet* PS_Candidate::one_false_IDs

Definition at line 83 of file ps_candidate.hxx.

unsigned long PS_Candidate::one_false_IDs_matches

Definition at line 84 of file ps_candidate.hxx.

PS_BitMap_Counted* PS_Candidate::map

Definition at line 85 of file ps_candidate.hxx.

Referenced by getParentMap(), and PS_make_map_for_candidate().

IDSet PS_Candidate::path

Definition at line 86 of file ps_candidate.hxx.

Referenced by main(), PS_ascend(), PS_descend(), and PS_make_map_for_candidate().

PS_NodePtr PS_Candidate::node

Definition at line 87 of file ps_candidate.hxx.

Referenced by main(), and PS_get_node_paths().

PS_CandidateByGainMap PS_Candidate::children

Definition at line 88 of file ps_candidate.hxx.

Referenced by PS_descend(), PS_find_probes(), and PS_get_leaf_candidates().


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