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

This is a point4d class, a specialized version of Point<CoordType,DIM> with DIM = 4. More...

#include <GenericMultiComponent4d.hpp>

Inheritance diagram for slip::Point4d< Block >:
Inheritance graph

Public Types

typedef Point4d< CoordType > self
 
typedef slip::Point< CoordType, 4 > base
 
typedef CoordType value_type
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef DPoint< CoordType, DIM > dpoint_type
 
typedef
std::random_access_iterator_tag 
iterator_category
 

Public Member Functions

std::string name () const
 Returns the name of the class. More...
 
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
 Point4d ()
 Constructs a Point4d. More...
 
 Point4d (const CoordType *array)
 Constructs a Point from a CoordType array. More...
 
 Point4d (const CoordType &x1, const CoordType &x2, const CoordType &x3, const CoordType &x4)
 Constructs a Point4d. More...
 
Element access operators
void x1 (const CoordType &x)
 Accessor of the first coordinate of Point4d. More...
 
CoordType & x1 ()
 Accessor/Mutator of the first coordinate of Point4d. More...
 
const CoordType & x1 () const
 Accessor/Mutator of the first coordinate of Point4d. More...
 
void x2 (const CoordType &x)
 Accessor of the second coordinate of Point4d. More...
 
CoordType & x2 ()
 Accessor/Mutator of the second coordinate of Point4d. More...
 
const CoordType & x2 () const
 Accessor/Mutator of the second coordinate of Point4d. More...
 
void x3 (const CoordType &x)
 Accessor of the third coordinate of Point4d. More...
 
CoordType & x3 ()
 Accessor/Mutator of the third coordinate of Point4d. More...
 
const CoordType & x3 () const
 Accessor/Mutator of the third coordinate of Point4d. More...
 
void x4 (const CoordType &x)
 Accessor of the fourth coordinate of Point4d. More...
 
CoordType & x4 ()
 Accessor/Mutator of the fourth coordinate of Point4d. More...
 
const CoordType & x4 () const
 Accessor/Mutator of the fourth coordinate of Point4d. More...
 
Assignment method
selfoperator= (const base &p)
 Assign a Point. Assign elements of Point in a Point4d. 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) const
 translate a point considering the deplacement a dp More...
 
dpoint_type operator- (const self &other) const
 compute the difference between two points More...
 
