OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
SbeFields< Container, BlockLength > Class Template Reference

Public Member Functions

ONIXS_ICEBOE_FORCEINLINE Container & container () noexcept
void zeroPaddingBytes (BlockLength offset) noexcept
template<class FieldValue>
ONIXS_ICEBOE_FORCEINLINE void setOrdinary (BlockLength offset, FieldValue value) noexcept
template<class FieldValue>
ONIXS_ICEBOE_FORCEINLINE void setOrdinary (BlockLength offset, FieldValue value, SchemaVersion since)
template<class Enumeration>
ONIXS_ICEBOE_FORCEINLINE void setEnumeration (BlockLength offset, Enumeration value) noexcept
template<class Enumeration>
ONIXS_ICEBOE_FORCEINLINE void setEnumeration (BlockLength offset, Enumeration value, SchemaVersion since)
template<BlockLength Size>
ONIXS_ICEBOE_FORCEINLINE void setFixedStr (BlockLength offset, StrRef value) noexcept
template<BlockLength Size>
ONIXS_ICEBOE_FORCEINLINE void setFixedStr (BlockLength offset, StrRef value, SchemaVersion since)

Protected Member Functions

 SbeFields ()=default
 ~SbeFields ()=default
Protected Member Functions inherited from BinaryBlock< Container, BlockLength >
 BinaryBlock ()=default
 ~BinaryBlock ()=default
template<typename Value>
ONIXS_ICEBOE_FORCEINLINE Value ordinary (BlockLength offset) const noexcept
template<typename NullValue>
ONIXS_ICEBOE_FORCEINLINE std::enable_if<!isComposite< typenameNullValue::Value >::value, SbeOptional< typenameNullValue::Value, NullValue > >::type ordinary (BlockLength offset, OptionalTag) const noexcept
template<typename NullValue>
ONIXS_ICEBOE_FORCEINLINE std::enable_if<!isComposite< typenameNullValue::Value >::value, SbeOptional< typenameNullValue::Value, NullValue > >::type ordinary (BlockLength offset, SchemaVersion since, OptionalTag) const noexcept
template<typename NullValue>
ONIXS_ICEBOE_FORCEINLINE std::enable_if< isComposite< typenameNullValue::Value >::value, SbeOptional< typenameNullValue::Value, NullValue > >::type ordinary (BlockLength offset, OptionalTag) const noexcept
template<typename NullValue>
ONIXS_ICEBOE_FORCEINLINE std::enable_if< isComposite< typenameNullValue::Value >::value, SbeOptional< typenameNullValue::Value, NullValue > >::type ordinary (BlockLength offset, SchemaVersion since, OptionalTag) const noexcept
template<typename Enumeration>
ONIXS_ICEBOE_FORCEINLINE Enumeration enumeration (BlockLength offset) const noexcept
template<typename Enumeration, typename NullValue>
ONIXS_ICEBOE_FORCEINLINE SbeOptionalEnumeration< Enumeration, NullValue > enumeration (BlockLength offset, OptionalTag) const noexcept
template<typename Enumeration, typename NullValue>
ONIXS_ICEBOE_FORCEINLINE SbeOptionalEnumeration< Enumeration, NullValue > enumeration (BlockLength offset, SchemaVersion since, OptionalTag) const noexcept
template<BlockLength Length>
ONIXS_ICEBOE_FORCEINLINE StrRef fixedStr (BlockLength offset) const noexcept
template<BlockLength Length>
ONIXS_ICEBOE_FORCEINLINE SbeOptionalStr fixedStr (BlockLength offset, OptionalTag) const noexcept
template<BlockLength Length>
ONIXS_ICEBOE_FORCEINLINE SbeOptionalStr fixedStr (BlockLength offset, SchemaVersion since, OptionalTag) const noexcept
template<typename Value>
ONIXS_ICEBOE_FORCEINLINE Value decimal (BlockLength offset) const noexcept
template<typename NullValue>
SbeOptional< typename NullValue::Value, NullValue > ONIXS_ICEBOE_FORCEINLINE decimal (BlockLength offset, OptionalTag) const noexcept
template<typename NullValue>
ONIXS_ICEBOE_FORCEINLINE SbeOptional< typename NullValue::Value, NullValue > decimal (BlockLength offset, SchemaVersion since, OptionalTag) const noexcept
template<typename NullValue, typename Callable>
ONIXS_ICEBOE_FORCEINLINE std::enable_if<!isComposite< typenameNullValue::Value >::value, SbeOptionalConverted< decltype(std::declval< Callable >()(std::declval< typenameArgType< Callable >::type >()))> >::type convertible (BlockLength offset, OptionalTag) const noexcept(noexcept(Callable::Nothrow))
template<typename Callable>
ONIXS_ICEBOE_FORCEINLINE auto convertible (BlockLength offset) const noexcept(noexcept(Callable::Nothrow)) -> decltype(std::declval< Callable >()(std::declval< typename ArgType< Callable >::type >()))
Protected Member Functions inherited from BinaryBlockBase
 ~BinaryBlockBase ()=default

