OnixS CME Drop Copy Handler C++ library 5.7.1
API documentation
Loading...
Searching...
No Matches
Group Class Reference

Public Member Functions

 Group ()
 Group (const Group &other)
 operator bool () const
size_t size () const
const GroupInstance at (size_t index) const
const GroupInstance operator[] (size_t index) const
Groupoperator= (const Group &other)
const Messagemessage () const

Friends

class MessageOperator

Detailed Description

Encapsulates operations over FIX Repeating Group.

Repeating group represents array of repeating group instances, So, class exposes corresponding services to manipulate array of repeating group instances. Similar to the GroupInstance it behaves like a pointer/reference to the underlying data. It's a light-weight object which just wraps internal data.

Group remains valid until corresponding field (which defines size/length of repeating group) from field-set (message or outer repeating group instance) is updated.

Definition at line 486 of file Messaging.h.

Constructor & Destructor Documentation

◆ Group() [1/2]

Group ( )

Initializes instance as referred to nothing.

◆ Group() [2/2]

Group ( const Group & other)

Initializes instance as reference to given repeating group.

Member Function Documentation

◆ at()

const GroupInstance at ( size_t index) const

Accesses to repeating group instance.

Exceptions
std::exceptionif If index exceeds allowed bounds.
Warning
Due to performance considerations, instance is not checked for validness. Member must be used only when instance is in valid state.

◆ message()

const Message & message ( ) const
inline

Instance of Message holding given repeating group instance.

Warning
Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use operator bool() to check whether instance is in valid state.

Definition at line 545 of file Messaging.h.

◆ operator bool()

operator bool ( ) const

Indicated whether group refers to a valid instance.

◆ operator=()

Group & operator= ( const Group & other)

Reinitializes instance as reference to other one.

◆ operator[]()

const GroupInstance operator[] ( size_t index) const

Accesses to repeating group instance.

Does NOT check index validness.

Warning
Due to performance considerations, instance is not checked for validness. Member must be used only when instance is in valid state.

◆ size()

size_t size ( ) const

Return number of instances in repeating group.

Warning
Due to performance considerations, instance is not checked for validness. Member must be used only when instance is in valid state.

◆ MessageOperator

friend class MessageOperator
friend

Definition at line 536 of file Messaging.h.