Kea  1.5.0
isc::util::OptionalValueState Struct Reference

Indicate if an OptionalValue is is specified or not. More...

#include <optional_value.h>

Public Member Functions

 OptionalValueState (const bool specified)
 Constructor. More...
 

Public Attributes

bool specified_
 A bool value encapsulated by this structure. More...
 

Detailed Description

Indicate if an OptionalValue is is specified or not.

This is a simple wrapper class which holds a boolean value to indicate if the OptionalValue is specified or not. By using this class in the OptionalValue class constructor we avoid the ambiguity when the OptionalValue encapsulates a bool type.

Definition at line 21 of file optional_value.h.

Constructor & Destructor Documentation

◆ OptionalValueState()

isc::util::OptionalValueState::OptionalValueState ( const bool  specified)
inline

Constructor.

Parameters
specifiedA boolean value to be assigned.

Definition at line 26 of file optional_value.h.

Member Data Documentation

◆ specified_

bool isc::util::OptionalValueState::specified_

A bool value encapsulated by this structure.

Definition at line 30 of file optional_value.h.

Referenced by isc::util::OptionalValue< T >::specify().


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