56 : securityIds_(other.securityIds())
57 , securityGroups_(other.securityGroups())
58 , symbols_(other.symbols())
59 , assets_(other.assets_)
78 return securityGroups_;
84 return securityGroups_;
114 securityIds_.clear();
115 securityGroups_.clear();
131 Symbols symbols(other.
symbols());
133 Assets assets(other.
assets());
137 securityIds_.swap(ids);
138 securityGroups_.swap(groups);
140 symbols_.swap(symbols);
141 assets_.swap(assets);
148 SecurityIds securityIds_;
149 SecurityGroups securityGroups_;
164 toStr(str, selection);
182 return (value.
empty() || selection.
empty() || (selection.
end() != selection.
find(value)));
bool empty() const
Indicates whether the set is empty.
ConstIterator end() const
Provides iterating facilities.
StrRef symbol() const
Security name or symbol.
bool empty() const
Indicates whether the referenced text is empty.
bool selected(const InstrumentSelection &selection, const Security &security)
Checks whether security belongs to given selection.
TinyStrSet Assets
Collection of assets specified for given instrument selection.
const SecurityGroups & securityGroups() const
Securities selected by their groups.
StrRef group() const
Security group code.
Represents selection of instruments whose market data is to be processed by the Handler.
ConstIterator end() const
Provides iterating facilities.
const SecurityIds & securityIds() const
Securities selected by their identifiers.
Int32 SecurityId
Unique security identifier.
Implements TinySet for StrRef class.
#define ONIXS_CMEMDH_LTWT
SecurityId id() const
Unique security identifier.
StrRef asset() const
String field that indicates the underlying asset code (Product Code).
TinyStrSet SecurityGroups
Collection of security groups specified for given instrument selection.
bool value(Number &number, const MultiContainer &container, Tag tag)
Finds a tag-value entry in the given collection by the given tag and returns its value component tran...
void clear()
Clears selection.
TinySet< SecurityId > SecurityIds
Collection of security ids specified for given instrument selection.
ConstIterator find(const Item &item) const
Tells whether the set contains given item.
ConstIterator find(const Item &item) const
Looks for the given item and returns iterator pointing to the found entry or to nowhere.
Provides efficient way of accessing text-based values without copying content of the text being refer...
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
TinyStrSet Symbols
Collection of symbols specified for given instrument selection.
Attributes associated with security.
Symbols & symbols()
Securities selected by their symbols.
bool empty() const
Indicates whether the set is empty.
#define ONIXS_CMEMDH_EXPORTED
SecurityGroups & securityGroups()
Securities selected by their groups.
SecurityIds & securityIds()
Securities selected by their identifiers.
std::string toStr(const InstrumentSelection &selection)
Serializes instrument selection into text presentation.
const Symbols & symbols() const
Securities selected by their symbols.
InstrumentSelection & operator=(const InstrumentSelection &other)
Re-initializes selection as copy of the other instance.
InstrumentSelection(const InstrumentSelection &other)
Initializes selection as copy of the other instance.
InstrumentSelection()
Initializes empty selection.
Assets & assets()
Securities selected by their assets.
const Assets & assets() const
Securities selected by their assets.
#define ONIXS_CMEMDH_NAMESPACE_END