Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::program_options::abstract_variables_map Class Referenceabstract

Implements string->string mapping with convenient value casting facilities. More...

#include <variables_map.hpp>

Inheritance diagram for boost::program_options::abstract_variables_map:

Public Member Functions

 abstract_variables_map ()
 
 abstract_variables_map (const abstract_variables_map *next)
 
virtual ~abstract_variables_map ()
 
const variable_valueoperator[] (const std::string &name) const
 Obtains the value of variable 'name', from *this and possibly from the chain of variable maps. More...
 
void next (abstract_variables_map *next)
 Sets next variable map, which will be used to find variables not found in *this. More...
 

Detailed Description

Implements string->string mapping with convenient value casting facilities.

Constructor & Destructor Documentation

boost::program_options::abstract_variables_map::abstract_variables_map ( )
boost::program_options::abstract_variables_map::abstract_variables_map ( const abstract_variables_map next)
virtual boost::program_options::abstract_variables_map::~abstract_variables_map ( )
inlinevirtual

Member Function Documentation

void boost::program_options::abstract_variables_map::next ( abstract_variables_map next)

Sets next variable map, which will be used to find variables not found in *this.

const variable_value& boost::program_options::abstract_variables_map::operator[] ( const std::string &  name) const

Obtains the value of variable 'name', from *this and possibly from the chain of variable maps.

  • if there's no value in *this.
    • if there's next variable map, returns value from it
    • otherwise, returns empty value
  • if there's defaulted value
    • if there's next varaible map, which has a non-defauled value, return that
    • otherwise, return value from *this
  • if there's a non-defauled value, returns it.

Referenced by boost::program_options::variables_map::operator[]().


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