#ifndef HNODE_H
#define HNODE_H
#include "TNamed.h"
#include "TObjArray.h"
#include "TBranch.h"
#include "TObjString.h"
#include "TTree.h"
#include "TBrowser.h"
class HNode : public TNamed {
protected:
TObjArray *fSubNodes;
Int_t fNSubNodes;
public:
HNode(void);
HNode(Text_t *name,Text_t *title);
~HNode(void);
virtual void makeBranch(TBranch *parent);
virtual void activateBranch(TTree *tree);
HNode *getSubNode(Int_t i);
HNode *getFirstSubNode(void);
HNode *getLastSubNode(void);
void addSubNode(HNode *aSon);
Bool_t addSubNodeAt(Int_t idx,HNode *aSon);
virtual void Clear(void);
virtual void Delete(void);
inline Bool_t IsFolder(void) const;
inline virtual void Browse(TBrowser *b);
ClassDef(HNode,1)
};
inline Bool_t HNode::IsFolder(void) const {
return kTRUE;
}
inline void HNode::Browse(TBrowser *b) {
if (!fSubNodes) return;
TIter next(fSubNodes);
HNode *node;
while ( (node=(HNode *)next())!=NULL) b->Add(node,node->GetName());
}
#endif /* !HNODE */
Last change: Sat May 22 13:04:47 2010
Last generated: 2010-05-22 13:04
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.