MLIR-AIE
Classes | Namespaces | Macros | Typedefs | Functions
cxxopts.hpp File Reference
#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <initializer_list>
#include <limits>
#include <locale>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <regex>
+ Include dependency graph for cxxopts.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cxxopts::Value
 
class  cxxopts::exceptions::exception
 
class  cxxopts::exceptions::specification
 
class  cxxopts::exceptions::parsing
 
class  cxxopts::exceptions::option_already_exists
 
class  cxxopts::exceptions::invalid_option_format
 
class  cxxopts::exceptions::invalid_option_syntax
 
class  cxxopts::exceptions::no_such_option
 
class  cxxopts::exceptions::missing_argument
 
class  cxxopts::exceptions::option_requires_argument
 
class  cxxopts::exceptions::gratuitous_argument_for_option
 
class  cxxopts::exceptions::requested_option_not_present
 
class  cxxopts::exceptions::option_has_no_value
 
class  cxxopts::exceptions::incorrect_argument_type
 
struct  cxxopts::values::parser_tool::IntegerDesc
 
struct  cxxopts::values::parser_tool::ArguDesc
 
struct  cxxopts::values::detail::SignedCheck< T, true >
 
struct  cxxopts::values::detail::SignedCheck< T, false >
 
struct  cxxopts::values::type_is_container< T >
 
struct  cxxopts::values::type_is_container< std::vector< T > >
 
class  cxxopts::values::abstract_value< T >
 
class  cxxopts::values::standard_value< T >
 
class  cxxopts::values::standard_value< bool >
 
class  cxxopts::OptionDetails
 
struct  cxxopts::HelpOptionDetails
 
struct  cxxopts::HelpGroupDetails
 
class  cxxopts::OptionValue
 
class  cxxopts::KeyValue
 
class  cxxopts::ParseResult
 
class  cxxopts::ParseResult::Iterator
 
struct  cxxopts::Option
 
class  cxxopts::OptionParser
 
class  cxxopts::Options
 
class  cxxopts::OptionAdder
 

Namespaces

namespace  cxxopts
 
namespace  cxxopts::exceptions
 
namespace  cxxopts::values
 
namespace  cxxopts::values::parser_tool
 
namespace  cxxopts::values::detail
 

Macros

#define CXXOPTS_LINKONCE_CONST
 
#define CXXOPTS_LINKONCE
 
#define CXXOPTS_FALLTHROUGH
 
#define CXXOPTS_NODISCARD
 
#define CXXOPTS_VECTOR_DELIMITER   ','
 
#define CXXOPTS__VERSION_MAJOR   3
 
#define CXXOPTS__VERSION_MINOR   2
 
#define CXXOPTS__VERSION_PATCH   1
 
#define CXXOPTS_DIAGNOSTIC_PUSH
 
#define CXXOPTS_DIAGNOSTIC_POP
 
#define CXXOPTS_IGNORE_WARNING(x)
 
#define CXXOPTS_RTTI_CAST   dynamic_cast
 

Typedefs

using cxxopts::String = std::string
 
using cxxopts::OptionNames = std::vector< std::string >
 
using cxxopts::ParsedHashMap = std::unordered_map< std::size_t, OptionValue >
 
using cxxopts::NameHashMap = std::unordered_map< std::string, std::size_t >
 
using cxxopts::OptionMap = std::unordered_map< std::string, std::shared_ptr< OptionDetails > >
 
using cxxopts::PositionalList = std::vector< std::string >
 
using cxxopts::PositionalListIterator = PositionalList::const_iterator
 

Functions

template<typename T >
cxxopts::toLocalString (T &&t)
 
std::size_t cxxopts::stringLength (const String &s)
 
Stringcxxopts::stringAppend (String &s, const String &a)
 
Stringcxxopts::stringAppend (String &s, std::size_t n, char c)
 
template<typename Iterator >
Stringcxxopts::stringAppend (String &s, Iterator begin, Iterator end)
 
template<typename T >
std::string cxxopts::toUTF8String (T &&t)
 
bool cxxopts::empty (const std::string &s)
 
