Kea 2.5.8
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.
 
- 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.
 
void clearItems ()
 Remove all items from the container.
 
uint64_t deleteItems (const uint64_t id)
 Remove all options or option definitions with a given database identifier.
 
bool empty () const
 Indicates the container is empty.
 
bool equals (const OptionSpaceContainer &other) const
 Check if two containers are equal.
 
ItemsContainerPtr getItems (const Selector &option_space) const
 Get all items for the particular option space.
 
std::list< Selector > getOptionSpaceNames () const
 Get a list of existing option spaces.
 

Additional Inherited Members

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

Detailed Description

Class of option definition space container.

Definition at line 879 of file option_definition.h.

Member Function Documentation

◆ addItem()

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 890 of file option_definition.h.

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

Referenced by isc::dhcp::CfgOptionDef::add(), and isc::dhcp::LibDHCP::setRuntimeOptionDefs().

+ Here is the call graph for this function:

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