geo_locate.h
Go to the documentation of this file.
#ifndef _RHEOLEF_GEO_LOCATE_H
#define _RHEOLEF_GEO_LOCATE_H
//
// given x, search 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_locate_abstract_rep;
template <class T, class M>
class geo_locate {
public:
typedef typename disarray<T,M>::size_type size_type;
geo_locate() : _ptr(0) {}
geo_locate(const geo_locate<T,M>&) : _ptr(0) {}
geo_locate<T,M>& operator= (const geo_locate<T,M>&) { _ptr = 0; return *this; }
~geo_locate();
static geo_locate_abstract_rep<T,M>* make_ptr (const geo_base_rep<T,M>& omega);
size_type seq_locate (
const geo_base_rep<T,M>& omega,
const point_basic<T>& x,
size_type dis_ie_guest = std::numeric_limits<size_type>::max()) const;
size_type dis_locate (
const geo_base_rep<T,M>& omega,
const point_basic<T>& x,
size_type dis_ie_guest = std::numeric_limits<size_type>::max()) const;
// data:
protected:
mutable geo_locate_abstract_rep<T,M>* _ptr;
};
} // namespace rheolef
#endif // _RHEOLEF_GEO_LOCATE_H
size_type
field::size_type size_type
Definition: branch.cc:425
rheolef::disarray
see the disarray page for the full documentation
Definition: disarray.h:459
rheolef::geo_base_rep
base class for M=sequential or distributed meshes representations
Definition: geo.h:528
rheolef::geo_locate
Definition: geo_locate.h:40
rheolef::geo_locate::geo_locate
geo_locate()
Definition: geo_locate.h:43
rheolef::geo_locate::seq_locate
size_type seq_locate(const geo_base_rep< T, M > &omega, const point_basic< T > &x, size_type dis_ie_guest=std::numeric_limits< size_type >::max()) const
Definition: geo_locate.cc:218
rheolef::geo_locate::dis_locate
size_type dis_locate(const geo_base_rep< T, M > &omega, const point_basic< T > &x, size_type dis_ie_guest=std::numeric_limits< size_type >::max()) const
Definition: geo_locate.cc:228
rheolef::geo_locate::~geo_locate
~geo_locate()
Definition: geo_locate.cc:210
rheolef::geo_locate::make_ptr
static geo_locate_abstract_rep< T, M > * make_ptr(const geo_base_rep< T, M > &omega)
Definition: geo_locate.cc:296
rheolef::geo_locate::operator=
geo_locate< T, M > & operator=(const geo_locate< T, M > &)
Definition: geo_locate.h:45
rheolef::geo_locate::geo_locate
geo_locate(const geo_locate< T, M > &)
Definition: geo_locate.h:44
rheolef::geo_locate::size_type
disarray< T, M >::size_type size_type
Definition: geo_locate.h:42
rheolef::geo_locate::_ptr
geo_locate_abstract_rep< T, M > * _ptr
Definition: geo_locate.h:58
rheolef::point_basic
Definition: point.h:87
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37