30 #ifndef FLANN_PARAMS_H_
31 #define FLANN_PARAMS_H_
63 SearchParams(
int checks_ = 32,
float eps_ = 0.0,
bool sorted_ =
true ) :
97 IndexParams::const_iterator it =
params.find(
name);
99 return it->second.cast<T>();
102 return default_value;
109 IndexParams::const_iterator it =
params.find(
name);
111 return it->second.cast<T>();
114 throw FLANNException(std::string(
"Missing parameter '")+
name+std::string(
"' in the parameters given"));
120 IndexParams::const_iterator it;
123 std::cout << it->first <<
" : " << it->second <<
std::endl;
cmdLineReadable * params[]
#define SMALL_POLICY(TYPE)
Specializations for small types.
QTextStream & endl(QTextStream &stream)
T get_param(const IndexParams ¶ms, std::string name, const T &default_value)
void print_params(const IndexParams ¶ms)
bool has_param(const IndexParams ¶ms, std::string name)
std::map< std::string, any > IndexParams
SearchParams(int checks_=32, float eps_=0.0, bool sorted_=true)