|
SLIP
1.4
|
Difference of Point2D class, specialization of DPoint<CoordType,DIM> with DIM = 2. More...
#include <Array2d.hpp>

Public Types | |
| typedef DPoint2d< CoordType > | self |
| typedef DPoint< CoordType, 2 > | base |
| typedef CoordType | value_type |
| typedef value_type * | dpointer |
| typedef const value_type * | const_dpointer |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
| typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
| std::string | name () const |
| Returns the name of the class. More... | |
| std::size_t | dim () const |
| Returns the dimension of the DPoint. More... | |
| std::size_t | size () const |
| Returns the dimension of the DPoint. More... | |
| std::size_t | max_size () const |
| Returns the maximal size of the DPoint. More... | |
| bool | empty () const |
| Returns true if dimension of the DPoint is 0. More... | |
| const block< value_type, DIM > & | coord () const |
| Return the coordinates of the DPoint. More... | |
| void | swap (self &other) |
| Swaps two DPoint. More... | |
Constructors & Destructors | |
| DPoint2d () | |
| Constructs a DPoint2d. More... | |
| DPoint2d (const CoordType *array) | |
| Constructs a DPoint from a CoordType array. More... | |
| DPoint2d (const CoordType &dx1, const CoordType &dx2) | |
| Constructs a DPoint2d. More... | |
Element access operators | |
| void | dx1 (const CoordType &dx) |
| Accessor of the first coordinate of DPoint2d. More... | |
| CoordType & | dx1 () |
| Accessor/Mutator of the first coordinate of DPoint2d. More... | |
| const CoordType & | dx1 () const |
| Accessor/Mutator of the first coordinate of DPoint2d. More... | |
| void | dx2 (const CoordType &dx) |
| Accessor of the second coordinate of DPoint2d. More... | |
| CoordType & | dx2 () |
| Accessor/Mutator of the second coordinate of DPoint2d. More... | |
| const CoordType & | dx2 () const |
| Accessor/Mutator of the second coordinate of DPoint2d. More... | |
| void | set_coord (const CoordType &dx1, const CoordType &dx2) |
| Accessor/Mutator of the coordinates of DPoint2d. More... | |
Element access operators | |
| reference | operator[] (const std::size_t i) |
| Returns the i'th coordinate of the DPoint. More... | |
| const_reference | operator[] (const std::size_t i) const |
| Returns the i'th row of the DPoint. More... | |
Comparison operators | |
| bool | operator== (const self &other) const |
| compare two DPoint. More... | |
| bool | operator!= (const self &other) const |
| compare two DPoint. More... | |
Arithmetic operators | |
| self | operator- () const |
| negate all the coordinates of a DPoint More... | |
| self | operator- (const self &other) const |
| substract the coordinates of a two DPoint More... | |
| self & | operator+= (const self &other) |
| add the coordinates of a DPoint to the DPoint More... | |
| self | operator+ (const self &other) const |
| add the coordinates of a two DPoint More... | |
| self & | operator-= (const self &other) |
| substract the coordinates of a DPoint to the DPoint More... | |
Protected Attributes | |
| block< value_type, DIM > | coord_ |
| The coordinates of the dpoint are stored in this block. More... | |
Friends | |
| class | boost::serialization::access |
Difference of Point2D class, specialization of DPoint<CoordType,DIM> with DIM = 2.
| CoordType | Type of the coordinates of the DPoint2d |
Definition at line 129 of file Array2d.hpp.
| typedef DPoint<CoordType,2> slip::DPoint2d< T >::base |
Definition at line 107 of file DPoint2d.hpp.
|
inherited |
Definition at line 114 of file DPoint.hpp.
|
inherited |
Definition at line 116 of file DPoint.hpp.
|
inherited |
Definition at line 113 of file DPoint.hpp.
|
inherited |
Definition at line 121 of file DPoint.hpp.
|
inherited |
Definition at line 115 of file DPoint.hpp.
| typedef DPoint2d<CoordType> slip::DPoint2d< T >::self |
Definition at line 106 of file DPoint2d.hpp.
|
inherited |
Definition at line 112 of file DPoint.hpp.
|
inline |
Constructs a DPoint2d.
Definition at line 206 of file DPoint2d.hpp.
|
inline |
Constructs a DPoint from a CoordType array.
| array |
Definition at line 214 of file DPoint2d.hpp.
|
inline |
Constructs a DPoint2d.
Definition at line 220 of file DPoint2d.hpp.
|
inherited |
Return the coordinates of the DPoint.
|
inherited |
Returns the dimension of the DPoint.
|
inline |
Accessor of the first coordinate of DPoint2d.
| dx | first coordinate of the DPoint2d |
Definition at line 229 of file DPoint2d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of DPoint2d.
Definition at line 233 of file DPoint2d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of DPoint2d.
Definition at line 237 of file DPoint2d.hpp.
|
inline |
Accessor of the second coordinate of DPoint2d.
| dx | second coordinate of the DPoint2d |
Definition at line 241 of file DPoint2d.hpp.
|
inline |
Accessor/Mutator of the second coordinate of DPoint2d.
Definition at line 245 of file DPoint2d.hpp.
|
inline |
Accessor/Mutator of the second coordinate of DPoint2d.
Definition at line 249 of file DPoint2d.hpp.
|
inherited |
Returns true if dimension of the DPoint is 0.
|
inherited |
Returns the maximal size of the DPoint.
|
inline |
Returns the name of the class.
Definition at line 261 of file DPoint2d.hpp.
|
inherited |
compare two DPoint.
| other | DPoint to compare |
|
inherited |
add the coordinates of a two DPoint
| other | DPoint to add with |
|
inherited |
add the coordinates of a DPoint to the DPoint
| other | DPoint to add with |
|
inherited |
negate all the coordinates of a DPoint
|
inherited |
substract the coordinates of a two DPoint
| other | DPoint to add with |
|
inherited |
substract the coordinates of a DPoint to the DPoint
| other | DPoint to add with |
|
inherited |
compare two DPoint.
| other | DPoint to compare |
|
inherited |
Returns the i'th coordinate of the DPoint.
| i | index of the coordinate to return |
|
inherited |
Returns the i'th row of the DPoint.
| i | index of the coordinate to return |
|
inline |
Accessor/Mutator of the coordinates of DPoint2d.
| dx1 | First displacement coordinate. |
| dx2 | Second displacement coordinate. |
Definition at line 253 of file DPoint2d.hpp.
|
inherited |
Returns the dimension of the DPoint.
|
inherited |
Swaps two DPoint.
| other | DPoint to swap with |
|
friend |
Definition at line 187 of file DPoint2d.hpp.
|
protectedinherited |
The coordinates of the dpoint are stored in this block.
Definition at line 321 of file DPoint.hpp.
1.8.6