Stream insertion operators
Synopses
Declared in <bdld_datum.h>
Write the value of the specified rhs object to the specified output stream in a single‐line format, and return a reference to the modifyable stream. If stream is not valid on entry, this operation has no effect. Note that this human‐readable format is not fully specified, can change without notice, and is logically equivalent to: ` print(stream, 0, ‐1); `
std::ostream&
operator<<(
std::ostream& stream,
DatumBinaryRef const& rhs);
Write the value of the specified rhs object to the specified output stream in a single‐line format, and return a reference to the modifyable stream. If stream is not valid on entry, this operation has no effect. Note that this human‐readable format is not fully specified, can change without notice, and is logically equivalent to: ` print(stream, 0, ‐1); ` Single line output format for the DatumError object is shown below: ` error(n) error(n,'msg') ` (where n is the integer error code value and msg is the error message value in single quotes). Note that the first version will be output if there is no error message string.
std::ostream&
operator<<(
std::ostream& stream,
DatumError const& rhs);
Write the value of the specified rhs object to the specified output stream in a single‐line format, and return a reference to the modifyable stream. If stream is not valid on entry, this operation has no effect. Note that this human‐readable format is not fully specified, can change without notice, and is logically equivalent to: ` print(stream, 0, ‐1); ` Single line output format for the DatumUdt object is shown below: ` user‐defined(<address>,type) ` (where address is hex value of the pointer to the user‐define object and type is the type of the user‐defined object)
std::ostream&
operator<<(
std::ostream& stream,
DatumUdt const& rhs);
Write the specified rhs value to the specified output stream in the format shown in the second column in the table below (based on the type of value stored, indicated by the first column): ` null ‐ nil
std::ostream&
operator<<(
std::ostream& stream,
Datum const& rhs);
Write the string representation of the specified enumeration rhs to the specified stream in a single‐line format, and return a reference to the modifiable stream. See dataTypeToAscii for what constitutes the string representation of a Datum::DataType value.
std::ostream&
operator<<(
std::ostream& stream,
Datum::DataType rhs);
Write the specified rhs value to the specified output stream in the format shown below: ` [aa,bb,cc]‐ aa, bb and cc are the result of invoking operator << on the individual elements in the array ` and return a reference to the modifiable stream. The function will have no effect if the stream is not valid.
std::ostream&
operator<<(
std::ostream& stream,
DatumArrayRef const& rhs);
Write the specified rhs value to the specified output stream in the format shown below: ` (nnn,aa) ‐ nnn is key integer, while aa is the result of invoking operator << on the value ` and return a reference to the modifiable stream. The function will have no effect if the stream is not valid.
std::ostream&
operator<<(
std::ostream& stream,
DatumIntMapEntry const& rhs);
Write the specified rhs value to the specified output stream in the format shown below: ` [ nnn = aa, mmm = bb]‐ nnn and mmm are key ints, while aa and bb are the result of invoking operator << on the individual value elements in the map ` and return a reference to the modifiable stream. The function will have no effect if the stream is not valid.
std::ostream&
operator<<(
std::ostream& stream,
DatumIntMapRef const& rhs);
Write the specified rhs value to the specified output stream in the format shown below: ` (abc,aa) ‐ abc is key string, while aa is the result of invoking operator << on the value ` and return a reference to the modifiable stream. The function will have no effect if the stream is not valid.
std::ostream&
operator<<(
std::ostream& stream,
DatumMapEntry const& rhs);
Write the specified rhs value to the specified output stream in the format shown below: ` [ abc = aa, pqr = bb]‐ abc and pqr are key strings, while aa and bb are the result of invoking operator '<<' on the individual value elements in the map ` and return a reference to the modifiable stream. The function will have no effect if the stream is not valid.
std::ostream&
operator<<(
std::ostream& stream,
DatumMapRef const& rhs);
Write the specified rhs value to the specified output stream and return a reference to the modifiable stream. This function has no effect if stream is not valid on entry. Note that this method invokes operator<< defined for Datum. See the function‐level documentation of the operator<< defined for Datum for details of the format of the output.
std::ostream&
operator<<(
std::ostream& stream,
ManagedDatum const& rhs);
Created with MrDocs