 |
Kea
1.5.0
|
Go to the documentation of this file.
13 #include <unordered_set>
63 list_.push_back(class_name);
64 set_.insert(class_name);
69 return (list_.empty());
77 return (list_.size());
82 return (list_.cbegin());
87 return (list_.cend());
95 return (set_.count(x) != 0);
109 std::string
toText(
const std::string& separator =
", ")
const;
113 std::list<ClientClass> list_;
116 std::unordered_set<ClientClass> set_;
std::string toText(const std::string &separator=", ") const
Returns all class names as text.
Defines the logger used by the top-level component of kea-dhcp-ddns.
const_iterator cbegin() const
Iterator to the first element.
bool contains(const ClientClass &x) const
returns if class x belongs to the defined classes
void clear()
Clears containers.
bool empty() const
Check if classes is empty.
std::list< ClientClass >::const_iterator const_iterator
Type of iterators.
std::string ClientClass
Defines a single class name.
void insert(const ClientClass &class_name)
Insert an element.
ClientClasses()
Default constructor.
size_t size() const
Returns the number of classes.
const_iterator cend() const
Iterator to the past the end element.
Container for storing client class names.