OpenWalnut  1.4.0
Public Member Functions
WPrototyped Class Reference

Interface class for the concept "Prototype". More...

#include <WPrototyped.h>

+ Inheritance diagram for WPrototyped:

List of all members.

Public Member Functions

 WPrototyped ()
 Default constructor.
virtual ~WPrototyped ()
 Destructor.
virtual const std::string getName () const =0
 Gets the name of this prototype.
virtual const std::string getDescription () const =0
 Gets the description for this prototype.
template<typename T >
bool isA ()
 Checks whether the actual prototype has the specified runtime type.

Detailed Description

Interface class for the concept "Prototype".

The requirements are a zero-parameter constructor.

Definition at line 37 of file WPrototyped.h.


Constructor & Destructor Documentation

Default constructor.

Creates a instance of the class. This not necessarily mean that the instance is fully usable. This is required for type checking and inheritance checking.

Definition at line 29 of file WPrototyped.cpp.

Destructor.

Definition at line 34 of file WPrototyped.cpp.


Member Function Documentation

virtual const std::string WPrototyped::getDescription ( ) const [pure virtual]
virtual const std::string WPrototyped::getName ( ) const [pure virtual]
template<typename T >
bool WPrototyped::isA ( )

Checks whether the actual prototype has the specified runtime type.

Returns:
true if you can safely cast this instance to the specified type.

Definition at line 77 of file WPrototyped.h.

Referenced by WPrototypedTest::testType().


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