SLIP
1.4
|
Difference of Point1D class, specialization of DPoint<CoordType,DIM> with DIM = 1. More...
#include <DPoint1d.hpp>
Public Types | |
typedef DPoint1d< CoordType > | self |
typedef DPoint< CoordType, 1 > | 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 | |
DPoint1d () | |
Constructs a DPoint1d. More... | |
DPoint1d (const CoordType &dx1) | |
Constructs a DPoint1d. More... | |
Element access operators | |
void | dx1 (const CoordType &dx) |
Accessor of the first coordinate of DPoint1d. More... | |
CoordType & | dx1 () |
Accessor/Mutator of the first coordinate of DPoint1d. More... | |
const CoordType & | dx1 () const |
Accessor/Mutator of the first coordinate of DPoint1d. 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 Point1D class, specialization of DPoint<CoordType,DIM> with DIM = 1.
CoordType | Type of the coordinates of the DPoint1d |
Definition at line 101 of file DPoint1d.hpp.
typedef DPoint<CoordType,1> slip::DPoint1d< CoordType >::base |
Definition at line 105 of file DPoint1d.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 DPoint1d<CoordType> slip::DPoint1d< CoordType >::self |
Definition at line 104 of file DPoint1d.hpp.
|
inherited |
Definition at line 112 of file DPoint.hpp.
|
inline |
Constructs a DPoint1d.
Definition at line 173 of file DPoint1d.hpp.
|
inline |
Constructs a DPoint1d.
dx1 | first coordinate of the DPoint1d |
Definition at line 180 of file DPoint1d.hpp.
|
inherited |
Return the coordinates of the DPoint.
|
inherited |
Returns the dimension of the DPoint.
|
inline |
Accessor of the first coordinate of DPoint1d.
dx | first coordinate of the minimal point p1 |
Definition at line 191 of file DPoint1d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of DPoint1d.
Definition at line 187 of file DPoint1d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of DPoint1d.
Definition at line 195 of file DPoint1d.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 200 of file DPoint1d.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 |
|
inherited |
Returns the dimension of the DPoint.
|
inherited |
Swaps two DPoint.
other | DPoint to swap with |
|
friend |
Definition at line 154 of file DPoint1d.hpp.
|
protectedinherited |
The coordinates of the dpoint are stored in this block.
Definition at line 321 of file DPoint.hpp.