Graph: Generic attributed relational graphs


ConstTreeVisitor Class Reference

Abstract base class for visiting constant Trees. More...

#include <graph/tree/tvisitor.h>

Inheritance diagram for ConstTreeVisitor:
Collaboration diagram for ConstTreeVisitor:

Public Member Functions

void visitAttributedObject (carto::AttributedObject *ao)
 Entry point of the visitor – DO NOT OVERRIDE. More...
 
void visitTree (Tree *tr)
 Entry point of the visitor – DO NOT OVERRIDE. More...
 
Constructors, destructor
virtual ~ConstTreeVisitor ()
 
Visitor pattern
virtual void visitAttributedObject (const carto::AttributedObject *ao)
 
virtual void visitTree (const Tree *tr)
 

Protected Member Functions

Constructors
 ConstTreeVisitor ()
 The programmer should not call the constructor of an abstract base class. More...
 
- Protected Member Functions inherited from TreeVisitor
 TreeVisitor ()
 
virtual ~TreeVisitor ()
 

Detailed Description

Abstract base class for visiting constant Trees.

The Vistor pattern can be found in:

  • Erich Gamma, Richard Helm, Ralph Johnson, John M. Vlissides, Design patterns, pp. 331-344. Addison Wesley, 1995.

Definition at line 93 of file tvisitor.h.

Constructor & Destructor Documentation

virtual ConstTreeVisitor::~ConstTreeVisitor ( )
virtual
ConstTreeVisitor::ConstTreeVisitor ( )
inlineprotected

The programmer should not call the constructor of an abstract base class.

Definition at line 153 of file tvisitor.h.

Member Function Documentation

virtual void ConstTreeVisitor::visitAttributedObject ( const carto::AttributedObject ao)
virtual
void ConstTreeVisitor::visitAttributedObject ( carto::AttributedObject ao)
inlinevirtual

Entry point of the visitor – DO NOT OVERRIDE.

This method forwards to visitAttributedObject(const carto::AttributedObject*) (note the const argument). All children of ConstTreeVisitor shall override that const function, not this one.

Reimplemented from TreeVisitor.

Definition at line 117 of file tvisitor.h.

References TreeVisitor::visitAttributedObject().

virtual void ConstTreeVisitor::visitTree ( const Tree tr)
virtual

Reimplemented in TreeWriter.

void ConstTreeVisitor::visitTree ( Tree tr)
inlinevirtual

Entry point of the visitor – DO NOT OVERRIDE.

This method forwards to visitTree(const carto::Tree*) (note the const argument). All children of ConstTreeVisitor shall override that const function, not this one.

Reimplemented from TreeVisitor.

Definition at line 131 of file tvisitor.h.

References TreeVisitor::visitTree().


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