cxxopts::values Namespace Reference

Namespaces

 detail
 

Classes

class  abstract_value
 
class  standard_value
 
class  standard_value< bool >
 
struct  type_is_container
 
struct  type_is_container< std::vector< T > >
 

Functions

template<typename R , typename T >
T checked_negate (T &&, const std::string &text, std::false_type)
 
template<typename R , typename T >
checked_negate (T &&t, const std::string &, std::true_type)
 
template<typename T >
void integer_parser (const std::string &text, T &value)
 
void parse_value (const std::string &text, bool &value)
 
void parse_value (const std::string &text, int16_t &value)
 
void parse_value (const std::string &text, int32_t &value)
 
void parse_value (const std::string &text, int64_t &value)
 
void parse_value (const std::string &text, int8_t &value)
 
void parse_value (const std::string &text, std::string &value)
 
template<typename T >
void parse_value (const std::string &text, std::vector< T > &value)
 
template<typename T >
void parse_value (const std::string &text, T &value)
 
void parse_value (const std::string &text, uint16_t &value)
 
void parse_value (const std::string &text, uint32_t &value)
 
void parse_value (const std::string &text, uint64_t &value)
 
void parse_value (const std::string &text, uint8_t &value)
 
template<typename T >
void stringstream_parser (const std::string &text, T &value)
 

Function Documentation

◆ checked_negate() [1/2]

T cxxopts::values::checked_negate ( T &&  ,
const std::string &  text,
std::false_type   
)

Definition at line 534 of file cxxopts.hpp.

◆ checked_negate() [2/2]

R cxxopts::values::checked_negate ( T &&  t,
const std::string &  ,
std::true_type   
)

Definition at line 524 of file cxxopts.hpp.

◆ integer_parser()

void cxxopts::values::integer_parser ( const std::string &  text,
T value 
)

Definition at line 541 of file cxxopts.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_value() [1/12]

void cxxopts::values::parse_value ( const std::string &  text,
bool &  value 
)
inline

Definition at line 680 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [2/12]

void cxxopts::values::parse_value ( const std::string &  text,
int16_t &  value 
)
inline

Definition at line 645 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [3/12]

void cxxopts::values::parse_value ( const std::string &  text,
int32_t &  value 
)
inline

Definition at line 659 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [4/12]

void cxxopts::values::parse_value ( const std::string &  text,
int64_t &  value 
)
inline

Definition at line 673 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [5/12]

void cxxopts::values::parse_value ( const std::string &  text,
int8_t &  value 
)
inline

Definition at line 631 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [6/12]

void cxxopts::values::parse_value ( const std::string &  text,
std::string &  value 
)
inline

Definition at line 703 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [7/12]

void cxxopts::values::parse_value ( const std::string &  text,
std::vector< T > &  value 
)

Definition at line 720 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [8/12]

void cxxopts::values::parse_value ( const std::string &  text,
T value 
)

Definition at line 713 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [9/12]

void cxxopts::values::parse_value ( const std::string &  text,
uint16_t &  value 
)
inline

Definition at line 638 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [10/12]

void cxxopts::values::parse_value ( const std::string &  text,
uint32_t &  value 
)
inline

Definition at line 652 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [11/12]

void cxxopts::values::parse_value ( const std::string &  text,
uint64_t &  value 
)
inline

Definition at line 666 of file cxxopts.hpp.

+ Here is the call graph for this function:

◆ parse_value() [12/12]

void cxxopts::values::parse_value ( const std::string &  text,
uint8_t &  value 
)
inline

Definition at line 624 of file cxxopts.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stringstream_parser()

void cxxopts::values::stringstream_parser ( const std::string &  text,
T value 
)

Definition at line 612 of file cxxopts.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: