class TreeSearch::PatternTree

Function Members (Methods)

public:
virtual~PatternTree()
static TClass*Class()
UInt_tGetNlevels() const
UInt_tGetNplanes() const
const TreeSearch::TreeParam_t&GetParameters() const
TreeSearch::Link*GetRoot()
Double_tGetWidth() const
virtual TClass*IsA() const
Bool_tIsOK() const
TreeSearch::PatternTreePatternTree(const TreeSearch::TreeParam_t& param, UInt_t nPatterns = 0, UInt_t nLinks = 0)
voidPrint(Option_t* opt = "", ostream& os = std::cout)
static TreeSearch::PatternTree*Read(const char* filename, const TreeSearch::TreeParam_t& param)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
Int_tWrite(const char* filename)
private:
const TreeSearch::PatternTree&operator=(const TreeSearch::PatternTree& rhs)
TreeSearch::PatternTreePatternTree(const TreeSearch::PatternTree& orig)

Data Members

private:
vector<UShort_t>fBitsArray of all pattern bits
vector<Link>fLinksArray of all links
TreeSearch::PatternTree::vsiz_tfNbitCurrent bit count
TreeSearch::PatternTree::vlsz_tfNlnkCurrent link count
TreeSearch::PatternTree::vpsz_tfNpatCurrent pattern count
Bool_tfParamOKFlag: Parameters are tested valid
TreeSearch::TreeParam_tfParametersTree parameters (levels, width, depth)
vector<Pattern>fPatternsArray of all patterns

Class Charts

Inheritance Chart:
TreeSearch::PatternTree

Function documentation

PatternTree(const TreeSearch::TreeParam_t& param, UInt_t nPatterns = 0, UInt_t nLinks = 0)
 Constructor.
~PatternTree()
 Destructor
PatternTree* Read(const char* filename, const TreeSearch::TreeParam_t& param)
 Read tree from file
void Print(Option_t* opt = "", ostream& os = std::cout)
 Print information about the tree, depending on option
Int_t Write(const char* filename)
 Write tree to binary file
PatternTree(const TreeSearch::TreeParam_t& param, UInt_t nPatterns = 0, UInt_t nLinks = 0)
 TODO: copy c'tor, assignment (see below)
 TODO: implement Read()
Bool_t IsOK()
{ return fParamOK; }
UInt_t GetNlevels()
{ return fParameters.maxdepth()+1; }
UInt_t GetNplanes()
{ return fParameters.zpos().size(); }
const TreeParam_t& GetParameters()
{ return fParameters; }
Link* GetRoot()
{ return fLinks.empty() ? 0 : &fLinks.front(); }
Double_t GetWidth()
{ return fParameters.width(); }
const PatternTree& operator=(const TreeSearch::PatternTree& rhs)

Last update: Tue Jul 7 19:26:19 2009

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.