graph 6.0.0
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

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

Protected Member Functions

Constructors
 ConstTreeVisitor ()
 The programmer should not call the constructor of an abstract base class.
 
 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

◆ ~ConstTreeVisitor()

virtual ConstTreeVisitor::~ConstTreeVisitor ( )
virtual

◆ ConstTreeVisitor()

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

◆ visitAttributedObject() [1/2]

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 visitAttributedObject().

◆ visitAttributedObject() [2/2]

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

Referenced by visitAttributedObject(), and visitTree().

◆ visitTree() [1/2]

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

Reimplemented in TreeWriter.

References visitAttributedObject().

Referenced by visitTree().

◆ visitTree() [2/2]

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 visitTree().


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