stk::diag::c_ptr_func_< T, R > Class Template Reference
[Diag_writer_detail]

Class c_ptr_func_ simply stores a pointer to an object of type T. More...

#include <Writer.hpp>

List of all members.

Public Member Functions

 c_ptr_func_ (const T *t, R(T::*pmf)() const)
 Creates a new c_ptr_func_ instance.

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 667 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:
t a T pointer to object
pmf a T::* member function pointer to call

Definition at line 678 of file Writer.hpp.


The documentation for this class was generated from the following file:
Generated on Wed Apr 13 10:05:50 2011 for Sierra Toolkit by  doxygen 1.6.3