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

Classes

struct  InStreamFunctions_AccessorHelper
 
struct  IsEnumType
 
struct  IsNotEnumType
 

Functions

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

Function Documentation

◆ bdexStreamIn() [1/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bool &  variable,
int  version = 0 
)
inline

Assign to the specified variable the bool value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [2/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::string variable,
int  version = 0 
)
inline

Assign to the specified variable the bsl::string value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [3/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< bsls::Types::Int64, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<bsls::Types::Int64, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [4/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< bsls::Types::Uint64, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<bsls::Types::Uint64, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [5/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< char, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<char, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [6/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< double, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<double, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [7/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< float, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<float, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [8/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< int, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<int, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [9/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< short, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<short, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [10/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< signed char, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<signed char, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [11/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< unsigned char, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<unsigned char, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [12/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< unsigned int, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<unsigned int, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [13/30]

template<class STREAM , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< unsigned short, ALLOC > &  variable,
int  version 
)
inline

Assign to the specified variable the bsl::vector<unsigned short, ALLOC> value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [14/30]

template<class STREAM , class VALUE_TYPE , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< VALUE_TYPE, ALLOC > &  variable 
)
inline

Assign to the specified variable the bsl::vector<VALUE_TYPE, ALLOC> value read from the specified input stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. First read the version information from the stream and if this version is not supported by VALUE_TYPE and the vector is not empty, stream is invalidated, but otherwise unmodified. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [15/30]

template<class STREAM , class VALUE_TYPE , class ALLOC >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsl::vector< VALUE_TYPE, ALLOC > &  variable,
int  version 
)

Assign to the specified variable the bsl::vector<VALUE_TYPE, ALLOC> value read from the specified input stream using the specified version format, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported by VALUE_TYPE and the vector is not empty, stream is invalidated, but otherwise unmodified. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [16/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsls::Types::Int64 variable,
int  version = 0 
)
inline

Assign to the specified variable the bsls::Types::Int64 value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [17/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
bsls::Types::Uint64 variable,
int  version = 0 
)
inline

Assign to the specified variable the bsls::Types::Uint64 value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [18/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
char &  variable,
int  version = 0 
)
inline

Assign to the specified variable the char value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [19/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
double &  variable,
int  version = 0 
)
inline

Assign to the specified variable the double value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [20/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
float &  variable,
int  version = 0 
)
inline

Assign to the specified variable the float value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [21/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
int &  variable,
int  version = 0 
)
inline

Assign to the specified variable the int value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [22/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
long &  variable,
int  version = 0 
)
inline

Assign to the specified variable the 32-bit int value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [23/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
short &  variable,
int  version = 0 
)
inline

Assign to the specified variable the short value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [24/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
signed char &  variable,
int  version = 0 
)
inline

Assign to the specified variable the signed char value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [25/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
unsigned char &  variable,
int  version = 0 
)
inline

Assign to the specified variable the unsigned char value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [26/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
unsigned int &  variable,
int  version = 0 
)
inline

Assign to the specified variable the unsigned int value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [27/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
unsigned long &  variable,
int  version = 0 
)
inline

Assign to the specified variable the 32-bit unsigned int value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [28/30]

template<class STREAM >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
unsigned short &  variable,
int  version = 0 
)
inline

Assign to the specified variable the unsigned short value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamIn() [29/30]

template<class STREAM , class VALUE_TYPE >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
VALUE_TYPE &  variable 
)
inline

Assign to the specified variable the VALUE_TYPE value read from the specified input stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If needed, first read the version information from the stream and if this version is not supported by VALUE_TYPE, stream is invalidated, but otherwise unmodified. If stream becomes invalid during this operation, variable has an undefined, but valid, state. Note that the version is only needed when the (template parameter) VALUE_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.

◆ bdexStreamIn() [30/30]

template<class STREAM , class VALUE_TYPE >
STREAM & bslx::InStreamFunctions::bdexStreamIn ( STREAM &  stream,
VALUE_TYPE &  variable,
int  version 
)
inline

Assign to the specified variable the VALUE_TYPE value read from the specified input stream using the specified version format, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported by VALUE_TYPE, variable is unaltered and stream is invalidated, but otherwise unmodified. If version is supported but stream becomes invalid during this operation, variable has an undefined, but valid, state. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ bdexStreamInImp() [1/2]

template<class STREAM , class VALUE_TYPE >
STREAM & bslx::InStreamFunctions::bdexStreamInImp ( STREAM &  stream,
VALUE_TYPE &  variable,
int  version,
const IsEnumType  
)
inline

Assign to the specified variable the VALUE_TYPE value read from the specified input stream, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. If version is not supported by VALUE_TYPE, variable is unaltered and stream is invalidated, but otherwise unmodified. If version is supported but stream becomes invalid during this operation, variable has an undefined, but valid, state. Note that this function is called only for enumeration types and 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.

◆ bdexStreamInImp() [2/2]

template<class STREAM , class VALUE_TYPE >
STREAM & bslx::InStreamFunctions::bdexStreamInImp ( STREAM &  stream,
VALUE_TYPE &  variable,
int  version,
const IsNotEnumType  
)
inline

Assign to the specified variable the VALUE_TYPE value read from the specified input stream using the specified version format, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported by VALUE_TYPE, variable is unaltered and stream is invalidated, but otherwise unmodified. If version is supported but stream becomes invalid during this operation, variable has an undefined, but valid, state. 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.