Quick Links: |
#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 |
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.
bdlb::Variant_PrintVisitor::Variant_PrintVisitor | ( | bsl::ostream * | stream, | |
int | level, | |||
int | spacesPerLevel | |||
) | [inline] |
References BSLS_ASSERT_SAFE.
void bdlb::Variant_PrintVisitor::operator() | ( | const TYPE & | value | ) | const [inline] |
References bdlb::PrintMethods::print().
void bdlb::Variant_PrintVisitor::operator() | ( | bslmf::Nil | ) | const [inline] |
bsl::ostream* bdlb::Variant_PrintVisitor::d_stream_p |
held, not owned