nvwa::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 nvwa::output_object< _OutputStrm, _StringType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 output_object (_OutputStrm &outs, const _StringType &sep)
template<typename _Pointer >
void operator() (const _Pointer &ptr) const

Detailed Description

template<typename _OutputStrm, typename _StringType = const char*>
struct nvwa::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*>
nvwa::output_object< _OutputStrm, _StringType >::output_object ( _OutputStrm &  outs,
const _StringType &  sep 
) [inline]

Member Function Documentation

template<typename _OutputStrm , typename _StringType = const char*>
template<typename _Pointer >
void nvwa::output_object< _OutputStrm, _StringType >::operator() ( const _Pointer &  ptr  )  const [inline]

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated by  doxygen 1.6.2