OnixS C++ CME Market Data Handler  5.7.0
API documentation
ListSetting< Type, Container > Class Template Reference

#include <OnixS/CME/MDH/SettingGroup.h>

Public Types

typedef Type Item
typedef Container Items
typedef Items::size_type Size
typedef Items::const_iterator Iterator

Public Member Functions

 ListSetting (const SettingGroup *group=NULL)
 ListSetting (const ListSetting &other)
template<class InputIterator >
 ListSetting (InputIterator first, InputIterator last)
 operator const Items & () const
bool empty () const
Size size () const
Iterator begin () const
Iterator end () const
const Itemoperator[] (Size index) const
template<class Initializer >
void initialize (Initializer initializer)
void push_back (const Item &item)
void clear ()
ListSettingoperator= (const ListSetting &other)
template<class InputIterator >
ListSettingassign (InputIterator first, InputIterator last)
ListSettingassignNoControl (const ListSetting &other)

Detailed Description

template<class Type, class Container = std::vector<Type>>
class OnixS::CME::MDH::ListSetting< Type, Container >

Definition at line 306 of file SettingGroup.h.

Member Typedef Documentation

typedef Type Item

Alias for the type representing the list item.

Definition at line 327 of file SettingGroup.h.

typedef Container Items

Internal container used to store items.

Definition at line 330 of file SettingGroup.h.

typedef Items::const_iterator Iterator

Constant iterator over the items.

Definition at line 339 of file SettingGroup.h.

typedef Items::size_type Size

Type in which items are counted.

Definition at line 333 of file SettingGroup.h.

Constructor & Destructor Documentation

ListSetting ( const SettingGroup group = NULL)

Initializes the instance belonging to the given group of settings.

Definition at line 344 of file SettingGroup.h.

ListSetting ( const ListSetting< Type, Container > &  other)

Initializes as a copy the other instance.

Definition at line 354 of file SettingGroup.h.

ListSetting ( InputIterator  first,
InputIterator  last 

Initializes as copy of the given range of items.

Definition at line 366 of file SettingGroup.h.

Member Function Documentation

ListSetting& assign ( InputIterator  first,
InputIterator  last 

Re-initialize the list as a copy of the given range.

Definition at line 488 of file SettingGroup.h.

ListSetting& assignNoControl ( const ListSetting< Type, Container > &  other)

Unmanaged assingment of the list.

The given member must be used when the given instance is part of the other managed collection. It's not supposed to be invoked when the instance is manipulated in ordinary way.

Definition at line 512 of file SettingGroup.h.

Iterator begin ( ) const

Returns iterator pointing to the beginnig of the list.

Definition at line 393 of file SettingGroup.h.

void clear ( )

Removes all items from the list.

Iterators and references related to the given list are invalidated.

Definition at line 454 of file SettingGroup.h.

bool empty ( ) const

Indicates whether the list is an empty one.

Definition at line 381 of file SettingGroup.h.

Iterator end ( ) const

Returns iterator pointing to the item beyond the last one.

Definition at line 399 of file SettingGroup.h.

void initialize ( Initializer  initializer)

Performs managed initialization of the list using the given functional object.

Definition at line 419 of file SettingGroup.h.

operator const Items & ( ) const

Implicit conversion into the container keeping items.

Definition at line 375 of file SettingGroup.h.

ListSetting& operator= ( const ListSetting< Type, Container > &  other)

Re-initialize the list as a copy of the other one.

Definition at line 467 of file SettingGroup.h.

const Item& operator[] ( Size  index) const

Provides access to the items by its index.

Definition at line 406 of file SettingGroup.h.

void push_back ( const Item item)

Appends the given item to the tail of the list.

Definition at line 434 of file SettingGroup.h.

Size size ( ) const

Returns number of items in the given list.

Definition at line 387 of file SettingGroup.h.

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