ManaPlus
Public Member Functions | Private Member Functions | Private Attributes
Catch::MethodTestCase< C > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::MethodTestCase< C >:
Catch::SharedImpl< ITestCase > Catch::ITestCase Catch::IShared Catch::NonCopyable

Public Member Functions

 MethodTestCase (void(C::*method)())
 
virtual void invoke () const
 
- Public Member Functions inherited from Catch::SharedImpl< ITestCase >
 SharedImpl ()
 
virtual void addRef () const
 
virtual void release () const
 
- Public Member Functions inherited from Catch::IShared
virtual ~IShared ()
 

Private Member Functions

virtual ~MethodTestCase ()
 

Private Attributes

void(C::* m_method )()
 

Additional Inherited Members

- Data Fields inherited from Catch::SharedImpl< ITestCase >
unsigned int m_rc
 
- Protected Member Functions inherited from Catch::ITestCase
virtual ~ITestCase ()
 
- Protected Member Functions inherited from Catch::NonCopyable
 NonCopyable ()
 
virtual ~NonCopyable ()
 

Detailed Description

template<typename C>
class Catch::MethodTestCase< C >

Definition at line 641 of file catch.hpp.

Constructor & Destructor Documentation

◆ MethodTestCase()

template<typename C >
Catch::MethodTestCase< C >::MethodTestCase ( void(C::*)()  method)
inline

Definition at line 644 of file catch.hpp.

644 : m_method( method ) {}
void(C::* m_method)()
Definition: catch.hpp:654

◆ ~MethodTestCase()

template<typename C >
virtual Catch::MethodTestCase< C >::~MethodTestCase ( )
inlineprivatevirtual

Definition at line 652 of file catch.hpp.

652 {}

Member Function Documentation

◆ invoke()

template<typename C >
virtual void Catch::MethodTestCase< C >::invoke ( ) const
inlinevirtual

Implements Catch::ITestCase.

Definition at line 646 of file catch.hpp.

646  {
647  C obj;
648  (obj.*m_method)();
649  }

Field Documentation

◆ m_method

template<typename C >
void(C::* Catch::MethodTestCase< C >::m_method) ()
private

Definition at line 654 of file catch.hpp.


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