Vector Optimized Library of Kernels
2.4
Architecture-tuned implementations of math kernels
|
|
Go to the documentation of this file.
23 #ifndef VOLK_VOLK_OPTION_HELPERS_H
24 #define VOLK_VOLK_OPTION_HELPERS_H
45 std::string t_shortform,
47 void (*t_callback)());
49 std::string t_shortform,
51 void (*t_callback)(
int));
53 std::string t_shortform,
55 void (*t_callback)(
float));
57 std::string t_shortform,
59 void (*t_callback)(
bool));
61 std::string t_shortform,
63 void (*t_callback)(std::string));
65 std::string t_shortform,
67 std::string t_printval);
81 bool present(std::string option_name);
85 void parse(
int argc,
char** argv);
90 std::string d_program_name;
91 std::vector<option_t> d_internal_list;
92 std::map<std::string, int> d_present_options;
96 #endif // VOLK_VOLK_OPTION_HELPERS_H
@ VOID_CALLBACK
Definition: volk_option_helpers.h:33
std::string printval
Definition: volk_option_helpers.h:73
void parse(int argc, char **argv)
Definition: volk_option_helpers.cc:121
std::string longform
Definition: volk_option_helpers.h:69
Definition: volk_option_helpers.h:42
option_t(std::string t_longform, std::string t_shortform, std::string t_msg, void(*t_callback)())
Definition: volk_option_helpers.cc:36
@ STRING_CALLBACK
Definition: volk_option_helpers.h:36
VOLK_API void
Call into a specific implementation given by name.
void help()
Definition: volk_option_helpers.cc:227
option_list(std::string program_name)
Definition: volk_option_helpers.cc:113
@ INT_CALLBACK
Definition: volk_option_helpers.h:34
std::string msg
Definition: volk_option_helpers.h:71
std::string shortform
Definition: volk_option_helpers.h:70
@ FLOAT_CALLBACK
Definition: volk_option_helpers.h:37
VOLK_OPTYPE option_type
Definition: volk_option_helpers.h:72
bool present(std::string option_name)
Definition: volk_option_helpers.cc:218
VOLK_OPTYPE
Definition: volk_option_helpers.h:32
void add(option_t opt)
Definition: volk_option_helpers.cc:119
@ STRING
Definition: volk_option_helpers.h:38
@ BOOL_CALLBACK
Definition: volk_option_helpers.h:35
Definition: volk_option_helpers.h:78
void(* callback)()
Definition: volk_option_helpers.h:74