geo_nearest.h
Go to the documentation of this file.
#ifndef _RHEOLEF_GEO_NEAREST_H
#define _RHEOLEF_GEO_NEAREST_H
//
// given x, search x* the closest point in the boundary of omega
// gives also K* in mesh such that x* in K*
//
// author: Pierre.Saramito@imag.fr
//
// date: 12 march 2012
//
#include "rheolef/point.h"
#include "rheolef/disarray.h"
namespace rheolef {
// forward declarations:
template <class T, class M> class geo_base_rep;
template <class T, class M> class geo_nearest_abstract_rep;
template <class T, class M>
class geo_nearest {
public:
typedef typename disarray<T,M>::size_type size_type;
geo_nearest() : _ptr(0) {}
geo_nearest(const geo_nearest<T,M>&) : _ptr(0) {}
geo_nearest<T,M>& operator= (const geo_nearest<T,M>&) { _ptr = 0; return *this; }
~geo_nearest();
static geo_nearest_abstract_rep<T,M>* make_ptr (const geo_base_rep<T,M>& omega);
size_type seq_nearest (
const geo_base_rep<T,M>& omega,
const point_basic<T>& x,
point_basic<T>& x_nearest) const;
size_type dis_nearest (
const geo_base_rep<T,M>& omega,
const point_basic<T>& x,
point_basic<T>& x_nearest) const;
// data:
protected:
mutable geo_nearest_abstract_rep<T,M>* _ptr;
};
} // namespace rheolef
#endif // _RHEOLEF_GEO_NEAREST_H
rheolef::point_basic
Definition: point.h:87
rheolef::geo_nearest::size_type
disarray< T, M >::size_type size_type
Definition: geo_nearest.h:43
rheolef::geo_base_rep
base class for M=sequential or distributed meshes representations
Definition: geo.h:528
rheolef::geo_nearest::dis_nearest
size_type dis_nearest(const geo_base_rep< T, M > &omega, const point_basic< T > &x, point_basic< T > &x_nearest) const
Definition: geo_nearest.cc:72
rheolef::geo_nearest::geo_nearest
geo_nearest(const geo_nearest< T, M > &)
Definition: geo_nearest.h:45
rheolef::geo_nearest::make_ptr
static geo_nearest_abstract_rep< T, M > * make_ptr(const geo_base_rep< T, M > &omega)
Definition: geo_nearest.cc:317
rheolef::geo_nearest::operator=
geo_nearest< T, M > & operator=(const geo_nearest< T, M > &)
Definition: geo_nearest.h:46
rheolef::geo_nearest::~geo_nearest
~geo_nearest()
Definition: geo_nearest.cc:54
rheolef::geo_nearest::geo_nearest
geo_nearest()
Definition: geo_nearest.h:44
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::geo_nearest::_ptr
geo_nearest_abstract_rep< T, M > * _ptr
Definition: geo_nearest.h:59
rheolef::disarray
see the disarray page for the full documentation
Definition: disarray.h:459
size_type
field::size_type size_type
Definition: branch.cc:425
rheolef::geo_nearest::seq_nearest
size_type seq_nearest(const geo_base_rep< T, M > &omega, const point_basic< T > &x, point_basic< T > &x_nearest) const
Definition: geo_nearest.cc:62
rheolef::geo_nearest
Definition: geo_nearest.h:41