Main   Classes   Namespace members   Examples   Recipes   Rationale   Related pages

boost::program_options::variables_map Class Reference

Concrete variables map which store variables in real map. More...

#include <variables_map.hpp>

Inherits boost::program_options::abstract_variables_map.

Inheritance diagram for boost::program_options::variables_map:

Inheritance graph
[legend]
Collaboration diagram for boost::program_options::variables_map:

Collaboration graph
[legend]
List of all members.

Public Member Functions

variable_value operator[] (const std::string &name) const
 Obtains the value of variable 'name', from *this and possibly from the chain of variable maps.


Private Member Functions

variable_value get (const std::string &name) const
 Implementation of abstract_variables_map::get which does 'find' in *this.


Detailed Description

Concrete variables map which store variables in real map.


Member Function Documentation

variable_value boost::program_options::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 non-defauled value, return that
    • otherwise, return value from *this

  • if there's non-defauled value, returns it.

Reimplemented from boost::program_options::abstract_variables_map.

variable_value boost::program_options::variables_map::get const std::string &    name const [private, virtual]
 

Implementation of abstract_variables_map::get which does 'find' in *this.

Implements boost::program_options::abstract_variables_map.


The documentation for this class was generated from the following files:
Generated on 23 May 2003 with
doxygen