MLIR-AIE
Public Member Functions | List of all members
cxxopts::OptionParser Class Reference

#include "/home/runner/work/mlir-aie/mlir-aie/runtime_lib/test_lib/cxxopts.hpp"

Public Member Functions

 OptionParser (const OptionMap &options, const PositionalList &positional, bool allow_unrecognised)
 
ParseResult parse (int argc, const char *const *argv)
 
bool consume_positional (const std::string &a, PositionalListIterator &next)
 
void checked_parse_arg (int argc, const char *const *argv, int &current, const std::shared_ptr< OptionDetails > &value, const std::string &name)
 
void add_to_option (const std::shared_ptr< OptionDetails > &value, const std::string &arg)
 
void parse_option (const std::shared_ptr< OptionDetails > &value, const std::string &name, const std::string &arg="")
 
void parse_default (const std::shared_ptr< OptionDetails > &details)
 
void parse_no_value (const std::shared_ptr< OptionDetails > &details)
 

Detailed Description

Definition at line 1394 of file cxxopts.hpp.

Constructor & Destructor Documentation

◆ OptionParser()

cxxopts::OptionParser::OptionParser ( const OptionMap options,
const PositionalList positional,
bool  allow_unrecognised 
)
inline

Definition at line 1396 of file cxxopts.hpp.

Member Function Documentation

◆ add_to_option()

void cxxopts::OptionParser::add_to_option ( const std::shared_ptr< OptionDetails > &  value,
const std::string &  arg 
)
inline

Definition at line 1787 of file cxxopts.hpp.

References cxxopts::value().

Referenced by consume_positional().

◆ checked_parse_arg()

void cxxopts::OptionParser::checked_parse_arg ( int  argc,
const char *const *  argv,
int &  current,
const std::shared_ptr< OptionDetails > &  value,
const std::string &  name 
)
inline

Definition at line 1767 of file cxxopts.hpp.

References parse_option(), and cxxopts::value().

Referenced by parse().

◆ consume_positional()

bool cxxopts::OptionParser::consume_positional ( const std::string &  a,
PositionalListIterator next 
)
inline

Definition at line 1796 of file cxxopts.hpp.

References add_to_option().

Referenced by parse().

◆ parse()

ParseResult cxxopts::OptionParser::parse ( int  argc,
const char *const *  argv 
)
inline

◆ parse_default()

void cxxopts::OptionParser::parse_default ( const std::shared_ptr< OptionDetails > &  details)
inline

Definition at line 1741 of file cxxopts.hpp.

Referenced by parse().

◆ parse_no_value()

void cxxopts::OptionParser::parse_no_value ( const std::shared_ptr< OptionDetails > &  details)
inline

Definition at line 1750 of file cxxopts.hpp.

Referenced by parse().

◆ parse_option()

void cxxopts::OptionParser::parse_option ( const std::shared_ptr< OptionDetails > &  value,
const std::string &  name,
const std::string &  arg = "" 
)
inline

Definition at line 1756 of file cxxopts.hpp.

References cxxopts::value().

Referenced by checked_parse_arg(), and parse().


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