Kea  1.9.9-git
isc::dhcp::OptionDefSpaceContainer Class Reference

Class of option definition space container. More...

#include <option_definition.h>

+ Inheritance diagram for isc::dhcp::OptionDefSpaceContainer:

Public Member Functions

void addItem (const OptionDefinitionPtr &def)
 Adds a new option definition to the container. More...
 
- Public Member Functions inherited from isc::dhcp::OptionSpaceContainer< ContainerType, ItemType, Selector >
void addItem (const ItemType &item, const Selector &option_space)
 Adds a new item to the option_space. More...
 
void clearItems ()
 Remove all items from the container. More...
 
uint64_t deleteItems (const uint64_t id)
 Remove all options or option definitions with a given database identifier. More...
 
bool empty () const
 Indicates the container is empty. More...
 
bool equals (const OptionSpaceContainer &other) const
 Check if two containers are equal. More...
 
ItemsContainerPtr getItems (const Selector &option_space) const
 Get all items for the particular option space. More...
 
std::list< Selector > getOptionSpaceNames () const
 Get a list of existing option spaces. More...
 

Additional Inherited Members

- Public Types inherited from isc::dhcp::OptionSpaceContainer< ContainerType, ItemType, Selector >
typedef boost::shared_ptr< ContainerType > ItemsContainerPtr
 Pointer to the container. More...
 

Detailed Description

Class of option definition space container.

Definition at line 850 of file option_definition.h.

Member Function Documentation

void isc::dhcp::OptionDefSpaceContainer::addItem ( const OptionDefinitionPtr def)
inline

Adds a new option definition to the container.

The option definition already contains the option space.

Note
: this method hides the parent one so it becomes hard to get a mismatch between the option definition and the space container.
Parameters
defreference to the option definition being added.

Definition at line 861 of file option_definition.h.

References isc::dhcp::OptionSpaceContainer< ContainerType, ItemType, Selector >::addItem().

Referenced by isc::dhcp::bench::GenericHostDataSourceBenchmark::addTestOptions(), and isc::dhcp::LibDHCP::setRuntimeOptionDefs().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: