Sierra Toolkit  Version of the Day
stk_classic::diag::c_ptr_func_< T, R > Class Template Reference

Class c_ptr_func_ simply stores a pointer to an object of type T. This allows pointers which want to call the specified member function if they are not null to be output using operator<< on a c_ptr_func function. More...

#include <Writer.hpp>

Public Member Functions

 c_ptr_func_ (const T *t, R(T::*pmf)() const)
 

Public Attributes

const T * m_t
 Pointer to object.
 
R(T::* m_pmf )() const
 Function to call for dump.
 

Detailed Description

template<class T, typename R>
class stk_classic::diag::c_ptr_func_< T, R >

Class c_ptr_func_ simply stores a pointer to an object of type T. This allows pointers which want to call the specified member function if they are not null to be output using operator<< on a c_ptr_func function.

Definition at line 686 of file Writer.hpp.

Constructor & Destructor Documentation

◆ c_ptr_func_()

template<class T, typename R>
stk_classic::diag::c_ptr_func_< T, R >::c_ptr_func_ ( const T *  t,
R(T::*)() const  pmf 
)
inlineexplicit

Creates a new c_ptr_func_ instance.

Parameters
ta T pointer to object
pmfa T::* member function pointer to call

Definition at line 698 of file Writer.hpp.


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