#include <CeylanVisitable.h>
Public Member Functions | |
Visitable () | |
Default empty constructor. | |
virtual | ~Visitable () throw () |
Virtual destructor. | |
virtual void | accept (Visitor &visitor)=0 |
Allows given visitor to visit this object, thanks to a callback: 'visitor.visit( *this ) ;'. | |
Private Member Functions | |
Visitable (const Visitable &source) | |
Copy constructor made private to ensure that it will never be called. | |
Visitable & | operator= (const Visitable &source) |
Assignment operator made private to ensure that it will never be called. |
Each child class can be visited by any Visitor.
Definition at line 72 of file CeylanVisitable.h.
Visitable::Visitable | ( | ) |
Visitable::~Visitable | ( | ) | throw () [virtual] |
Ceylan::Visitable::Visitable | ( | const Visitable & | source | ) | [private] |
Copy constructor made private to ensure that it will never be called.
The compiler should complain whenever this undefined constructor is called, implicitly or not.
virtual void Ceylan::Visitable::accept | ( | Visitor & | visitor | ) | [pure virtual] |
Allows given visitor to visit this object, thanks to a callback: 'visitor.visit( *this ) ;'.
VisitException | if the visit failed. |
Implemented in Ceylan::Tree< Content >, Ceylan::XML::XMLMarkup, and Ceylan::XML::XMLText.
Assignment operator made private to ensure that it will never be called.
The compiler should complain whenever this undefined operator is called, implicitly or not.