output_object< _OutputStrm, _StringType > Struct Template Reference

Functor to output objects pointed by a container of pointers. More...

#include <cont_ptr_utils.h>

Collaboration diagram for output_object< _OutputStrm, _StringType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

template<typename _OutputStrm, typename _StringType = const char*>
struct 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, " "));


Constructor & Destructor Documentation

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


Member Function Documentation

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


The documentation for this struct was generated from the following file:
Generated on Mon Dec 31 15:07:36 2007 for Nvwa by  doxygen 1.5.1