31 #ifndef _CLASSIC_FIELDS_MESH_H_
32 #define _CLASSIC_FIELDS_MESH_H_
34 namespace interpolation {
72 inline virtual ~Mesh();
138 friend bool operator==
140 friend bool operator!=
142 friend bool operator>=
144 friend bool operator<=
146 friend bool operator<
148 friend bool operator>
183 inline Iterator(std::vector<int> state,
const Mesh* mesh);
195 inline virtual void getPosition(
double* point)
const;
201 inline virtual std::vector<double>
getPosition()
const;
213 inline std::vector<int>
getState()
const;
255 friend bool operator==
257 friend bool operator!=
259 friend bool operator>=
261 friend bool operator<=
263 friend bool operator<
265 friend bool operator>
bool operator==(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
Mesh::Iterator operator-(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
virtual void addState(const Mesh::Iterator &it)
Base class for meshing routines.
std::vector< int > state_m
virtual Mesh::Iterator begin() const =0
virtual Mesh * dual() const =0
const Mesh * getMesh() const
virtual bool isGreater(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs) const =0
Mesh::Iterator & operator+=(Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
virtual Mesh::Iterator & addOne(Mesh::Iterator &lhs) const =0
friend Mesh::Iterator operator++(Mesh::Iterator &lhs, int)
Mesh::Iterator & operator--(Mesh::Iterator &lhs)
virtual Mesh::Iterator getNearest(const double *position) const =0
bool operator>(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
virtual int toInteger(const Mesh::Iterator &lhs) const =0
virtual void getPosition(const Mesh::Iterator &it, double *position) const =0
Mesh::Iterator operator+(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
virtual std::vector< double > getPosition() const
virtual bool isOutOfBounds() const
friend Mesh::Iterator operator--(Mesh::Iterator &lhs, int)
virtual Mesh::Iterator & subEquals(Mesh::Iterator &lhs, int difference) const =0
const Mesh::Iterator & operator=(const Mesh::Iterator &rhs)
friend Mesh::Iterator operator++(Mesh::Iterator &lhs, int)
bool operator<(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
virtual Mesh::Iterator & subOne(Mesh::Iterator &lhs) const =0
std::vector< int > getState() const
std::ostream & operator<<(std::ostream &out, const Mesh::Iterator &it)
Mesh::Iterator & operator-=(Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
virtual Mesh::Iterator end() const =0
bool operator!=(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
Mesh::Iterator & operator++(Mesh::Iterator &lhs)
virtual int getPositionDimension() const =0
virtual Mesh::Iterator & addEquals(Mesh::Iterator &lhs, int difference) const =0
bool operator<=(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
bool operator>=(const Mesh::Iterator &lhs, const Mesh::Iterator &rhs)
friend Mesh::Iterator operator--(Mesh::Iterator &lhs, int)