Class comm_option_fptr (o2scl)

O2scl : Class List

class comm_option_fptr : public o2scl::comm_option_funct

Function pointer for o2scl::cli command function.

Public Functions

inline comm_option_fptr(int (*fp)(std::vector<std::string>&, bool))

Create from a member function pointer from the specified class.

inline virtual ~comm_option_fptr()
inline virtual int operator()(std::vector<std::string> &cstr, bool itive_com)

The basic function called by o2scl::cli.

Protected Functions

inline comm_option_fptr &operator=(const comm_option_fptr &f)

Copy constructor.

Protected Attributes

int (*fptr)(std::vector<std::string> &cstr, bool itive_com)

The pointer to the member function.