SLIP
1.4
|
This is a point4d class, a specialized version of Point<CoordType,DIM> with DIM = 4. More...
#include <GenericMultiComponent4d.hpp>
Public Types | |
typedef Point4d< CoordType > | self |
typedef slip::Point< CoordType, 4 > | base |
typedef CoordType | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef DPoint< CoordType, DIM > | dpoint_type |
typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
std::string | name () const |
Returns the name of the class. More... | |
self | operator- () const |
negate all the coordinates of a Point More... | |
std::size_t | dim () const |
Returns the dimension of the Point. More... | |
std::size_t | size () const |
Returns the dimension of the Point. More... | |
std::size_t | max_size () const |
Returns the maximal size of the Point. More... | |
bool | empty () const |
Returns true if dimension of the Point is 0. More... | |
const block< value_type, DIM > & | coord () const |
Return the coordinates of the Point. More... | |
block< value_type, DIM > & | coord () |
Return the coordinates of the Point. More... | |
void | swap (self &other) |
Swaps two Point. More... | |
Constructors & Destructors | |
Point4d () | |
Constructs a Point4d. More... | |
Point4d (const CoordType *array) | |
Constructs a Point from a CoordType array. More... | |
Point4d (const CoordType &x1, const CoordType &x2, const CoordType &x3, const CoordType &x4) | |
Constructs a Point4d. More... | |
Element access operators | |
void | x1 (const CoordType &x) |
Accessor of the first coordinate of Point4d. More... | |
CoordType & | x1 () |
Accessor/Mutator of the first coordinate of Point4d. More... | |
const CoordType & | x1 () const |
Accessor/Mutator of the first coordinate of Point4d. More... | |
void | x2 (const CoordType &x) |
Accessor of the second coordinate of Point4d. More... | |
CoordType & | x2 () |
Accessor/Mutator of the second coordinate of Point4d. More... | |
const CoordType & | x2 () const |
Accessor/Mutator of the second coordinate of Point4d. More... | |
void | x3 (const CoordType &x) |
Accessor of the third coordinate of Point4d. More... | |
CoordType & | x3 () |
Accessor/Mutator of the third coordinate of Point4d. More... | |
const CoordType & | x3 () const |
Accessor/Mutator of the third coordinate of Point4d. More... | |
void | x4 (const CoordType &x) |
Accessor of the fourth coordinate of Point4d. More... | |
CoordType & | x4 () |
Accessor/Mutator of the fourth coordinate of Point4d. More... | |
const CoordType & | x4 () const |
Accessor/Mutator of the fourth coordinate of Point4d. More... | |
Assignment method | |
self & | operator= (const base &p) |
Assign a Point. Assign elements of Point in a Point4d. More... | |
Element access operators | |
reference | operator[] (const std::size_t i) |
Returns the i'th coordinate of the Point. More... | |
const_reference | operator[] (const std::size_t i) const |
Returns the i'th row of the Point. More... | |
Comparison operators | |
bool | operator== (const self &other) const |
compare two Point. More... | |
bool | operator!= (const self &other) const |
compare two Point. More... | |
Arithmetic operators | |
self | operator- (const dpoint_type &dp) const |
translate a point considering the deplacement a dp More... | |
dpoint_type | operator- (const self &other) const |
compute the difference between two points More... | |
self & | operator+= (const dpoint_type &dp) |
Assign a Point to this point plus a deplacement. More... | |
self | operator+ (const dpoint_type &dp) const |
translate a point considering the deplacement a dp More... | |
self & | operator-= (const dpoint_type &dp) |
Assign a Point to this point minus a deplacement. More... | |
Static Public Attributes | |
static const std::size_t | SIZE |
Protected Attributes | |
block< value_type, DIM > | coord_ |
The coordinates of the point are stored in this block. More... | |
Friends | |
class | boost::serialization::access |
This is a point4d class, a specialized version of Point<CoordType,DIM> with DIM = 4.
CoordType | Type of the coordinates of the Point4d |
Definition at line 115 of file GenericMultiComponent4d.hpp.
typedef slip::Point<CoordType,4> slip::Point4d< Block >::base |
Definition at line 106 of file Point4d.hpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
typedef Point4d<CoordType> slip::Point4d< Block >::self |
Definition at line 105 of file Point4d.hpp.
|
inherited |
|
inline |
Constructs a Point4d.
Definition at line 278 of file Point4d.hpp.
|
inline |
Constructs a Point from a CoordType array.
array |
Definition at line 288 of file Point4d.hpp.
|
inline |
|
inherited |
Return the coordinates of the Point.
|
inherited |
Return the coordinates of the Point.
|
inherited |
Returns the dimension of the Point.
|
inherited |
Returns true if dimension of the Point is 0.
|
inherited |
Returns the maximal size of the Point.
|
inline |
Returns the name of the class.
Definition at line 357 of file Point4d.hpp.
|
inherited |
compare two Point.
other | Point to compare |
|
inherited |
translate a point considering the deplacement a dp
dp | deplacement |
|
inherited |
Assign a Point to this point plus a deplacement.
dp | deplacement |
|
inherited |
negate all the coordinates of a Point
|
inherited |
translate a point considering the deplacement a dp
dp | deplacement |
|
inherited |
compute the difference between two points
other | Point |
|
inherited |
Assign a Point to this point minus a deplacement.
dp | deplacement |
|
inline |
|
inherited |
compare two Point.
other | Point to compare |
|
inherited |
Returns the i'th coordinate of the Point.
i | index of the coordinate to return |
|
inherited |
Returns the i'th row of the Point.
i | index of the coordinate to return |
|
inherited |
Returns the dimension of the Point.
|
inherited |
Swaps two Point.
other | Point to swap with |
|
inline |
Accessor of the first coordinate of Point4d.
x | the first coordinate of the Point4d |
Definition at line 340 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of Point4d.
Definition at line 307 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of Point4d.
Definition at line 311 of file Point4d.hpp.
|
inline |
Accessor of the second coordinate of Point4d.
x | the second coordinate of the Point4d |
Definition at line 344 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the second coordinate of Point4d.
Definition at line 315 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the second coordinate of Point4d.
Definition at line 319 of file Point4d.hpp.
|
inline |
Accessor of the third coordinate of Point4d.
x | the third coordinate of the Point4d |
Definition at line 348 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the third coordinate of Point4d.
Definition at line 324 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the third coordinate of Point4d.
Definition at line 328 of file Point4d.hpp.
|
inline |
Accessor of the fourth coordinate of Point4d.
x | the fourth coordinate of the Point4d |
Definition at line 352 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the fourth coordinate of Point4d.
Definition at line 332 of file Point4d.hpp.
|
inline |
Accessor/Mutator of the fourth coordinate of Point4d.
Definition at line 336 of file Point4d.hpp.
|
friend |
Definition at line 238 of file Point4d.hpp.
|
protectedinherited |
|
staticinherited |