150 os <<
"ANodeSortedIterator: " << endl;
164 return x->
name().compare(y->
name());
183 return (x->
id() - y->
id());
197 double difference = vy - vx;
199 if (difference < 0)
return -1;
200 else if (difference > 0)
return 1;
225 os <<
"ANodeSortedChildIterator: " << endl;
static const std::string & ANodeTyToName(ANodeTy tp)
static int cmpByMetric_fn(const void *x, const void *y)
static int cmpById(const void *x, const void *y)
static ANodeTy IntToANodeTy(long i)
double metric(size_t mId) const
int(* cmp_fptr_t)(const void *x, const void *y)
WordSetSortedIterator * ptrSetIt
const ANodeFilter ANodeTyFilter[ANode::TyNUMBER]
static int compare(const ACodeNode *x, const ACodeNode *y)
ANodeSortedChildIterator(const ANode *root, ANodeSortedIterator::cmp_fptr_t compare_fn, const ANodeFilter *filterFunc=NULL)
virtual const std::string & name() const
bool hasMetric(size_t mId) const
static int cmpByLine(const void *x, const void *y)
static int cmpByMetric_mId
void Add(unsigned long entry)
ANodeSortedIterator(const ANode *node, cmp_fptr_t compare_fn, const ANodeFilter *filterFunc=NULL, bool leavesOnly=true)
static int cmpByName(const void *x, const void *y)
void dumpAndReset(std::ostream &os=std::cerr)
virtual std::string toString(uint oFlags=0, const char *pre="") const
void dumpAndReset(std::ostream &os=std::cerr)
bool HasANodeTy(const ANode &node, long type)