BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::Variant_PrintVisitor Struct Reference

#include <bdlb_variant.h>

Public Member Functions

 Variant_PrintVisitor (bsl::ostream *stream, int level, int spacesPerLevel)
 
template<class TYPE >
void operator() (const TYPE &value) const
 
void operator() (bslmf::Nil) const
 

Public Attributes

bsl::ostream * d_stream_p
 
int d_level
 
int d_spacesPerLevel
 

Detailed Description

This visitor, when invoked as a non-modifiable function object on an instance of some template parameter TYPE, writes the value of that instance to a stream specified at construction of this visitor, using spacing information also specified at construction.

Constructor & Destructor Documentation

◆ Variant_PrintVisitor()

bdlb::Variant_PrintVisitor::Variant_PrintVisitor ( bsl::ostream *  stream,
int  level,
int  spacesPerLevel 
)
inline

Member Function Documentation

◆ operator()() [1/2]

void bdlb::Variant_PrintVisitor::operator() ( bslmf::Nil  ) const
inline

◆ operator()() [2/2]

template<class TYPE >
void bdlb::Variant_PrintVisitor::operator() ( const TYPE &  value) const
inline

Member Data Documentation

◆ d_level

int bdlb::Variant_PrintVisitor::d_level

◆ d_spacesPerLevel

int bdlb::Variant_PrintVisitor::d_spacesPerLevel

◆ d_stream_p

bsl::ostream* bdlb::Variant_PrintVisitor::d_stream_p

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