72 : items_(other.items_)
84 return items_.empty();
99 items_.reserve(capacity);
106 return items_.begin();
119 const Item& item)
const
139 items_.push_back(item);
164 if (items_.end() == found)
216 std::vector<std::string>
221 Items::const_iterator
232 : iterator_(other.iterator_)
240 : iterator_(iterator)
262 return iterator_ == other.iterator_;
271 return iterator_ != other.iterator_;
280 iterator_ = other.iterator_;
296 ItemIterator iterator_;
310 std::vector<std::string>
314 Items::const_iterator
335 std::string& other)
const
337 return sought_ == other;
369 : items_(other.items_)
381 return items_.empty();
387 return items_.size();
396 items_.reserve(capacity);
421 const Item& item)
const
445 items_.push_back(
toStr(item));
468 if (items_.end() == found)
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
void reserve(size_t capacity)
size_t size() const
Returns the number of items in the set.
void swap(TinySet &other)
Swaps content with the other instance.
std::vector< Item > Items
bool empty() const
Indicates whether the set is empty.
ConstIterator end() const
Provides iterating facilities.
~TinySet()
Cleans everything up.
TinySet(const TinySet &other)
Initializes the set as a copy of the other one.
bool insert(const Item &item)
ConstIterator find(const Item &item) const
Tells whether the set contains given item.
void clear()
Brings the set to the blank state.
ConstIterator begin() const
Provides iterating facilities.
bool erase(const Item &item)
Items::const_iterator ConstIterator
TinySet()
Initializes the empty set.
Implements iterator for the TinyStrSet class.
std::vector< std::string > Items
Aliases for internal representation.
TinyStrSetIterator(const TinyStrSetIterator &other)
Initializes the instance as a copy of the other one.
Items::const_iterator ItemIterator
Aliases iterator over the internal store.
TinyStrSetIterator()
Initializes the iterator pointing to nowhere.
TinyStrSetIterator(const ItemIterator &iterator)
Initializes from iterator over the internal storage.
~TinyStrSetIterator()
Cleans everything up.
void reserve(size_t capacity)
StrRef Item
Items of collection.
size_t size() const
Returns the number of items in the set.
TinyStrSet(size_t capacity)
TinyStrSetIterator ConstIterator
Aliases iterator type.
bool empty() const
Indicates whether the 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 a copy of the other instance.
~TinyStrSet()
Destructs the internal storage.
bool insert(const Item &item)
ConstIterator find(const Item &item) const
TinyStrSet()
Initializes the empty set.
void clear()
Brings the set to the blank (empty) state.
ConstIterator begin() const
Provides iterating facilities.
bool erase(const Item &item)
void copy(MbpBook< TargetPriceLevel, Depth > &target, const MbpBook< SourcePriceLevel, Depth > &source, Depth maxDepth=static_cast< Depth >(-1))
ONIXS_CONFLATEDUDP_EXPORTED void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.