template<typename T >
void cxxopts::throw_or_mimic (const std::string &text)
 
IntegerDesc cxxopts::values::parser_tool::SplitInteger (const std::string &text)
 
bool cxxopts::values::parser_tool::IsTrueText (const std::string &text)
 
bool cxxopts::values::parser_tool::IsFalseText (const std::string &text)
 
OptionNames cxxopts::values::parser_tool::split_option_names (const std::string &text)
 
ArguDesc cxxopts::values::parser_tool::ParseArgument (const char *arg, bool &matched)
 
template<typename T , typename U >
void cxxopts::values::detail::check_signed_range (bool negative, U value, const std::string &text)
 
template<typename R , typename T >
void cxxopts::values::checked_negate (R &r, T &&t, const std::string &, std::true_type)
 
template<typename R , typename T >
void cxxopts::values::checked_negate (R &, T &&, const std::string &text, std::false_type)
 
template<typename T >
void cxxopts::values::integer_parser (const std::string &text, T &value)
 
template<typename T >
void cxxopts::values::stringstream_parser (const std::string &text, T &value)
 
template<typename T , typename std::enable_if< std::is_integral< T >::value >::type * = nullptr>
void cxxopts::values::parse_value (const std::string &text, T &value)
 
void cxxopts::values::parse_value (const std::string &text, bool &value)
 
void cxxopts::values::parse_value (const std::string &text, std::string &value)
 
void cxxopts::values::parse_value (const std::string &text, char &c)
 
template<typename T >
void cxxopts::values::parse_value (const std::string &text, std::vector< T > &value)
 
template<typename T >
void cxxopts::values::add_value (const std::string &text, T &value)
 
template<typename T >
void cxxopts::values::add_value (const std::string &text, std::vector< T > &value)
 
template<typename T >
std::shared_ptr< Valuecxxopts::value ()
 
template<typename T >
std::shared_ptr< Valuecxxopts::value (T &t)
 
CXXOPTS_NODISCARD const std::string & cxxopts::first_or_empty (const OptionNames &long_names)
 

Macro Definition Documentation

◆ CXXOPTS__VERSION_MAJOR

#define CXXOPTS__VERSION_MAJOR   3

Definition at line 103 of file cxxopts.hpp.

◆ CXXOPTS__VERSION_MINOR

#define CXXOPTS__VERSION_MINOR   2

Definition at line 104 of file cxxopts.hpp.

◆ CXXOPTS__VERSION_PATCH

#define CXXOPTS__VERSION_PATCH   1

Definition at line 105 of file cxxopts.hpp.

◆ CXXOPTS_DIAGNOSTIC_POP

#define CXXOPTS_DIAGNOSTIC_POP

Definition at line 119 of file cxxopts.hpp.

◆ CXXOPTS_DIAGNOSTIC_PUSH

#define CXXOPTS_DIAGNOSTIC_PUSH

Definition at line 118 of file cxxopts.hpp.

◆ CXXOPTS_FALLTHROUGH

#define CXXOPTS_FALLTHROUGH

Definition at line 85 of file cxxopts.hpp.

◆ CXXOPTS_IGNORE_WARNING

#define CXXOPTS_IGNORE_WARNING (   x)

Definition at line 120 of file cxxopts.hpp.

◆ CXXOPTS_LINKONCE

#define CXXOPTS_LINKONCE

Definition at line 61 of file cxxopts.hpp.

◆ CXXOPTS_LINKONCE_CONST

#define CXXOPTS_LINKONCE_CONST

Definition at line 60 of file cxxopts.hpp.

◆ CXXOPTS_NODISCARD

#define CXXOPTS_NODISCARD

Definition at line 96 of file cxxopts.hpp.

◆ CXXOPTS_RTTI_CAST

#define CXXOPTS_RTTI_CAST   dynamic_cast

Definition at line 126 of file cxxopts.hpp.

◆ CXXOPTS_VECTOR_DELIMITER

#define CXXOPTS_VECTOR_DELIMITER   ','

Definition at line 100 of file cxxopts.hpp.