72 : items_(other.items_)
84 return items_.empty();
99 items_.reserve(capacity);
106 return items_.begin();
119 const Item& item)
const
138 items_.push_back(item);
162 if (items_.end() == found)
213 std::vector<std::string>
218 Items::const_iterator
229 : iterator_(other.iterator_)
237 : iterator_(iterator)
259 return iterator_ == other.iterator_;
268 return iterator_ != other.iterator_;
277 iterator_ = other.iterator_;
292 ItemIterator iterator_;
330 : items_(other.items_)
342 return items_.empty();
348 return items_.size();
357 items_.reserve(capacity);
381 const Item& item)
const
404 items_.push_back(
toStr(item));
426 if (items_.end() == found)
455 std::vector<std::string>
459 Items::const_iterator
480 std::string& other)
const
482 return sought_ == other;
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
Provides efficient way of accessing text-based FIX field values.
Class implementing set optimized for storing small number of items.
void reserve(size_t capacity)
size_t size() const
Number of items in the set.
void swap(TinySet &other)
Swaps content with the other instance.
TinySet(size_t capacity)
Initializes empty set and configures internal storage to be enough capacious to store given number of...
std::vector< Item > Items
bool empty() const
Indicates whether set is empty.
ConstIterator end() const
Provides iterating facilities.
~TinySet()
Cleans everything up.
TinySet(const TinySet &other)
Initializes set as copy of other one.
bool insert(const Item &item)
Inserts items into the set.
ConstIterator find(const Item &item) const
Tells whether set contains given item.
void clear()
Brings set to blank state.
ConstIterator begin() const
Provides iterating facilities.
bool erase(const Item &item)
Removes given item from the set.
Items::const_iterator ConstIterator
TinySet()
Initializes empty set.
Implements iterator for TinyStrSet class.
std::vector< std::string > Items
Aliases internal representation.
TinyStrSetIterator(const TinyStrSetIterator &other)
Initializes instance as copy of the other one.
Items::const_iterator ItemIterator
Aliases iterator over internal store.
TinyStrSetIterator()
Initializes iterator pointing to nowhere.
TinyStrSetIterator(const ItemIterator &iterator)
Initializes from iterator over internal store.
~TinyStrSetIterator()
Cleans everything up.
void reserve(size_t capacity)
Makes internal storage capacious enough to store given number of items.
StrRef Item
Items of collection.
size_t size() const
Returns number of items in the set.
TinyStrSet(size_t capacity)
Initializes empty set capacious enough to store given number of items.
TinyStrSetIterator ConstIterator
Aliases iterator type.
bool empty() const
Indicates whether set is empty.
ConstIterator end() const
Provides iterating facilities.
void swap(TinyStrSet &other)
Exchanges content with the other instance.
TinyStrSet(const TinyStrSet &other)
Initializes as copy of other instance.
~TinyStrSet()
Performs clean-up.
bool insert(const Item &item)
Inserts item into set.
ConstIterator find(const Item &item) const
Tells whether set contains given item.
TinyStrSet()
Initializes empty set.
void clear()
Brings set to blank/empty state.
ConstIterator begin() const
Provides iterating facilities.
bool erase(const Item &item)
Removes given item from the set.
void copy(VectorOverArray< TargetItem, TargetSize > &target, const VectorOverArray< SourceItem, TargetSize > &source, SourceSize itemCount=static_cast< SourceSize >(-1))
Copies items from source to target.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.
void toStr(std::string &str, const Decimal &number)