ComplexityFinder Class Reference

#include <include/visitor.h>

Inheritance diagram for ComplexityFinder:

ExpVisitor List of all members.

Detailed Description

Definition at line 523 of file visitor.h.

Public Member Functions

 ComplexityFinder (UserProc *p)
int getDepth ()
virtual bool visit (Location *e, bool &override)
virtual bool visit (Ternary *e, bool &override)
virtual bool visit (Binary *e, bool &override)
virtual bool visit (Unary *e, bool &override)

Private Attributes

int count
UserProcproc


Constructor & Destructor Documentation

ComplexityFinder::ComplexityFinder UserProc p  )  [inline]
 

Definition at line 527 of file visitor.h.


Member Function Documentation

int ComplexityFinder::getDepth  )  [inline]
 

Definition at line 528 of file visitor.h.

References count.

Referenced by Exp::getComplexityDepth().

bool ComplexityFinder::visit Location e,
bool &  override
[virtual]
 

Reimplemented from ExpVisitor.

Definition at line 685 of file visitor.cpp.

References UserProc::findFirstSymbol(), NULL, and proc.

bool ComplexityFinder::visit Ternary e,
bool &  override
[virtual]
 

Reimplemented from ExpVisitor.

Definition at line 698 of file visitor.cpp.

References count.

bool ComplexityFinder::visit Binary e,
bool &  override
[virtual]
 

Reimplemented from ExpVisitor.

Definition at line 697 of file visitor.cpp.

References count.

bool ComplexityFinder::visit Unary e,
bool &  override
[virtual]
 

Reimplemented from ExpVisitor.

Definition at line 696 of file visitor.cpp.

References count.


Member Data Documentation

int ComplexityFinder::count [private]
 

Definition at line 524 of file visitor.h.

Referenced by getDepth(), and visit().

UserProc* ComplexityFinder::proc [private]
 

Definition at line 525 of file visitor.h.

Referenced by visit().


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:41 2006 for Boomerang by  doxygen 1.4.6