ETTreeLogVisitor Class Reference

An ET tree "visitor" class for viewing . More...

List of all members.

Public Member Functions

 ETTreeLogVisitor (ETTreeLog &in_logger)
 Constructor.
void SetCurLevel (simba_size_t in_level)
 Set the tree level for the next node to log.
virtual ~ETTreeLogVisitor ()
 Destructor.

Protected Member Functions

virtual void DefaultVisit (ETNode *in_node)
 Logs the given node.

Detailed Description

An ET tree "visitor" class for viewing .


Constructor & Destructor Documentation

ETTreeLogVisitor ( ETTreeLog in_logger  )  [explicit]

Constructor.

Parameters:
in_logger The logger to log the tree nodes.
virtual ~ETTreeLogVisitor (  )  [virtual]

Destructor.


Member Function Documentation

virtual void DefaultVisit ( ETNode in_node  )  [protected, virtual]

Logs the given node.

A node is logged as an indented string. The tree level set by SetCurLevel() is used to determine how much to indent.

Parameters:
in_node Input ET tree node. Cannot be NULL. (NOT OWN)
void SetCurLevel ( simba_size_t  in_level  ) 

Set the tree level for the next node to log.

The number is used to determine how much space to indent.

Parameters:
in_level The current tree level.

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

Generated on Wed May 17 14:21:18 2017 for SimbaEngine 10.1.3.1011 by simba