Detailed Description

template<class Container, class BlockLength>
class OnixS::ICE::BOE::Messaging::SbeFields< Container, BlockLength >

This class represents an abstraction to be used by descendants as a base class with static polymorphism.

Definition at line 260 of file SbeMessage.h.

Constructor & Destructor Documentation

◆ SbeFields()

template<class Container, class BlockLength>
SbeFields ( )
protecteddefault

Initializes a blank instance.

◆ ~SbeFields()

template<class Container, class BlockLength>
~SbeFields ( )
protecteddefault

Member Function Documentation

◆ container()

template<class Container, class BlockLength>
ONIXS_ICEBOE_FORCEINLINE Container & container ( )
inlinenoexcept
Returns
The block container that provides access to the encoded data.

Definition at line 265 of file SbeMessage.h.

◆ setEnumeration() [1/2]

template<class Container, class BlockLength>
template<class Enumeration>
ONIXS_ICEBOE_FORCEINLINE void setEnumeration ( BlockLength offset,
Enumeration value )
inlinenoexcept

Sets the field value.

Definition at line 307 of file SbeMessage.h.

◆ setEnumeration() [2/2]

template<class Container, class BlockLength>
template<class Enumeration>
ONIXS_ICEBOE_FORCEINLINE void setEnumeration ( BlockLength offset,
Enumeration value,
SchemaVersion since )
inline

Sets the field value.

Definition at line 316 of file SbeMessage.h.

◆ setFixedStr() [1/2]

template<class Container, class BlockLength>
template<BlockLength Size>
ONIXS_ICEBOE_FORCEINLINE void setFixedStr ( BlockLength offset,
StrRef value )
inlinenoexcept

Sets the field value.

Definition at line 325 of file SbeMessage.h.

◆ setFixedStr() [2/2]

template<class Container, class BlockLength>
template<BlockLength Size>
ONIXS_ICEBOE_FORCEINLINE void setFixedStr ( BlockLength offset,
StrRef value,
SchemaVersion since )
inline

Sets the field value.

Definition at line 342 of file SbeMessage.h.

◆ setOrdinary() [1/2]

template<class Container, class BlockLength>
template<class FieldValue>
ONIXS_ICEBOE_FORCEINLINE void setOrdinary ( BlockLength offset,
FieldValue value )
inlinenoexcept

Sets the field value.

Definition at line 285 of file SbeMessage.h.

◆ setOrdinary() [2/2]

template<class Container, class BlockLength>
template<class FieldValue>
ONIXS_ICEBOE_FORCEINLINE void setOrdinary ( BlockLength offset,
FieldValue value,
SchemaVersion since )
inline

Sets the field value.

Definition at line 296 of file SbeMessage.h.

◆ zeroPaddingBytes()

template<class Container, class BlockLength>
void zeroPaddingBytes ( BlockLength offset)
inlinenoexcept

If specified, the extra space is padded at the end of each entry and should be set to zeroes by encoders.

Definition at line 272 of file SbeMessage.h.