Sierra Toolkit Version of the Day
stk::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>

List of all members.

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::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 681 of file Writer.hpp.


Constructor & Destructor Documentation

template<class T, typename R>
stk::diag::c_ptr_func_< T, R >::c_ptr_func_ ( const T *  t,
R(T::*)() const  pmf 
) [inline, explicit]

Creates a new c_ptr_func_ instance.

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

Definition at line 692 of file Writer.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends