FiReS
0.2.0
FiReS - Filter, Retrieval and Search
|
Container of the properties for query. More...
#include <SearchConfig.h>
Public Types | |
enum | TDistanceToQuerySet { DISTANCE_TO_AVERAGE_QUERY_OBJECT, MINIMUM_DISTANCE_TO_QUERY_OBJECTS } |
Type of distance used when multiple objects on the query set. More... | |
Public Member Functions | |
SearchConfig (TDistanceToQuerySet distanceToQueryType_=DISTANCE_TO_AVERAGE_QUERY_OBJECT) | |
void | add (const std::string &label, Comparer *comparer=nullptr, Averager *averager=nullptr, Normalizer *normalizer=nullptr, float weight=1.0f) |
Adds a new property to the container. More... | |
Comparer * | comparer (const std::string &label) |
Averager * | averager (const std::string &label) |
Normalizer * | normalizer (const std::string &label) |
TDistanceToQuerySet & | distanceToQueryType (void) |
std::map< std::string, QueryPropertyData > & | properties (void) |
Objects & | queryObjects (void) |
std::string & | resultsPropertyLabel (void) |
void | clearQueryObjects (void) |
void | clearProperties (void) |
void | clear (void) |
Protected Attributes | |
std::map< std::string, QueryPropertyData > | _propertiesConfig |
Configuration for each property. | |
Objects | _queryObjects |
Query objects. | |
TDistanceToQuerySet | _distanceToQueryType |
std::string | _resultsPropertyLabel |
Container of the properties for query.
It holds a map for the properties. The key of the map is a string which represents the name of the property
Definition at line 116 of file SearchConfig.h.
Type of distance used when multiple objects on the query set.
Definition at line 123 of file SearchConfig.h.
void fires::SearchConfig::add | ( | const std::string & | label, |
Comparer * | comparer = nullptr , |
||
Averager * | averager = nullptr , |
||
Normalizer * | normalizer = nullptr , |
||
float | weight = 1.0f |
||
) |
Adds a new property to the container.
label | is the name of the property and the key to be used afterwards |
comparer | pointer to comparer to ve used |
averager | pointer to averager to ve used |
normalizer | pointer to the normalizer to ve used |
weight | weight of this property |
comparer | pointer to the comparer object to be used with this property |