Rheolef  7.1
an efficient C++ finite element environment
geo_locate.h
Go to the documentation of this file.
1 #ifndef _RHEOLEF_GEO_LOCATE_H
2 #define _RHEOLEF_GEO_LOCATE_H
3 //
24 // given x, search K in mesh such that x in K
25 //
26 // author: Pierre.Saramito@imag.fr
27 //
28 // date: 12 march 2012
29 //
30 #include "rheolef/point.h"
31 #include "rheolef/disarray.h"
32 
33 namespace rheolef {
34 
35 // forward declarations:
36 template <class T, class M> class geo_base_rep;
37 template <class T, class M> class geo_locate_abstract_rep;
38 
39 template <class T, class M>
40 class geo_locate {
41 public:
43  geo_locate() : _ptr(0) {}
45  geo_locate<T,M>& operator= (const geo_locate<T,M>&) { _ptr = 0; return *this; }
46  ~geo_locate();
47  static geo_locate_abstract_rep<T,M>* make_ptr (const geo_base_rep<T,M>& omega);
49  const geo_base_rep<T,M>& omega,
50  const point_basic<T>& x,
51  size_type dis_ie_guest = std::numeric_limits<size_type>::max()) const;
53  const geo_base_rep<T,M>& omega,
54  const point_basic<T>& x,
55  size_type dis_ie_guest = std::numeric_limits<size_type>::max()) const;
56 // data:
57 protected:
58  mutable geo_locate_abstract_rep<T,M>* _ptr;
59 };
60 
61 } // namespace rheolef
62 #endif // _RHEOLEF_GEO_LOCATE_H
rheolef::geo_locate::~geo_locate
~geo_locate()
Definition: geo_locate.cc:210
rheolef::point_basic
Definition: point.h:87
rheolef::geo_locate
Definition: geo_locate.h:40
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_base_rep
base class for M=sequential or distributed meshes representations
Definition: geo.h:528
rheolef::geo_locate::_ptr
geo_locate_abstract_rep< T, M > * _ptr
Definition: geo_locate.h:58
rheolef::geo_locate::geo_locate
geo_locate()
Definition: geo_locate.h:43
rheolef::geo_locate::geo_locate
geo_locate(const geo_locate< T, M > &)
Definition: geo_locate.h:44
rheolef::geo_locate::operator=
geo_locate< T, M > & operator=(const geo_locate< T, M > &)
Definition: geo_locate.h:45
rheolef::geo_locate::size_type
disarray< T, M >::size_type size_type
Definition: geo_locate.h:42
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
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::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_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