10 #include <boost/multi_index/hashed_index.hpp> 11 #include <boost/multi_index/identity.hpp> 12 #include <boost/multi_index/sequenced_index.hpp> 13 #include <boost/multi_index_container.hpp> 47 typedef boost::multi_index_container<
49 boost::multi_index::indexed_by<
51 boost::multi_index::sequenced<
52 boost::multi_index::tag<ClassSequenceTag>
55 boost::multi_index::hashed_unique<
56 boost::multi_index::tag<ClassNameTag>,
57 boost::multi_index::identity<ClientClass>
85 void insert(
const ClientClass& class_name) {
86 static_cast<void>(container_.push_back(class_name));
92 void erase(
const ClientClass& class_name);
96 return (container_.empty());
104 return (container_.size());
109 return (container_.cbegin());
114 return (container_.cend());
121 bool contains(
const ClientClass& x)
const;
133 std::string toText(
const std::string& separator =
", ")
const;
size_t size() const
Returns the number of classes.
Tag for the sequence index.
const_iterator cbegin() const
Iterator to the first element.
ClientClassContainer::const_iterator const_iterator
Type of iterators.
boost::multi_index_container< ClientClass, boost::multi_index::indexed_by< boost::multi_index::sequenced< boost::multi_index::tag< ClassSequenceTag > >, boost::multi_index::hashed_unique< boost::multi_index::tag< ClassNameTag >, boost::multi_index::identity< ClientClass > > > > ClientClassContainer
the client class multi-index.
void clear()
Clears containers.
bool empty() const
Check if classes is empty.
Defines the logger used by the top-level component of kea-lfc.
ClientClasses()
Default constructor.
const_iterator cend() const
Iterator to the past the end element.
void insert(const ClientClass &class_name)
Insert an element.
std::string ClientClass
Defines a single class name.
Container for storing client class names.