QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
qx::memory::output_object< _OutputStrm, _StringType > Struct Template Reference

#include <cont_ptr_utils.h>

Public Member Functions

 output_object (_OutputStrm &__outs, const _StringType &__sep)
 
template<typename _Tp >
void operator() (const _Tp *__ptr) const
 

Private Attributes

_OutputStrm & _M_outs
 
_StringType _M_sep
 

Detailed Description

template<typename _OutputStrm, typename _StringType = const char*>
struct qx::memory::output_object< _OutputStrm, _StringType >

Functor to output objects pointed by a container of pointers.

A typical usage might be like:

list<Object*> l;
...
for_each(l.begin(), l.end(), output_object<ostream>(cout, " "));

Definition at line 128 of file cont_ptr_utils.h.

Constructor & Destructor Documentation

◆ output_object()

template<typename _OutputStrm , typename _StringType = const char*>
qx::memory::output_object< _OutputStrm, _StringType >::output_object ( _OutputStrm & __outs,
const _StringType & __sep )
inline

Definition at line 130 of file cont_ptr_utils.h.

Member Function Documentation

◆ operator()()

template<typename _OutputStrm , typename _StringType = const char*>
template<typename _Tp >
void qx::memory::output_object< _OutputStrm, _StringType >::operator() ( const _Tp * __ptr) const
inline

Definition at line 135 of file cont_ptr_utils.h.

Member Data Documentation

◆ _M_outs

template<typename _OutputStrm , typename _StringType = const char*>
_OutputStrm& qx::memory::output_object< _OutputStrm, _StringType >::_M_outs
private

Definition at line 141 of file cont_ptr_utils.h.

◆ _M_sep

template<typename _OutputStrm , typename _StringType = const char*>
_StringType qx::memory::output_object< _OutputStrm, _StringType >::_M_sep
private

Definition at line 142 of file cont_ptr_utils.h.


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