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

Public Types | |
| 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 Point< CoordType, DIM > | self |
| typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
| 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 | |
| Point () | |
| Default constructor. More... | |
| Point (const self &other) | |
| Constructs a copy of the Point rhs. More... | |
| Point (const CoordType *array) | |
| Constructs a Point from a CoordType array. More... | |
Assignment operators and methods | |
| self & | operator= (const self &other) |
| Assign a Point. 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) |
| 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... | |
| 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... | |
Static Public Attributes | |
| static const std::size_t | SIZE = DIM |
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 point 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 Point to the ouput stream. More... | |
Define an abstract Point structure.
| typedef const value_type* slip::Point< CoordType, DIM >::const_pointer |
| typedef const value_type& slip::Point< CoordType, DIM >::const_reference |
| typedef DPoint<CoordType,DIM> slip::Point< CoordType, DIM >::dpoint_type |
| typedef std::random_access_iterator_tag slip::Point< CoordType, DIM >::iterator_category |
| typedef value_type* slip::Point< CoordType, DIM >::pointer |
| typedef value_type& slip::Point< CoordType, DIM >::reference |
| typedef Point<CoordType,DIM> slip::Point< CoordType, DIM >::self |
| typedef CoordType slip::Point< CoordType, DIM >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
friend |
|
friend |
|
protected |
|
static |
1.8.6