BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslx::OutStreamFunctions Namespace Reference

Classes

struct  IsEnumType
 
struct  IsNotEnumType
 

Functions

template<class STREAM , class TYPE >
STREAM & bdexStreamOutImp (STREAM &stream, const TYPE &value, int version, const IsEnumType &)
 
template<class STREAM , class TYPE >
STREAM & bdexStreamOutImp (STREAM &stream, const TYPE &value, int version, const IsNotEnumType &)
 
template<class STREAM , class TYPE >
STREAM & bdexStreamOut (STREAM &stream, const TYPE &value)
 
template<class STREAM , class TYPE >
STREAM & bdexStreamOut (STREAM &stream, const TYPE &value, int version)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const bool &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const char &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const signed char &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const unsigned char &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const short &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const unsigned short &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const int &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const unsigned int &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const long &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const unsigned long &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const bsls::Types::Int64 &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const bsls::Types::Uint64 &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const float &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const double &value, int version=0)
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const bsl::string &value, int version=0)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< char, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< signed char, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< unsigned char, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< short, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< unsigned short, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< int, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< unsigned int, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< bsls::Types::Int64, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< bsls::Types::Uint64, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< float, ALLOC > &value, int version)
 
template<class STREAM , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< double, ALLOC > &value, int version)
 
template<class STREAM , class TYPE , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< TYPE, ALLOC > &value)
 
template<class STREAM , class TYPE , class ALLOC >
STREAM & bdexStreamOut (STREAM &stream, const bsl::vector< TYPE, ALLOC > &value, int version)
 

Function Documentation

◆ bdexStreamOut() [1/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bool &  value,
int  version = 0 
)
inline

Write the specified bool value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [2/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::string value,
int  version = 0 
)
inline

Write the specified bsl::string value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [3/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< bsls::Types::Int64, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<bsls::Types::Int64, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [4/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< bsls::Types::Uint64, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<bsls::Types::Uint64, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [5/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< char, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<char, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [6/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< double, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<double, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [7/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< float, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<float, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [8/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< int, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<int, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [9/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< short, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<short, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [10/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< signed char, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<signed char, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [11/30]

template<class STREAM , class TYPE , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< TYPE, ALLOC > &  value 
)
inline

Write the specified bsl::vector<TYPE, ALLOC> value to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If needed, first write the computed version information to the stream and if this version is not supported by TYPE and the vector is not empty, stream is invalidated. Note that the version is only needed when the (template parameter) TYPE is a bsl::vector or a user-defined type. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [12/30]

template<class STREAM , class TYPE , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< TYPE, ALLOC > &  value,
int  version 
)

Write the specified bsl::vector<TYPE, ALLOC> value, using the specified version format, to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported by TYPE and the vector is not empty, stream is invalidated, but otherwise unmodified. Note that the specified TYPE might not require a version to be serialized and that version is not written to stream. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [13/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< unsigned char, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<unsigned char, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [14/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< unsigned int, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<unsigned int, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [15/30]

template<class STREAM , class ALLOC >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsl::vector< unsigned short, ALLOC > &  value,
int  version 
)
inline

Write the specified bsl::vector<unsigned short, ALLOC> value to the specified output stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [16/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsls::Types::Int64 value,
int  version = 0 
)
inline

Write the specified bsls::Types::Int64 value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [17/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const bsls::Types::Uint64 value,
int  version = 0 
)
inline

Write the specified bsls::Types::Uint64 value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [18/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const char &  value,
int  version = 0 
)
inline

Write the specified char value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [19/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const double &  value,
int  version = 0 
)
inline

Write the specified double value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [20/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const float &  value,
int  version = 0 
)
inline

Write the specified float value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [21/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const int &  value,
int  version = 0 
)
inline

Write the specified int value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [22/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const long &  value,
int  version = 0 
)
inline

Write the specified long value to the specified output stream as a 32-bit int, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. Note that for platforms where long is not equivalent to int32_t, this operation may be lossy. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [23/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const short &  value,
int  version = 0 
)
inline

Write the specified short value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [24/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const signed char &  value,
int  version = 0 
)
inline

Write the specified signed char value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [25/30]

template<class STREAM , class TYPE >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const TYPE &  value 
)
inline

Write the specified value to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If needed, first write the computed version information to the stream and if this version is not supported by TYPE, stream is invalidated. Note that the version is only needed when the (template parameter) TYPE is a bsl::vector or a user-defined type. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [26/30]

template<class STREAM , class TYPE >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const TYPE &  value,
int  version 
)
inline

Write the specified value, using the specified version format, to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported by TYPE, stream is invalidated, but otherwise unmodified. Note that version is not written to stream. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [27/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const unsigned char &  value,
int  version = 0 
)
inline

Write the specified unsigned char value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [28/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const unsigned int &  value,
int  version = 0 
)
inline

Write the specified unsigned int value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [29/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const unsigned long &  value,
int  version = 0 
)
inline

Write the specified unsigned long value to the specified output stream as a 32-bit unsigned int, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. Note that for platforms where unsigned long is not equivalent to uint32_t, this operation may be lossy. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOut() [30/30]

template<class STREAM >
STREAM & bslx::OutStreamFunctions::bdexStreamOut ( STREAM &  stream,
const unsigned short &  value,
int  version = 0 
)
inline

Write the specified unsigned short value to the specified output stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOutImp() [1/2]

template<class STREAM , class TYPE >
STREAM & bslx::OutStreamFunctions::bdexStreamOutImp ( STREAM &  stream,
const TYPE &  value,
int  version,
const IsEnumType  
)
inline

Write the specified value to the specified output stream as a 32-bit int, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. Note that this function is called only for enumeration types and that if value is outside the range of an int32_t the externalization will be lossy. Also note that this function is for internal use only. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamOutImp() [2/2]

template<class STREAM , class TYPE >
STREAM & bslx::OutStreamFunctions::bdexStreamOutImp ( STREAM &  stream,
const TYPE &  value,
int  version,
const IsNotEnumType  
)
inline

Write the specified value, using the specified version format, to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported by TYPE, stream is invalidated, but otherwise unmodified. Note that version is not written to stream. Also note that this function is for internal use only. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.