BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::Variant_BdexStreamInVisitor< STREAM > Struct Template Reference

#include <bdlb_variant.h>

Public Member Functions

 Variant_BdexStreamInVisitor (STREAM &stream, int version)
 
template<class VALUETYPE >
void operator() (VALUETYPE &object) const
 
void operator() (bslmf::Nil) const
 

Public Attributes

STREAM & d_stream
 
int d_version
 

Detailed Description

template<class STREAM>
struct bdlb::Variant_BdexStreamInVisitor< STREAM >

This visitor, when invoked as a non-modifiable function object on an initialized instance of some parameterized TYPE, will stream in a value of the same TYPE into that instance from a stream specified at construction of this visitor, using a version also specified at construction of this visitor.

Constructor & Destructor Documentation

◆ Variant_BdexStreamInVisitor()

template<class STREAM >
bdlb::Variant_BdexStreamInVisitor< STREAM >::Variant_BdexStreamInVisitor ( STREAM &  stream,
int  version 
)
inline

Member Function Documentation

◆ operator()() [1/2]

template<class STREAM >
void bdlb::Variant_BdexStreamInVisitor< STREAM >::operator() ( bslmf::Nil  ) const
inline

◆ operator()() [2/2]

template<class STREAM >
template<class VALUETYPE >
void bdlb::Variant_BdexStreamInVisitor< STREAM >::operator() ( VALUETYPE &  object) const
inline

Member Data Documentation

◆ d_stream

template<class STREAM >
STREAM& bdlb::Variant_BdexStreamInVisitor< STREAM >::d_stream

◆ d_version

template<class STREAM >
int bdlb::Variant_BdexStreamInVisitor< STREAM >::d_version

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