|
SLIP
1.4
|
Define an abstract DPoint structure. More...
#include <Box.hpp>

Public Types | |
| 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 DPoint< CoordType, DIM > | self |
| typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
| 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... | |
Assignment operators and methods | |
| self & | operator= (const self &other) |
| Assign a DPoint. 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) |
| 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... | |
| self | operator- (const self &other) const |
| substract the coordinates of a two DPoint More... | |
Protected Member Functions | |
| template<class Archive > | |
| void | save (Archive &ar, const unsigned int version) const |
| template<class Archive > | |
| void | load (Archive &ar, const unsigned int version) |
Protected Attributes | |
| block< value_type, DIM > | coord_ |
| The coordinates of the dpoint are stored in this block. More... | |
Friends | |
| class | boost::serialization::access |
i/o operators | |
| std::ostream & | operator<< (std::ostream &out, const self &p) |
| Write the DPoint to the ouput stream. More... | |
Constructors & Destructors | |
| DPoint (const self &other) | |
| Constructs a copy of the DPoint rhs. More... | |
| DPoint (const CoordType *array) | |
| Constructs a DPoint from a CoordType array. More... | |
| DPoint () | |
| Default constructor (protected to avoid default construction) More... | |
Define an abstract DPoint structure.
| typedef const value_type* slip::DPoint< CoordType, DIM >::const_dpointer |
Definition at line 114 of file DPoint.hpp.
| typedef const value_type& slip::DPoint< CoordType, DIM >::const_reference |
Definition at line 116 of file DPoint.hpp.
| typedef value_type* slip::DPoint< CoordType, DIM >::dpointer |
Definition at line 113 of file DPoint.hpp.
| typedef std::random_access_iterator_tag slip::DPoint< CoordType, DIM >::iterator_category |
Definition at line 121 of file DPoint.hpp.
| typedef value_type& slip::DPoint< CoordType, DIM >::reference |
Definition at line 115 of file DPoint.hpp.
| typedef DPoint<CoordType,DIM> slip::DPoint< CoordType, DIM >::self |
Definition at line 118 of file DPoint.hpp.
| typedef CoordType slip::DPoint< CoordType, DIM >::value_type |
Definition at line 112 of file DPoint.hpp.
|
inline |
|
inline |
Constructs a DPoint from a CoordType array.
| array |
Definition at line 357 of file DPoint.hpp.
|
inlineprotected |
Default constructor (protected to avoid default construction)
Definition at line 346 of file DPoint.hpp.
|
inline |
Return the coordinates of the DPoint.
Definition at line 408 of file DPoint.hpp.
|
inline |
Returns the dimension of the DPoint.
Definition at line 392 of file DPoint.hpp.
|
inline |
Returns true if dimension of the DPoint is 0.
Definition at line 404 of file DPoint.hpp.
|
inlineprotected |
Definition at line 331 of file DPoint.hpp.
|
inline |
Returns the maximal size of the DPoint.
Definition at line 400 of file DPoint.hpp.
|
inline |
compare two DPoint.
| other | DPoint to compare |
Definition at line 438 of file DPoint.hpp.
|
inline |
add the coordinates of a two DPoint
| other | DPoint to add with |
Definition at line 466 of file DPoint.hpp.
|
inline |
|
inline |
negate all the coordinates of a DPoint
Definition at line 445 of file DPoint.hpp.
|
inline |
substract the coordinates of a two DPoint
| other | DPoint to add with |
Definition at line 486 of file DPoint.hpp.
|
inline |
|
inline |
Assign a DPoint.
Assign elements of DPoint in other
| other | DPoint to get the values from. |
Definition at line 364 of file DPoint.hpp.
|
inline |
compare two DPoint.
| other | DPoint to compare |
Definition at line 431 of file DPoint.hpp.
|
inline |
Returns the i'th coordinate of the DPoint.
| i | index of the coordinate to return |
Definition at line 376 of file DPoint.hpp.
|
inline |
Returns the i'th row of the DPoint.
| i | index of the coordinate to return |
Definition at line 384 of file DPoint.hpp.
|
inlineprotected |
Definition at line 326 of file DPoint.hpp.
|
inline |
Returns the dimension of the DPoint.
Definition at line 396 of file DPoint.hpp.
|
inline |
|
friend |
Definition at line 324 of file DPoint.hpp.
|
friend |
Write the DPoint to the ouput stream.
| out | output stream |
| p | DPoint to write to the output stream |
Definition at line 422 of file DPoint.hpp.
|
protected |
The coordinates of the dpoint are stored in this block.
Definition at line 321 of file DPoint.hpp.
1.8.6