Defines | Functions
contrib/mul/mbl/mbl_clusters.txx File Reference

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.

Detailed Description

Class to record clusters of data, for faster neighbour finding.

Author:
Tim Cootes

Definition in file mbl_clusters.txx.


Define Documentation

#define MBL_CLUSTERS_INSTANTIATE (   T,
 
)
Value:
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.


Function Documentation

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.

template<class T , class D >
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.

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.

Definition at line 442 of file mbl_clusters.txx.

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.

Definition at line 435 of file mbl_clusters.txx.