Class comm_option_mfptr (o2scl)

O2scl : Class List

template<class tclass>
class comm_option_mfptr : public o2scl::comm_option_funct

Member function pointer for o2scl::cli command function.

Public Functions

inline comm_option_mfptr(tclass *tp, int (tclass::* fp)(std::vector<std::string>&, bool))

Create from a member function pointer from the specified class.

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

The basic function called by o2scl::cli.

Protected Functions

inline comm_option_mfptr(const comm_option_mfptr &f)

Copy constructor.

inline comm_option_mfptr &operator=(const comm_option_mfptr &f)

Copy constructor.

Protected Attributes

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

The pointer to the member function.

tclass *tptr

The pointer to the class.