OpenWalnut  1.5.0dev
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
WTestTransferableBase Class Reference

Test class used to test data transfer and compatibility checks. More...

#include <WModuleConnector_test.h>

+ Inheritance diagram for WTestTransferableBase:
+ Collaboration diagram for WTestTransferableBase:

Public Member Functions

 WTestTransferableBase ()
 Constructor. More...
 
virtual const std::string getName () const
 Gets the name of this prototype. More...
 
virtual const std::string getDescription () const
 Gets the description for this prototype. More...
 
int get () const
 Gives the magic int. More...
 
void set (int i)
 Sets the new int. More...
 
- Public Member Functions inherited from WTransferable
 WTransferable ()
 Default constructor. More...
 
virtual ~WTransferable ()
 Destructor. More...
 
- Public Member Functions inherited from WPrototyped
 WPrototyped ()
 Default constructor. More...
 
virtual ~WPrototyped ()
 Destructor. More...
 
template<typename T >
bool isA ()
 Checks whether the actual prototype has the specified runtime type. More...
 

Static Public Member Functions

static std::shared_ptr< WPrototypedgetPrototype ()
 Returns a prototype instantiated with the true type of the deriving class. More...
 

Protected Attributes

int m_data
 The data. More...
 

Friends

class WModuleConnectorTest
 Access for test class. More...
 

Detailed Description

Test class used to test data transfer and compatibility checks.

Definition at line 53 of file WModuleConnector_test.h.

Constructor & Destructor Documentation

◆ WTestTransferableBase()

WTestTransferableBase::WTestTransferableBase ( )
inline

Constructor.

Definition at line 61 of file WModuleConnector_test.h.

References m_data.

Referenced by getPrototype().

+ Here is the caller graph for this function:

Member Function Documentation

◆ get()

int WTestTransferableBase::get ( ) const
inline

Gives the magic int.

Returns
the currently set data

Definition at line 102 of file WModuleConnector_test.h.

References m_data.

◆ getDescription()

virtual const std::string WTestTransferableBase::getDescription ( ) const
inlinevirtual

Gets the description for this prototype.

Returns
the description

Implements WPrototyped.

Reimplemented in WTestTransferableDerived.

Definition at line 82 of file WModuleConnector_test.h.

◆ getName()

virtual const std::string WTestTransferableBase::getName ( ) const
inlinevirtual

Gets the name of this prototype.

Returns
the name.

Implements WPrototyped.

Reimplemented in WTestTransferableDerived.

Definition at line 72 of file WModuleConnector_test.h.

◆ getPrototype()

static std::shared_ptr< WPrototyped > WTestTransferableBase::getPrototype ( )
inlinestatic

Returns a prototype instantiated with the true type of the deriving class.

Returns
the prototype.

Definition at line 92 of file WModuleConnector_test.h.

References WTestTransferableBase().

+ Here is the call graph for this function:

◆ set()

void WTestTransferableBase::set ( int  i)
inline

Sets the new int.

Parameters
ithe int used for testing.

Definition at line 112 of file WModuleConnector_test.h.

References m_data.

Friends And Related Function Documentation

◆ WModuleConnectorTest

friend class WModuleConnectorTest
friend

Access for test class.

Definition at line 55 of file WModuleConnector_test.h.

Member Data Documentation

◆ m_data

int WTestTransferableBase::m_data
protected

The data.

Definition at line 121 of file WModuleConnector_test.h.

Referenced by get(), set(), and WTestTransferableBase().


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