SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
slip::DPoint4d< CoordType > Class Template Reference

Difference of Point4D class, specialization of DPoint<CoordType,DIM> with DIM = 4. More...

#include <DPoint4d.hpp>

Inheritance diagram for slip::DPoint4d< CoordType >:
Inheritance graph

Public Types

typedef DPoint4d< CoordType > self
 
typedef slip::DPoint
< CoordType, 4 > 
base
 
typedef CoordType value_type
 
typedef value_typedpointer
 
typedef const value_typeconst_dpointer
 
typedef value_typereference
 
typedef const value_typeconst_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
 DPoint4d ()
 Constructs a DPoint4d. More...
 
 DPoint4d (const CoordType *array)
 Constructs a DPoint4d from a CoordType array. More...
 
 DPoint4d (const CoordType &dx1, const CoordType &dx2, const CoordType &dx3, const CoordType &dx4)
 Constructs a DPoint4d. More...
 
Element access operators
void dx1 (const CoordType &dx)
 Accessor of the first coordinate of DPoint4d. More...
 
CoordType & dx1 ()
 Accessor/Mutator of the first coordinate of DPoint4d. More...
 
const CoordType & dx1 () const
 Accessor/Mutator of the first coordinate of DPoint4d. More...
 
void dx2 (const CoordType &dx)
 Accessor of the second coordinate of DPoint4d. More...
 
CoordType & dx2 ()
 Accessor/Mutator of the second coordinate of DPoint4d. More...
 
const CoordType & dx2 () const
 Accessor/Mutator of the second coordinate of DPoint4d. More...
 
void dx3 (const CoordType &dx)
 Accessor of the third coordinate of DPoint4d. More...
 
CoordType & dx3 ()
 Accessor/Mutator of the third coordinate of DPoint4d. More...
 
const CoordType & dx3 () const
 Accessor/Mutator of the third coordinate of DPoint4d. More...
 
void dx4 (const CoordType &dx)
 Accessor of the fourth coordinate of DPoint4d. More...
 
CoordType & dx4 ()
 Accessor/Mutator of the fourth coordinate of DPoint4d. More...
 
const CoordType & dx4 () const
 Accessor/Mutator of the fourth coordinate of DPoint4d. More...
 
void set_coord (const CoordType &dx1, const CoordType &dx2, const CoordType &dx3, const CoordType &dx4)
 Accessor/Mutator of the coordinates of DPoint4d. 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...
 
