Encapsulates operations over FIX Repeating Group. More...
Public Member Functions | |
Group (const Group &other) | |
Initializes instance as reference to given repeating group. | |
operator bool () const | |
Indicated whether group refers to a valid instance. | |
size_t | size () const |
Return number of instances in repeating group. More... | |
const GroupInstance | at (size_t index) const |
Accesses to repeating group instance. More... | |
const GroupInstance | operator[] (size_t index) const |
Accesses to repeating group instance. More... | |
Group & | operator= (const Group &other) |
Reinitializes instance as reference to other one. | |
Friends | |
class | MessageOperator |
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 OnixS::FIX::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.
const GroupInstance at | ( | size_t | index | ) | const |
Accesses to repeating group instance.
std::exception | if If index exceeds allowed bounds. |
const GroupInstance operator[] | ( | size_t | index | ) | const |
Accesses to repeating group instance.
Does NOT check index validness.
size_t size | ( | ) | const |
Return number of instances in repeating group.