Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::MethodCommandLineOption< T > Class Template Reference

#include <cmdline.h>

Inheritance diagram for Realm::MethodCommandLineOption< T >:
[legend]
Collaboration diagram for Realm::MethodCommandLineOption< T >:
[legend]

Public Member Functions

 MethodCommandLineOption (const std::string &_optname, bool _keep, T *_target, bool(T::*_method)(const std::string &))
virtual int parse_argument (std::vector< std::string > &cmdline, std::vector< std::string >::iterator &pos)
virtual int parse_argument (int &pos, int argc, const char *argv[])
Public Member Functions inherited from Realm::CommandLineOption
 CommandLineOption (const std::string &_optname, bool _keep)
virtual ~CommandLineOption (void)
virtual bool match (const std::string &s)
virtual bool keep_arg (void) const

Protected Attributes

T * target
bool(T::* method )(const std::string &)
Protected Attributes inherited from Realm::CommandLineOption
std::string optname
bool keep

Constructor & Destructor Documentation

◆ MethodCommandLineOption()

template<typename T>
Realm::MethodCommandLineOption< T >::MethodCommandLineOption ( const std::string & _optname,
bool _keep,
T * _target,
bool(T::* _method )(const std::string &) )

Member Function Documentation

◆ parse_argument() [1/2]

template<typename T>
virtual int Realm::MethodCommandLineOption< T >::parse_argument ( int & pos,
int argc,
const char * argv[] )
virtual

◆ parse_argument() [2/2]

template<typename T>
virtual int Realm::MethodCommandLineOption< T >::parse_argument ( std::vector< std::string > & cmdline,
std::vector< std::string >::iterator & pos )
virtual

Member Data Documentation

◆ method

template<typename T>
bool(T::* Realm::MethodCommandLineOption< T >::method) (const std::string &)
protected

◆ target

template<typename T>
T* Realm::MethodCommandLineOption< T >::target
protected

The documentation for this class was generated from the following file:
  • /home/runner/work/realm/realm/realm-src/src/realm/cmdline.h