selfoperator+= (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...
 
selfoperator-= (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
 

Detailed Description

template<typename CoordType>
class slip::DPoint4d< CoordType >

Difference of Point4D class, specialization of DPoint<CoordType,DIM> with DIM = 4.

Version
Fluex 1.0
Date
2013/07/01
Version
0.0.2
Date
2014/04/05
Since
1.4.0
Author
Denis Arrivault <denis.arrivault_AT_inria.fr>
Parameters
CoordTypeType of the coordinates of the DPoint4d

Definition at line 99 of file DPoint4d.hpp.

Member Typedef Documentation

template<typename CoordType>
typedef slip::DPoint<CoordType,4> slip::DPoint4d< CoordType >::base

Definition at line 103 of file DPoint4d.hpp.

typedef const value_type* slip::DPoint< CoordType, DIM >::const_dpointer
inherited

Definition at line 114 of file DPoint.hpp.

typedef const value_type& slip::DPoint< CoordType, DIM >::const_reference
inherited

Definition at line 116 of file DPoint.hpp.

typedef value_type* slip::DPoint< CoordType, DIM >::dpointer
inherited

Definition at line 113 of file DPoint.hpp.

typedef std::random_access_iterator_tag slip::DPoint< CoordType, DIM >::iterator_category
inherited

Definition at line 121 of file DPoint.hpp.

typedef value_type& slip::DPoint< CoordType, DIM >::reference
inherited

Definition at line 115 of file DPoint.hpp.

template<typename CoordType>
typedef DPoint4d<CoordType> slip::DPoint4d< CoordType >::self

Definition at line 102 of file DPoint4d.hpp.

typedef CoordType slip::DPoint< CoordType, DIM >::value_type
inherited

Definition at line 112 of file DPoint.hpp.

Constructor & Destructor Documentation

template<typename CoordType >
slip::DPoint4d< CoordType >::DPoint4d ( )
inline

Constructs a DPoint4d.

Definition at line 240 of file DPoint4d.hpp.

template<typename CoordType >
slip::DPoint4d< CoordType >::DPoint4d ( const CoordType *  array)
inline

Constructs a DPoint4d from a CoordType array.

Parameters
array

Definition at line 250 of file DPoint4d.hpp.

template<typename CoordType >
slip::DPoint4d< CoordType >::DPoint4d ( const CoordType &  dx1,
const CoordType &  dx2,
const CoordType &  dx3,
const CoordType &  dx4 
)
inline

Constructs a DPoint4d.

Parameters
dx1first coordinate of the DPoint4d
dx2second coordinate of the DPoint4d
dx3third coordinate of the DPoint4d
dx4fourth coordinate of the DPoint4d

Definition at line 257 of file DPoint4d.hpp.

Member Function Documentation

const block<value_type,DIM>& slip::DPoint< CoordType, DIM >::coord ( ) const
inherited

Return the coordinates of the DPoint.

std::size_t slip::DPoint< CoordType, DIM >::dim ( ) const
inherited

Returns the dimension of the DPoint.

Returns
the dimension (number of coordinates) of the DPoint
template<typename CoordType >
void slip::DPoint4d< CoordType >::dx1 ( const CoordType &  dx)
inline

Accessor of the first coordinate of DPoint4d.

Parameters
dxfirst coordinate of the DPoint2d

Definition at line 269 of file DPoint4d.hpp.

template<typename CoordType >
CoordType & slip::DPoint4d< CoordType >::dx1 ( )
inline

Accessor/Mutator of the first coordinate of DPoint4d.

Returns
reference to the first coordinate of the DPoint4d

Definition at line 273 of file DPoint4d.hpp.

template<typename CoordType >
const CoordType & slip::DPoint4d< CoordType >::dx1 ( ) const
inline

Accessor/Mutator of the first coordinate of DPoint4d.

Returns
reference to the first coordinate of the DPoint4d

Definition at line 277 of file DPoint4d.hpp.

template<typename CoordType >
void slip::DPoint4d< CoordType >::dx2 ( const CoordType &  dx)
inline

Accessor of the second coordinate of DPoint4d.

Parameters
dxsecond coordinate of the DPoint2d

Definition at line 281 of file DPoint4d.hpp.

template<typename CoordType >
CoordType & slip::DPoint4d< CoordType >::dx2 ( )
inline

Accessor/Mutator of the second coordinate of DPoint4d.

Returns
reference to the second coordinate of the DPoint4d

Definition at line 285 of file DPoint4d.hpp.

template<typename CoordType >
const CoordType & slip::DPoint4d< CoordType >::dx2 ( ) const
inline

Accessor/Mutator of the second coordinate of DPoint4d.

Returns
reference to the second coordinate of the DPoint4d

Definition at line 289 of file DPoint4d.hpp.

template<typename CoordType >
void slip::DPoint4d< CoordType >::dx3 ( const CoordType &  dx)
inline

Accessor of the third coordinate of DPoint4d.

Parameters
dxthird coordinate of the DPoint2d

Definition at line 293 of file DPoint4d.hpp.

template<typename CoordType >
CoordType & slip::DPoint4d< CoordType >::dx3 ( )
inline

Accessor/Mutator of the third coordinate of DPoint4d.

Returns
reference to the third coordinate of the DPoint4d

Definition at line 297 of file DPoint4d.hpp.

template<typename CoordType >
const CoordType & slip::DPoint4d< CoordType >::dx3 ( ) const
inline

Accessor/Mutator of the third coordinate of DPoint4d.

Returns
reference to the third coordinate of the DPoint4d

Definition at line 301 of file DPoint4d.hpp.

template<typename CoordType >
void slip::DPoint4d< CoordType >::dx4 ( const CoordType &  dx)
inline

Accessor of the fourth coordinate of DPoint4d.

Parameters
dxfourth coordinate of the DPoint2d

Definition at line 305 of file DPoint4d.hpp.

template<typename CoordType >
CoordType & slip::DPoint4d< CoordType >::dx4 ( )
inline

Accessor/Mutator of the fourth coordinate of DPoint4d.

Returns
reference to the fourth coordinate of the DPoint4d

Definition at line 309 of file DPoint4d.hpp.

template<typename CoordType >
const CoordType & slip::DPoint4d< CoordType >::dx4 ( ) const
inline

Accessor/Mutator of the fourth coordinate of DPoint4d.

Returns
reference to the fourth coordinate of the DPoint4d

Definition at line 313 of file DPoint4d.hpp.

bool slip::DPoint< CoordType, DIM >::empty ( ) const
inherited

Returns true if dimension of the DPoint is 0.

Returns
true if the dimension of the DPoint is 0, false else
std::size_t slip::DPoint< CoordType, DIM >::max_size ( ) const
inherited

Returns the maximal size of the DPoint.

Returns
the dimension (number of coordinates) of the DPoint
template<typename CoordType >
std::string slip::DPoint4d< CoordType >::name ( ) const
inline

Returns the name of the class.

Definition at line 332 of file DPoint4d.hpp.

bool slip::DPoint< CoordType, DIM >::operator!= ( const self other) const
inherited

compare two DPoint.

Parameters
otherDPoint to compare
Returns
true if the two dpoint don't have the same coordinates
self slip::DPoint< CoordType, DIM >::operator+ ( const self other) const
inherited

add the coordinates of a two DPoint

Parameters
otherDPoint to add with
Returns
a DPoint
self& slip::DPoint< CoordType, DIM >::operator+= ( const self other)
inherited

add the coordinates of a DPoint to the DPoint

Parameters
otherDPoint to add with
Returns
a DPoint
self slip::DPoint< CoordType, DIM >::operator- ( ) const
inherited

negate all the coordinates of a DPoint

Returns
a DPoint with negate coordinates
self slip::DPoint< CoordType, DIM >::operator- ( const self other) const
inherited

substract the coordinates of a two DPoint

Parameters
otherDPoint to add with
Returns
a DPoint
self& slip::DPoint< CoordType, DIM >::operator-= ( const self other)
inherited

substract the coordinates of a DPoint to the DPoint

Parameters
otherDPoint to add with
Returns
a DPoint
bool slip::DPoint< CoordType, DIM >::operator== ( const self other) const
inherited

compare two DPoint.

Parameters
otherDPoint to compare
Returns
true if the two dpoint have the same coordinates
reference slip::DPoint< CoordType, DIM >::operator[] ( const std::size_t  i)
inherited

Returns the i'th coordinate of the DPoint.

Parameters
iindex of the coordinate to return
Returns
value of the i'th row of the DPoint.
Precondition
0 <= i < dim
const_reference slip::DPoint< CoordType, DIM >::operator[] ( const std::size_t  i) const
inherited

Returns the i'th row of the DPoint.

Parameters
iindex of the coordinate to return
Returns
value of the i'th row of the DPoint
Precondition
0 <= i < dim
template<typename CoordType >
void slip::DPoint4d< CoordType >::set_coord ( const CoordType &  dx1,
const CoordType &  dx2,
const CoordType &  dx3,
const CoordType &  dx4 
)
inline

Accessor/Mutator of the coordinates of DPoint4d.

Parameters
dx1First displacement coordinate.
dx2Second displacement coordinate.
dx3Third displacement coordinate.
dx4Fourth displacement coordinate.

Definition at line 317 of file DPoint4d.hpp.

std::size_t slip::DPoint< CoordType, DIM >::size ( ) const
inherited

Returns the dimension of the DPoint.

Returns
the dimension (number of coordinates) of the DPoint
void slip::DPoint< CoordType, DIM >::swap ( self other)
inherited

Swaps two DPoint.

Parameters
otherDPoint to swap with

Friends And Related Function Documentation

template<typename CoordType>
friend class boost::serialization::access
friend

Definition at line 221 of file DPoint4d.hpp.

Member Data Documentation

block<value_type,DIM> slip::DPoint< CoordType, DIM >::coord_
protectedinherited

The coordinates of the dpoint are stored in this block.

Definition at line 321 of file DPoint.hpp.


The documentation for this class was generated from the following file: