Leviathan  0.8.0.0
Leviathan game engine
Leviathan::Visitor Class Reference

Base for all different visitors. More...

#include <Visitor.h>

+ Inheritance diagram for Leviathan::Visitor:

Public Member Functions

DLLEXPORT Visitor ()
 
virtual DLLEXPORT ~Visitor ()
 Default virtual destructor. More...
 
virtual DLLEXPORT void Visit (Visitable *object)
 

Detailed Description

Base for all different visitors.

Definition at line 17 of file Visitor.h.

Constructor & Destructor Documentation

◆ Visitor()

DLLEXPORT Visitor::Visitor ( )

Definition at line 8 of file Visitor.cpp.

8  {
9 
10 }

◆ ~Visitor()

DLLEXPORT Visitor::~Visitor ( )
virtual

Default virtual destructor.

Definition at line 12 of file Visitor.cpp.

12  {
13 
14 }

Member Function Documentation

◆ Visit()

DLLEXPORT void Visitor::Visit ( Visitable object)
virtual

Reimplemented in Leviathan::EmptyVisitor.

Definition at line 16 of file Visitor.cpp.

16  {
17 
18  throw InvalidType("Base Visitor type is getting called by visitable");
19 }

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