BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::PrintAdapter< TYPE > Class Template Reference

#include <bdlb_printadapter.h>

Public Member Functions

 PrintAdapter (const TYPE *object, int level=0, int spacesPerLevel=4)
 
 PrintAdapter (const PrintAdapter &)=default
 
PrintAdapteroperator= (const PrintAdapter &)=default
 
int level () const
 Return the level attribute.
 
const TYPE & object () const
 Return a reference to the object referred to by this print adapter.
 
int spacesPerLevel () const
 Return the spacesPerLevel attribute.
 

Detailed Description

template<class TYPE>
class bdlb::PrintAdapter< TYPE >

This class provides an object that may be streamed with operator<< to give full control of the indentation format of the streaming.

See bdlb_printadapter

Constructor & Destructor Documentation

◆ PrintAdapter() [1/2]

template<class TYPE >
bdlb::PrintAdapter< TYPE >::PrintAdapter ( const TYPE *  object,
int  level = 0,
int  spacesPerLevel = 4 
)
inlineexplicit

◆ PrintAdapter() [2/2]

template<class TYPE >
bdlb::PrintAdapter< TYPE >::PrintAdapter ( const PrintAdapter< TYPE > &  )
default

Member Function Documentation

◆ level()

template<class TYPE >
int bdlb::PrintAdapter< TYPE >::level ( ) const
inline

◆ object()

template<class TYPE >
const TYPE & bdlb::PrintAdapter< TYPE >::object ( ) const
inline

◆ operator=()

template<class TYPE >
PrintAdapter & bdlb::PrintAdapter< TYPE >::operator= ( const PrintAdapter< TYPE > &  )
default

◆ spacesPerLevel()

template<class TYPE >
int bdlb::PrintAdapter< TYPE >::spacesPerLevel ( ) const
inline

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