selfoperator+= (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...
 
selfoperator-= (const dpoint_type &dp)
 Assign a Point to this point minus a deplacement. More...
 

Static Public Attributes

static const std::size_t SIZE
 

Protected Attributes

block< value_type, DIM > coord_
 The coordinates of the point are stored in this block. More...
 

Friends

class boost::serialization::access
 

Detailed Description

template<class Block>
class slip::Point4d< Block >

This is a point4d class, a specialized version of Point<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 Point4d

Definition at line 115 of file GenericMultiComponent4d.hpp.

Member Typedef Documentation

template<class Block>
typedef slip::Point<CoordType,4> slip::Point4d< Block >::base

Definition at line 106 of file Point4d.hpp.

typedef const value_type* slip::Point< CoordType, DIM >::const_pointer
inherited

Definition at line 114 of file Point.hpp.

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

Definition at line 116 of file Point.hpp.

typedef DPoint<CoordType,DIM> slip::Point< CoordType, DIM >::dpoint_type
inherited

Definition at line 119 of file Point.hpp.

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

Definition at line 123 of file Point.hpp.

typedef value_type* slip::Point< CoordType, DIM >::pointer
inherited

Definition at line 113 of file Point.hpp.

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

Definition at line 115 of file Point.hpp.

template<class Block>
typedef Point4d<CoordType> slip::Point4d< Block >::self

Definition at line 105 of file Point4d.hpp.

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

Definition at line 112 of file Point.hpp.

Constructor & Destructor Documentation

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

Constructs a Point4d.

Definition at line 278 of file Point4d.hpp.

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

Constructs a Point from a CoordType array.

Parameters
array

Definition at line 288 of file Point4d.hpp.

template<typename CoordType >
slip::Point4d< CoordType >::Point4d ( const CoordType &  x1,
const CoordType &  x2,
const CoordType &  x3,
const CoordType &  x4 
)
inline

Constructs a Point4d.

Parameters
x1first coordinate of the Point4d
x2second coordinate of the Point4d
x3third coordinate of the Point4d
x4fourth coordinate of the Point4d

Definition at line 295 of file Point4d.hpp.

Member Function Documentation

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

Return the coordinates of the Point.

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

Return the coordinates of the Point.

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

Returns the dimension of the Point.

Returns
the dimension (number of coordinates) of the Point
bool slip::Point< CoordType, DIM >::empty ( ) const
inherited

Returns true if dimension of the Point is 0.

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

Returns the maximal size of the Point.

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

Returns the name of the class.

Definition at line 357 of file Point4d.hpp.

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

compare two Point.

Parameters
otherPoint to compare
Returns
true if the two point don't have the same coordinates
self slip::Point< CoordType, DIM >::operator+ ( const dpoint_type dp) const
inherited

translate a point considering the deplacement a dp

Parameters
dpdeplacement
Returns
self& slip::Point< CoordType, DIM >::operator+= ( const dpoint_type dp)
inherited

Assign a Point to this point plus a deplacement.

Parameters
dpdeplacement
Returns
self slip::Point< CoordType, DIM >::operator- ( ) const
inherited

negate all the coordinates of a Point

Precondition
CoordType must be a "signed" type
Returns
a Point with negate coordinates
self slip::Point< CoordType, DIM >::operator- ( const dpoint_type dp) const
inherited

translate a point considering the deplacement a dp

Parameters
dpdeplacement
Returns
dpoint_type slip::Point< CoordType, DIM >::operator- ( const self other) const
inherited

compute the difference between two points

Parameters
otherPoint
Returns
the deplacement between the two points
self& slip::Point< CoordType, DIM >::operator-= ( const dpoint_type dp)
inherited

Assign a Point to this point minus a deplacement.

Parameters
dpdeplacement
Returns
template<class Block>
self& slip::Point4d< Block >::operator= ( const base p)
inline

Assign a Point. Assign elements of Point in a Point4d.

Parameters
Pointto get the values from.
Returns

Definition at line 228 of file Point4d.hpp.

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

compare two Point.

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

Returns the i'th coordinate of the Point.

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

Returns the i'th row of the Point.

Parameters
iindex of the coordinate to return
Returns
value of the i'th row of the Point
Precondition
0 <= i < dim
std::size_t slip::Point< CoordType, DIM >::size ( ) const
inherited

Returns the dimension of the Point.

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

Swaps two Point.

Parameters
otherPoint to swap with
template<typename CoordType >
void slip::Point4d< CoordType >::x1 ( const CoordType &  x)
inline

Accessor of the first coordinate of Point4d.

Parameters
xthe first coordinate of the Point4d

Definition at line 340 of file Point4d.hpp.

template<typename CoordType >
CoordType & slip::Point4d< CoordType >::x1 ( )
inline

Accessor/Mutator of the first coordinate of Point4d.

Returns
reference to the first coordinate of the Point4d

Definition at line 307 of file Point4d.hpp.

template<typename CoordType >
const CoordType & slip::Point4d< CoordType >::x1 ( ) const
inline

Accessor/Mutator of the first coordinate of Point4d.

Returns
reference to the first coordinate of the Point4d

Definition at line 311 of file Point4d.hpp.

template<typename CoordType >
void slip::Point4d< CoordType >::x2 ( const CoordType &  x)
inline

Accessor of the second coordinate of Point4d.

Parameters
xthe second coordinate of the Point4d

Definition at line 344 of file Point4d.hpp.

template<typename CoordType >
CoordType & slip::Point4d< CoordType >::x2 ( )
inline

Accessor/Mutator of the second coordinate of Point4d.

Returns
reference to the second coordinate of the Point4d

Definition at line 315 of file Point4d.hpp.

template<typename CoordType >
const CoordType & slip::Point4d< CoordType >::x2 ( ) const
inline

Accessor/Mutator of the second coordinate of Point4d.

Returns
reference to the second coordinate of the Point4d

Definition at line 319 of file Point4d.hpp.

template<typename CoordType >
void slip::Point4d< CoordType >::x3 ( const CoordType &  x)
inline

Accessor of the third coordinate of Point4d.

Parameters
xthe third coordinate of the Point4d

Definition at line 348 of file Point4d.hpp.

template<typename CoordType >
CoordType & slip::Point4d< CoordType >::x3 ( )
inline

Accessor/Mutator of the third coordinate of Point4d.

Returns
reference to the third coordinate of the Point4d

Definition at line 324 of file Point4d.hpp.

template<typename CoordType >
const CoordType & slip::Point4d< CoordType >::x3 ( ) const
inline

Accessor/Mutator of the third coordinate of Point4d.

Returns
reference to the third coordinate of the Point4d

Definition at line 328 of file Point4d.hpp.

template<typename CoordType >
void slip::Point4d< CoordType >::x4 ( const CoordType &  x)
inline

Accessor of the fourth coordinate of Point4d.

Parameters
xthe fourth coordinate of the Point4d

Definition at line 352 of file Point4d.hpp.

template<typename CoordType >
CoordType & slip::Point4d< CoordType >::x4 ( )
inline

Accessor/Mutator of the fourth coordinate of Point4d.

Returns
reference to the fourth coordinate of the Point4d

Definition at line 332 of file Point4d.hpp.

template<typename CoordType >
const CoordType & slip::Point4d< CoordType >::x4 ( ) const
inline

Accessor/Mutator of the fourth coordinate of Point4d.

Returns
reference to the fourth coordinate of the Point4d

Definition at line 336 of file Point4d.hpp.

Friends And Related Function Documentation

template<class Block>
friend class boost::serialization::access
friend

Definition at line 238 of file Point4d.hpp.

Member Data Documentation

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

The coordinates of the point are stored in this block.

Definition at line 347 of file Point.hpp.

const std::size_t slip::Point< CoordType, DIM >::SIZE
staticinherited

Definition at line 125 of file Point.hpp.


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