Acl::OptionValue< Value > Class Template Reference

Stores configuration of a typical boolean flag or a single-value Option. More...

#include <Options.h>

Inheritance diagram for Acl::OptionValue< Value >:
Collaboration diagram for Acl::OptionValue< Value >:

Public Types

typedef Value value_type
 

Public Member Functions

 OptionValue ()
 
 OptionValue (const Value &aValue)
 
bool enabled () const
 whether the option is explicitly turned "on" (with or without a value) More...
 
 operator bool () const
 
void reset ()
 go back to the default-initialized state More...
 

Public Attributes

Value value
 final value storage, possibly after conversions More...
 
bool configured = false
 whether the option was present in squid.conf More...
 
bool disabled = false
 whether the option was turned off More...
 
bool valued = false
 whether a configured option had a value More...
 

Detailed Description

template<class Value>
class Acl::OptionValue< Value >

Definition at line 99 of file Options.h.

Member Typedef Documentation

◆ value_type

template<class Value >
typedef Value Acl::OptionValue< Value >::value_type

Definition at line 102 of file Options.h.

Constructor & Destructor Documentation

◆ OptionValue() [1/2]

template<class Value >
Acl::OptionValue< Value >::OptionValue ( )
inline

Definition at line 110 of file Options.h.

◆ OptionValue() [2/2]

template<class Value >
Acl::OptionValue< Value >::OptionValue ( const Value &  aValue)
inlineexplicit

Definition at line 111 of file Options.h.

Member Function Documentation

◆ enabled()

template<class Value >
bool Acl::OptionValue< Value >::enabled ( ) const
inline

Definition at line 114 of file Options.h.

Referenced by Acl::OptionValue< CharacterSet >::operator bool().

◆ operator bool()

template<class Value >
Acl::OptionValue< Value >::operator bool ( ) const
inlineexplicit

Definition at line 115 of file Options.h.

◆ reset()

template<class Value >
void Acl::OptionValue< Value >::reset ( )
inline

Definition at line 118 of file Options.h.

Member Data Documentation

◆ configured

template<class Value >
bool Acl::OptionValue< Value >::configured = false

Definition at line 121 of file Options.h.

Referenced by Acl::OptionValue< CharacterSet >::enabled().

◆ disabled

template<class Value >
bool Acl::OptionValue< Value >::disabled = false

Definition at line 123 of file Options.h.

Referenced by Acl::OptionValue< CharacterSet >::enabled().

◆ value

template<class Value >
Value Acl::OptionValue< Value >::value

◆ valued

template<class Value >
bool Acl::OptionValue< Value >::valued = false

Definition at line 124 of file Options.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors