An topology point is represented by its coordinates.
C
is the type of coordinates.R
is a type storing all the coordinates of the point.
By default, in order to store the coordinates in all dimensions, we use shared_object<std::vector<C>
>. For further explanations,
we can see the page for this structure in the
documentation.
Definition at line 44 of file point.h.
Public Types | |
typedef unsigned | size_type |
typedef ReferTo< R >::value_type::iterator | iterator |
typedef ReferTo< R >::value_type::const_iterator | const_iterator |
typedef ReferTo< C >::value_type | coeff_t |
Public Member Functions | |
point () | |
~point () | |
point (const R &r) | |
point (const point< C, R > &P) | |
point (unsigned d, C *t) | |
point (unsigned d, char *str) | |
point (unsigned d) | |
point (const C *b, const C *e) | |
point (const coeff_t &x, const coeff_t &y) | |
point (const coeff_t &x, const coeff_t &y, const coeff_t &z) | |
ReferTo< R >::value_type::size_type | size () const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
void | resize (int d) |
C | operator[] (unsigned i) const |
C & | operator[] (unsigned i) |
bool | operator== (const point< C, R > &p) const |
bool | operator!= (const point< C, R > &p) |
point< C, R > | operator= (const point< C, R > &p) |
point< C, R > | operator+ (point< C, R > &p) const |
point< C, R > | operator+= (point< C, R > &p) |
point< C, R > | operator- (point< C, R > &p) const |
point< C, R > | operator-= (point< C, R > &p) |
point< C, R > | operator- () const |
point< C, R > | operator+ () const |
point< C, R > | operator * (C cte) const |
point< C, R > | operator/ (C cte) const |
bool | operator< (const point< C, R > &p) const |
Public Attributes | |
R | data |
Friends | |
point< C, R > | operator * (C cte, point< C, R > &p) |
point< C, R > | operator/ (C cte, point< C, R > &p) |
typedef ReferTo<C>::value_type topology::point< C, R >::coeff_t |
topology::point< C, R >::point | ( | ) |
The default constructor.
Definition at line 59 of file point.h.
Referenced by topology::point< C, R >::operator *(), topology::point< C, R >::operator+(), topology::point< C, R >::operator-(), and topology::point< C, R >::operator/().
topology::point< C, R >::~point | ( | ) |
topology::point< C, R >::point | ( | const R & | r | ) |
topology::point< C, R >::point | ( | const point< C, R > & | P | ) |
topology::point< C, R >::point | ( | unsigned | d, | |
C * | t | |||
) |
d | the dimension of the point. | |
t | it represents all the coordinates of the point. |
d
, and a table t
with its coordinates.
Definition at line 81 of file point.h.
References topology::point< C, R >::data.
topology::point< C, R >::point | ( | unsigned | d, | |
char * | str | |||
) |
Construct an topology point by giving its dimensional d
, and a char* str
with its coordinates.
Definition at line 93 of file point.h.
References topology::point< C, R >::data.
topology::point< C, R >::point | ( | unsigned | d | ) |
Construction of a point of size d
.
Definition at line 101 of file point.h.
References topology::point< C, R >::data.
topology::point< C, R >::point | ( | const C * | b, | |
const C * | e | |||
) |
b | the first element in the table. | |
e | the last element in the table. |
b
and the last element e
in a table.
Definition at line 113 of file point.h.
References topology::point< C, R >::data.
topology::point< C, R >::point | ( | const coeff_t & | x, | |
const coeff_t & | y | |||
) |
Construct an topology point in 2-dimensional by giving its 2 coordinates.
Definition at line 125 of file point.h.
References topology::point< C, R >::data.
topology::point< C, R >::point | ( | const coeff_t & | x, | |
const coeff_t & | y, | |||
const coeff_t & | z | |||
) |
Construct an topology point in 3-dimensional by giving its 3 coordinates.
Definition at line 136 of file point.h.
References topology::point< C, R >::data.
ReferTo<R>::value_type::size_type topology::point< C, R >::size | ( | ) | const |
Definition at line 147 of file point.h.
References topology::point< C, R >::data.
Referenced by TopSbdSurf3d< C, CELL, MSLV >::build_mesh(), TopSbdSurf3d< C, CELL, MSLV >::computeinter_face(), topology::point< C, R >::operator *(), topology::point< C, R >::operator+(), topology::point< C, R >::operator+=(), topology::point< C, R >::operator-(), topology::point< C, R >::operator-=(), topology::point< C, R >::operator/(), topology::point< C, R >::operator<(), topology::point< C, R >::operator=(), topology::point< C, R >::operator[](), and topology::ptcmp().
void topology::point< C, R >::resize | ( | int | d | ) |
d | the new size of the point. |
Definition at line 162 of file point.h.
References topology::point< C, R >::data.
C topology::point< C, R >::operator[] | ( | unsigned | i | ) | const |
Access to the operator[]
Definition at line 166 of file point.h.
References topology::point< C, R >::data, and topology::point< C, R >::size().
C& topology::point< C, R >::operator[] | ( | unsigned | i | ) |
The operator[]
Definition at line 170 of file point.h.
References topology::point< C, R >::data, and topology::point< C, R >::size().
bool topology::point< C, R >::operator== | ( | const point< C, R > & | p | ) | const |
bool topology::point< C, R >::operator!= | ( | const point< C, R > & | p | ) |
point<C,R> topology::point< C, R >::operator= | ( | const point< C, R > & | p | ) |
The operator=
Definition at line 179 of file point.h.
References topology::point< C, R >::data, and topology::point< C, R >::size().
point<C,R> topology::point< C, R >::operator+ | ( | point< C, R > & | p | ) | const |
The operator+
Definition at line 188 of file point.h.
References topology::point< C, R >::data, topology::point< C, R >::point(), and topology::point< C, R >::size().
point<C,R> topology::point< C, R >::operator+= | ( | point< C, R > & | p | ) |
The operator+=
Definition at line 198 of file point.h.
References topology::point< C, R >::data, and topology::point< C, R >::size().
point<C,R> topology::point< C, R >::operator- | ( | point< C, R > & | p | ) | const |
The operator-
Definition at line 207 of file point.h.
References topology::point< C, R >::data, topology::point< C, R >::point(), and topology::point< C, R >::size().
point<C,R> topology::point< C, R >::operator-= | ( | point< C, R > & | p | ) |
The operator-=
Definition at line 217 of file point.h.
References topology::point< C, R >::data, and topology::point< C, R >::size().
point<C,R> topology::point< C, R >::operator- | ( | ) | const |
The unary operator-
Definition at line 226 of file point.h.
References topology::point< C, R >::data, topology::point< C, R >::point(), and topology::point< C, R >::size().
point<C,R> topology::point< C, R >::operator+ | ( | ) | const |
point<C,R> topology::point< C, R >::operator * | ( | C | cte | ) | const |
The operator*
Definition at line 238 of file point.h.
References topology::point< C, R >::data, topology::point< C, R >::point(), and topology::point< C, R >::size().
point<C,R> topology::point< C, R >::operator/ | ( | C | cte | ) | const |
The operator/
Definition at line 247 of file point.h.
References topology::point< C, R >::data, topology::point< C, R >::point(), and topology::point< C, R >::size().
bool topology::point< C, R >::operator< | ( | const point< C, R > & | p | ) | const |
p | a point. |
operator<
allows us to sort a list of points (p1<p2 according the lexicographic order).
Definition at line 267 of file point.h.
References topology::point< C, R >::data, and topology::point< C, R >::size().
R topology::point< C, R >::data |
The variable which represents the coordinates of the point.
Definition at line 56 of file point.h.
Referenced by topology::point< C, R >::begin(), topology::point< C, R >::end(), topology::point< C, R >::operator *(), topology::point< C, R >::operator!=(), topology::point< C, R >::operator+(), topology::point< C, R >::operator+=(), topology::point< C, R >::operator-(), topology::point< C, R >::operator-=(), topology::point< C, R >::operator/(), topology::point< C, R >::operator<(), topology::point< C, R >::operator=(), topology::operator>>(), topology::point< C, R >::operator[](), topology::point< C, R >::point(), topology::ptcmp(), topology::point< C, R >::resize(), and topology::point< C, R >::size().