incremental_query Class Reference

#include <idcluster.h>

Collaboration diagram for incremental_query:

Collaboration graph
[legend]

List of all members.

Classes

struct  ranked_cluster

Public Types

typedef std::set< ranked_clusterranked_cluster_set
typedef
ranked_cluster_set::iterator 
iterator

Public Member Functions

 incremental_query (id_cluster_collection *db)
 Constructor. One option is to use the create_incremental_query() of visual_database.
void modify (unsigned id, int amount=1)
 Update the query. The amount can be negative for removal.
void set (id_cluster *c)
 Set the query to c.
iterator sort_results (unsigned max_results=1)
iterator sort_results_min_ratio (float ratio)
iterator begin ()
iterator end ()
void clear ()
id_clusterget_best (float *score)
id_cluster_collection::query_flags get_flags ()
void set_all_flags (id_cluster_collection::query_flags flag)

Public Attributes

ranked_cluster_set results
cluster_score_map scores
id_cluster query_cluster
id_cluster_collectiondatabase
int version

Protected Attributes

int flags


Detailed Description

Definition at line 145 of file idcluster.h.


Member Typedef Documentation

typedef ranked_cluster_set::iterator incremental_query::iterator

Definition at line 160 of file idcluster.h.

Definition at line 159 of file idcluster.h.


Constructor & Destructor Documentation

incremental_query::incremental_query ( id_cluster_collection db  ) 

Constructor. One option is to use the create_incremental_query() of visual_database.

Definition at line 693 of file idcluster.cpp.

References id_cluster_collection::version, and version.


Member Function Documentation

iterator incremental_query::begin (  )  [inline]

void incremental_query::clear (  ) 

iterator incremental_query::end (  )  [inline]

id_cluster * incremental_query::get_best ( float *  score  ) 

Definition at line 887 of file idcluster.cpp.

References database, results, and sort_results().

Referenced by VSView::timerEvent().

id_cluster_collection::query_flags incremental_query::get_flags (  )  [inline]

Definition at line 189 of file idcluster.h.

References database.

void incremental_query::modify ( unsigned  id,
int  amount = 1 
)

void incremental_query::set ( id_cluster c  ) 

Set the query to c.

Incremental or full query is done, depending on which one is faster.

Definition at line 830 of file idcluster.cpp.

References vecmap< _Key, _Data, _Compare >::begin(), clear(), database, vecmap< _Key, _Data, _Compare >::end(), id_cluster::histo, modify(), query_cluster, vecmap< _Key, _Data, _Compare >::reserve(), id_cluster_collection::version, and version.

Referenced by update_query_with_frame().

void incremental_query::set_all_flags ( id_cluster_collection::query_flags  flag  )  [inline]

Definition at line 192 of file idcluster.h.

References clear(), database, and id_cluster_collection::set_query_rules().

incremental_query::iterator incremental_query::sort_results ( unsigned  max_results = 1  ) 

incremental_query::iterator incremental_query::sort_results_min_ratio ( float  ratio  ) 


Member Data Documentation

int incremental_query::flags [protected]

Definition at line 196 of file idcluster.h.

Definition at line 161 of file idcluster.h.

Referenced by begin(), clear(), end(), get_best(), sort_results(), and sort_results_min_ratio().

Definition at line 184 of file idcluster.h.

Referenced by clear(), modify(), sort_results(), and sort_results_min_ratio().

Definition at line 194 of file idcluster.h.

Referenced by clear(), incremental_query(), init_query_with_frame(), and set().


The documentation for this class was generated from the following files:

Generated on Tue Mar 30 15:53:25 2010 for Polyora by  doxygen 1.5.9