Class to record clusters of data, for faster neighbour finding. More...
#include "mbl_clusters.h"#include <vcl_iostream.h>#include <vcl_cassert.h>#include <vcl_algorithm.h>#include <vsl/vsl_binary_io.h>#include <vsl/vsl_vector_io.h>Go to the source code of this file.
Defines | |
| #define | mbl_clusters_txx_ |
| #define | MBL_CLUSTERS_INSTANTIATE(T, D) |
Functions | |
| unsigned | add_cluster (unsigned i, double r=0.0) |
| Append new object with index i (data()[i]), creating a new cluster. | |
| template<class T , class D > | |
| void | vsl_b_write (vsl_b_ostream &bfs, const mbl_clusters< T, D > &c) |
| Binary file stream output operator for class reference. | |
| template<class T , class D > | |
| void | vsl_b_read (vsl_b_istream &bfs, mbl_clusters< T, D > &c) |
| Binary file stream input operator for class reference. | |
| template<class T , class D > | |
| vcl_ostream & | operator<< (vcl_ostream &os, const mbl_clusters< T, D > &c) |
| Stream output operator for class reference. | |
Class to record clusters of data, for faster neighbour finding.
Definition in file mbl_clusters.txx.
| #define MBL_CLUSTERS_INSTANTIATE | ( | T, | |
| D | |||
| ) |
template class mbl_clusters< T,D >; \ template void vsl_b_write(vsl_b_ostream& bfs, const mbl_clusters<T,D >& c); \ template void vsl_b_read(vsl_b_istream& bfs, mbl_clusters<T,D >& c); \ template vcl_ostream& operator<<(vcl_ostream& os,const mbl_clusters<T,D >& c)
Definition at line 456 of file mbl_clusters.txx.
| #define mbl_clusters_txx_ |
Definition at line 3 of file mbl_clusters.txx.
| unsigned add_cluster | ( | unsigned | i, |
| double | r = 0.0 |
||
| ) |
Append new object with index i (data()[i]), creating a new cluster.
Return index of resulting cluster, which is initialised with given radius.
| vcl_ostream& operator<< | ( | vcl_ostream & | os, |
| const mbl_clusters< T, D > & | c | ||
| ) |
Stream output operator for class reference.
Definition at line 449 of file mbl_clusters.txx.
| void vsl_b_read | ( | vsl_b_istream & | bfs, |
| mbl_clusters< T, D > & | c | ||
| ) |
Binary file stream input operator for class reference.
Definition at line 442 of file mbl_clusters.txx.
| void vsl_b_write | ( | vsl_b_ostream & | bfs, |
| const mbl_clusters< T, D > & | c | ||
| ) |
Binary file stream output operator for class reference.
Definition at line 435 of file mbl_clusters.txx.
1.7.5.1