Visitor


Classes

class  Loki::BaseVisitor
class  Visitor
class  Loki::CyclicVisitor< R, TList >

Defines

#define LOKI_DEFINE_VISITABLE()
#define LOKI_DEFINE_CONST_VISITABLE()
#define LOKI_DEFINE_CYCLIC_VISITABLE(SomeVisitor)

Define Documentation

 
#define LOKI_DEFINE_CONST_VISITABLE (  ) 

Value:

virtual ReturnType Accept(::Loki::BaseVisitor& guest) const \
    { return AcceptImpl(*this, guest); }
Put it in every class that you want to make visitable by const member functions (in addition to deriving it from BaseVisitable<R>)

Definition at line 313 of file Visitor.h.

#define LOKI_DEFINE_CYCLIC_VISITABLE ( SomeVisitor   ) 

Value:

virtual SomeVisitor::ReturnType Accept(SomeVisitor& guest) \
    { return guest.GenericVisit(*this); }
Put it in every class that you want to make visitable by a cyclic visitor

Definition at line 346 of file Visitor.h.

 
#define LOKI_DEFINE_VISITABLE (  ) 

Value:

virtual ReturnType Accept(::Loki::BaseVisitor& guest) \
    { return AcceptImpl(*this, guest); }
Put it in every class that you want to make visitable (in addition to deriving it from BaseVisitable<R>)

Definition at line 302 of file Visitor.h.


Generated on Sun Feb 25 16:52:30 2007 for Loki by  doxygen 1.5.1-p1