reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::InserterPClass< T > Class Template Reference

Allows a (possibly recursive) container of anything with operator<< to be dumped to a stream. More...

#include <Inserter.hxx>

Public Member Functions

 InserterPClass (const T &t)
 

Public Attributes

const T & _t
 

Detailed Description

template<class T>
class resip::InserterPClass< T >

Allows a (possibly recursive) container of anything with operator<< to be dumped to a stream.

This is particularly useful within a Log call. e.g.

void logNameAddrs(vector<resip::NameAddr>& contacts)
{
DebugLog(<< "Contacts: " << Inserter(contacts));
}
#define DebugLog(args_)
Definition Logger.hxx:128
InserterClass< T > Inserter(const T &t)
Templatized function to construct an instance of InserterClass for a container to be inserted.
Definition Inserter.hxx:312
See also
Inserter()

Definition at line 530 of file Inserter.hxx.

Constructor & Destructor Documentation

◆ InserterPClass()

template<class T >
resip::InserterPClass< T >::InserterPClass ( const T &  t)
inline

Definition at line 533 of file Inserter.hxx.

Member Data Documentation

◆ _t

template<class T >
const T& resip::InserterPClass< T >::_t

Definition at line 537 of file Inserter.hxx.


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