OnixS C++ CME MDP Streamlined Market Data Handler  1.2.0
API Documentation
BinaryMessageIterator Class Reference

#include <OnixS/CME/Streamlined/Packet.h>

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef ptrdiff_t difference_type
 
typedef const BinaryMessage value_type
 
typedef value_typepointer
 
typedef value_typereference
 

Public Member Functions

 BinaryMessageIterator (const void *dataBegin, const void *dataEnd)
 
BinaryMessage message () const
 
BinaryMessage operator* () const
 
BinaryMessageIteratoroperator++ ()
 
bool operator== (const BinaryMessageIterator &other) const
 
bool operator!= (const BinaryMessageIterator &other) const
 

Detailed Description

Definition at line 36 of file Packet.h.

Member Typedef Documentation

typedef ptrdiff_t difference_type

Establishes instance difference type.

Definition at line 75 of file Packet.h.

typedef std::forward_iterator_tag iterator_category

Definition at line 70 of file Packet.h.

typedef value_type* pointer

Defines pointer to a value type.

Definition at line 83 of file Packet.h.

Defines reference to a value type.

Definition at line 86 of file Packet.h.

typedef const BinaryMessage value_type

Defines value type.

Definition at line 80 of file Packet.h.

Constructor & Destructor Documentation

BinaryMessageIterator ( const void *  dataBegin,
const void *  dataEnd 
)
inline

Constructs encoded message iterator from raw data pointers.

Exceptions
runtime_errorin case when raw data pointers cannot be casted to valid encoded message iterator.

Definition at line 92 of file Packet.h.

Member Function Documentation

BinaryMessage message ( ) const
inline

Gets reference to encoded message.

Warning
Behavior is undefined in case when iterator points to the packet end.

Definition at line 111 of file Packet.h.

bool operator!= ( const BinaryMessageIterator other) const
inline

Checks whether two iterators are not equal.

Definition at line 153 of file Packet.h.

BinaryMessage operator* ( ) const
inline

Dereferences encoded message.

Definition at line 123 of file Packet.h.

BinaryMessageIterator& operator++ ( )
inline

Advances iterator to next message.

Exceptions
runtime_errorin case when iteration is not possible.

Definition at line 131 of file Packet.h.

bool operator== ( const BinaryMessageIterator other) const
inline

Checks whether two iterators are equal.

Definition at line 145 of file Packet.h.


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