HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
df::program_options_lite::Option< T > Struct Template Reference

#include <program_options_lite.h>

Inheritance diagram for df::program_options_lite::Option< T >:
Inheritance graph
[legend]
Collaboration diagram for df::program_options_lite::Option< T >:
Collaboration graph
[legend]

Public Member Functions

 Option (const std::string &name, T &storage, T default_val, const std::string &desc)
 
void parse (const std::string &arg, ErrorReporter &)
 
void setDefault ()
 
template<>
void parse (const std::string &arg, ErrorReporter &)
 
- Public Member Functions inherited from df::program_options_lite::OptionBase
 OptionBase (const std::string &name, const std::string &desc)
 
virtual ~OptionBase ()
 

Public Attributes

T & opt_storage
 
opt_default_val
 
- Public Attributes inherited from df::program_options_lite::OptionBase
std::string opt_string
 
std::string opt_desc
 

Detailed Description

template<typename T>
struct df::program_options_lite::Option< T >

Type specific option storage

Definition at line 104 of file program_options_lite.h.

Constructor & Destructor Documentation

template<typename T >
df::program_options_lite::Option< T >::Option ( const std::string &  name,
T &  storage,
default_val,
const std::string &  desc 
)
inline

Definition at line 106 of file program_options_lite.h.

Member Function Documentation

template<typename T >
void df::program_options_lite::Option< T >::parse ( const std::string &  arg,
ErrorReporter  
)
inlinevirtual

Implements df::program_options_lite::OptionBase.

Definition at line 124 of file program_options_lite.h.

template<>
void df::program_options_lite::Option< std::string >::parse ( const std::string &  arg,
ErrorReporter  
)
inlinevirtual

Implements df::program_options_lite::OptionBase.

Definition at line 142 of file program_options_lite.h.

template<typename T >
void df::program_options_lite::Option< T >::setDefault ( )
inlinevirtual

Implements df::program_options_lite::OptionBase.

Definition at line 112 of file program_options_lite.h.

Member Data Documentation

template<typename T >
T df::program_options_lite::Option< T >::opt_default_val

Definition at line 118 of file program_options_lite.h.

template<typename T >
T& df::program_options_lite::Option< T >::opt_storage

Definition at line 117 of file program_options_lite.h.


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