OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
SbeGroupRange< EntryType, BlockLength, NumInGroup, Length > Class Template Reference

#include <OnixS/CME/MDH/messaging/SbeMessage.h>

Classes

class  Iterator

Public Member Functions

 SbeGroupRange () noexcept
Iterator begin () const noexcept
Iterator end () const noexcept
std::size_t size () const noexcept
bool empty () const noexcept

Friends

class SbeGroupEntries< EntryType, BlockLength, NumInGroup, Length >

Detailed Description

template<class EntryType, class BlockLength, class NumInGroup, class Length>
class OnixS::CME::MDH::Messaging::SbeGroupRange< EntryType, BlockLength, NumInGroup, Length >
Template Parameters
EntryTypeView of an encoded repeating group entry.
BlockLengthType storing the encoded entry block length.
NumInGroupType storing the entry count.
LengthType storing the total encoded entries length.
Note
Available only when the SDK is configured for C++20 or later. Copies retain iterator positions, not ownership of message storage. Iterators remain valid after the adapter is destroyed while message storage remains valid. C++20 standard view adaptors copy this range, including when it is named. Resizing, relocating, reconstructing, or reusing that storage invalidates the range.

Definition at line 727 of file SbeMessage.h.

Constructor & Destructor Documentation

◆ SbeGroupRange()

template<class EntryType, class BlockLength, class NumInGroup, class Length>
SbeGroupRange ( )
inlinenoexcept

Initializes an empty range that refers to no message storage.

Definition at line 843 of file SbeMessage.h.

Member Function Documentation

◆ begin()

template<class EntryType, class BlockLength, class NumInGroup, class Length>
Iterator begin ( ) const
inlinenoexcept

Returns the first borrowed entry position.

Returns
An iterator at the first entry, or end() for an empty range.

Definition at line 852 of file SbeMessage.h.

◆ empty()

template<class EntryType, class BlockLength, class NumInGroup, class Length>
bool empty ( ) const
inlinenoexcept

Checks whether the range contains entries.

Returns
Whether the captured entry count is zero.

Definition at line 873 of file SbeMessage.h.

◆ end()

template<class EntryType, class BlockLength, class NumInGroup, class Length>
Iterator end ( ) const
inlinenoexcept

Returns the position following the last borrowed entry.

Returns
The end iterator.

Definition at line 859 of file SbeMessage.h.

◆ size()

template<class EntryType, class BlockLength, class NumInGroup, class Length>
std::size_t size ( ) const
inlinenoexcept

Returns the number of entries captured when the adapter was created.

Returns
The entry count, in constant time.

Definition at line 866 of file SbeMessage.h.

◆ SbeGroupEntries< EntryType, BlockLength, NumInGroup, Length >

template<class EntryType, class BlockLength, class NumInGroup, class Length>
friend class SbeGroupEntries< EntryType, BlockLength, NumInGroup, Length >
friend

Definition at line 873 of file SbeMessage.h.