Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

bdlc::PackedIntArrayImp_Signed Struct Reference

#include <bdlc_packedintarray.h>

List of all members.

Public Types

typedef bsl::int8_t OneByteStorageType
typedef bsl::int16_t TwoByteStorageType
typedef bsl::int32_t FourByteStorageType
typedef bsl::int64_t EightByteStorageType

Static Public Member Functions

template<class STREAM >
static void bdexGet8 (STREAM &stream, bsl::int8_t &variable)
template<class STREAM >
static void bdexGet16 (STREAM &stream, bsl::int16_t &variable)
template<class STREAM >
static void bdexGet32 (STREAM &stream, bsl::int32_t &variable)
template<class STREAM >
static void bdexGet64 (STREAM &stream, bsl::int64_t &variable)
template<class STREAM >
static void bdexPut8 (STREAM &stream, bsl::int8_t value)
template<class STREAM >
static void bdexPut16 (STREAM &stream, bsl::int16_t value)
template<class STREAM >
static void bdexPut32 (STREAM &stream, bsl::int32_t value)
template<class STREAM >
static void bdexPut64 (STREAM &stream, bsl::int64_t value)
static int requiredBytesPerElement (EightByteStorageType value)

Detailed Description

This struct provides a namespace for types and methods used to implement a space-efficient value-semantic array class representing a sequence of TYPE elements; TYPE must be convertible to either a bsl::int64_t. Specifically, it defines the types used to store the array's data, methods needed to externalize and unexternalize the array, and a method to determine the storage size to use for a given value.

See Component bdlc_packedintarray


Member Typedef Documentation


Member Function Documentation

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexGet8 ( STREAM &  stream,
bsl::int8_t &  variable 
) [static]

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexGet16 ( STREAM &  stream,
bsl::int16_t &  variable 
) [static]

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexGet32 ( STREAM &  stream,
bsl::int32_t &  variable 
) [static]

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexGet64 ( STREAM &  stream,
bsl::int64_t &  variable 
) [static]

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexPut8 ( STREAM &  stream,
bsl::int8_t  value 
) [static]

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexPut16 ( STREAM &  stream,
bsl::int16_t  value 
) [static]

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexPut32 ( STREAM &  stream,
bsl::int32_t  value 
) [static]

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

template<class STREAM >
static void bdlc::PackedIntArrayImp_Signed::bdexPut64 ( STREAM &  stream,
bsl::int64_t  value 
) [static]

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

static int bdlc::PackedIntArrayImp_Signed::requiredBytesPerElement ( EightByteStorageType  value  )  [static]

Return the required number of bytes to store the specified value.


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