72 : items_(other.items_)
84 return items_.empty();
99 items_.reserve(capacity);
106 return items_.begin();
119 const Item& item)
const 136 if (end() == find(item))
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_;
330 : items_(other.items_)
342 return items_.empty();
348 return items_.size();
357 items_.reserve(capacity);
381 const Item& item)
const 402 if (end() == find(item))
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;
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.
StrRef Item
Items of collection.
ConstIterator end() const
Provides iterating facilities.
Key Item
Aliases set item type.
~TinySet()
Cleans everything up.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
ConstIterator end() const
Provides iterating facilities.
bool insert(const Item &item)
Inserts items into the set.
size_t size() const
Returns number of items in the set.
ConstIterator begin() const
Provides iterating facilities.
bool operator==(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool erase(const Item &item)
Removes given item from the set.
std::vector< std::string > Items
Aliases internal representation.
TinyStrSetIterator()
Initializes iterator pointing to nowhere.
TinyStrSet(size_t capacity)
Initializes empty set capacious enough to store given number of items.
ConstIterator find(const Item &item) const
Tells whether set contains given item.
TinySet()
Initializes empty set.
~TinyStrSet()
Performs clean-up.
TinyStrSet()
Initializes empty set.
ConstIterator find(const Item &item) const
Tells whether set contains given item.
TinyStrSetIterator(const ItemIterator &iterator)
Initializes from iterator over internal store.
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
Implements iterator for TinyStrSet class.
std::vector< Item > Items
Aliases internal representation.
Items::const_iterator ConstIterator
Aliases iterator over set items.
void reserve(size_t capacity)
Makes internal storage capacious enough to store given number of items.
void toStr(std::string &str, const Decimal &number)
TinySet(const TinySet &other)
Initializes set as copy of other one.
void copy(VectorOverArray< TargetItem, TargetSize > &target, const VectorOverArray< SourceItem, TargetSize > &source, SourceSize itemCount=static_cast< SourceSize >(-1))
Copies items from source to target.
bool empty() const
Indicates whether set is empty.
Implements TinySet for StrRef class.
Items::const_iterator ItemIterator
Aliases iterator over internal store.
TinyStrSet(const TinyStrSet &other)
Initializes as copy of other instance.
void swap(TinyStrSet &other)
Exchanges content with the other instance.
bool insert(const Item &item)
Inserts item into set.
Provides efficient way of accessing text-based FIX field values.
void reserve(size_t capacity)
Makes internal storage capacious enough to store given number of items.
ConstIterator begin() const
Provides iterating facilities.
void clear()
Brings set to blank state.
bool erase(const Item &item)
Removes given item from the set.
void clear()
Brings set to blank/empty state.
~TinyStrSetIterator()
Cleans everything up.
TinySet(size_t capacity)
Initializes empty set and configures internal storage to be enough capacious to store given number of...
bool empty() const
Indicates whether set is empty.
void swap(TinySet &other)
Swaps content with the other instance.
size_t size() const
Number of items in the set.
TinyStrSetIterator ConstIterator
Aliases iterator type.
Class implementing set optimized for storing small number of items.
TinyStrSetIterator(const TinyStrSetIterator &other)
Initializes instance as copy of the other one.
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN