29 |
|
|
30 |
#include <StreamCenter.hpp> |
#include <StreamCenter.hpp> |
31 |
|
|
|
#include <Reference.hpp> |
|
|
|
|
32 |
/** |
/** |
33 |
* @file Vertex.hpp |
* @file Vertex.hpp |
34 |
* @author Stephane Del Pino |
* @author Stephane Del Pino |
46 |
TinyVector<3> __x; |
TinyVector<3> __x; |
47 |
|
|
48 |
//! The Vertex reference. |
//! The Vertex reference. |
49 |
Reference __reference; |
size_t __reference; |
50 |
public: |
public: |
51 |
/*! Read-only acces to TinyVector<3> of coordinates. |
/*! Read-only acces to TinyVector<3> of coordinates. |
52 |
\todo Change the name of this member. |
\todo Change the name of this member. |
166 |
} |
} |
167 |
|
|
168 |
//! Access to the reference of the Vertex. |
//! Access to the reference of the Vertex. |
169 |
inline Reference& Ref() |
inline size_t& Ref() |
170 |
{ |
{ |
171 |
return __reference; |
return __reference; |
172 |
} |
} |
173 |
|
|
174 |
//! Read-only access to the reference of the Vertex. |
//! Read-only access to the reference of the Vertex. |
175 |
inline const Reference& Ref() const |
inline const size_t& Ref() const |
176 |
{ |
{ |
177 |
return __reference; |
return __reference; |
178 |
} |
} |
181 |
and without precising references |
and without precising references |
182 |
*/ |
*/ |
183 |
Vertex() |
Vertex() |
184 |
: __x(0,0,0) |
: __x(0,0,0), |
185 |
|
__reference(0) |
186 |
{ |
{ |
187 |
; |
; |
188 |
} |
} |
191 |
and without precising references |
and without precising references |
192 |
*/ |
*/ |
193 |
Vertex(const real_t& X, const real_t& Y, const real_t& Z) |
Vertex(const real_t& X, const real_t& Y, const real_t& Z) |
194 |
: __x(X,Y,Z) |
: __x(X,Y,Z), |
195 |
|
__reference(0) |
196 |
{ |
{ |
197 |
; |
; |
198 |
} |
} |
201 |
reference is \a Ref. |
reference is \a Ref. |
202 |
*/ |
*/ |
203 |
Vertex(const real_t& X, const real_t& Y, const real_t& Z, |
Vertex(const real_t& X, const real_t& Y, const real_t& Z, |
204 |
const Reference& reference) |
const size_t& reference) |
205 |
: __x(X,Y,Z), |
: __x(X,Y,Z), |
206 |
__reference(reference) |
__reference(reference) |
207 |
{ |
{ |
212 |
TinyVector<3> \a X without precising references |
TinyVector<3> \a X without precising references |
213 |
*/ |
*/ |
214 |
Vertex(const TinyVector<3> X) |
Vertex(const TinyVector<3> X) |
215 |
: __x(X) |
: __x(X), |
216 |
|
__reference(0) |
217 |
{ |
{ |
218 |
; |
; |
219 |
} |
} |
222 |
TinyVector<3> \a X and whose reference is \a Ref. |
TinyVector<3> \a X and whose reference is \a Ref. |
223 |
*/ |
*/ |
224 |
Vertex(const TinyVector<3> X, |
Vertex(const TinyVector<3> X, |
225 |
const Reference& reference) |
const size_t& reference) |
226 |
: __x(X), |
: __x(X), |
227 |
__reference(reference) |
__reference(reference) |
228 |
{ |
{ |