Quick Links:

bal | bbl | bdl | bsl

Classes | Functions

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

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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.