Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t > Struct Template Reference

2D Element. More...

#include <JElement.hh>

Inheritance diagram for JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >:
JTOOLS::JBin1D< JAbscissa_t, JOrdinate_t > JTOOLS::JPolintElement2S< JAbscissa_t, JOrdinate_t > JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t > JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >

Public Types

typedef JAbscissa_t abscissa_type
 
typedef JOrdinate_t ordinate_type
 

Public Member Functions

 JElement2D ()
 Default constructor.
 
 JElement2D (typename JLANG::JClass< abscissa_type >::argument_type x, typename JLANG::JClass< ordinate_type >::argument_type y)
 Constructor.
 
abscissa_type getX () const
 Get abscissa value.
 
const ordinate_typegetY () const
 Get ordinate value.
 
ordinate_typegetY ()
 Get ordinate value.
 

Protected Attributes

abscissa_type __x
 
ordinate_type __y
 

Friends

JReaderoperator>> (JReader &in, JElement2D &element)
 Read element from input.
 
JWriteroperator<< (JWriter &out, const JElement2D &element)
 Write element to output.
 

Detailed Description

template<class JAbscissa_t, class JOrdinate_t>
struct JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >

2D Element.

Definition at line 1131 of file JPolint.hh.

Member Typedef Documentation

◆ abscissa_type

template<class JAbscissa_t , class JOrdinate_t >
JAbscissa_t JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::abscissa_type

Definition at line 49 of file JElement.hh.

◆ ordinate_type

template<class JAbscissa_t , class JOrdinate_t >
JOrdinate_t JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::ordinate_type

Definition at line 50 of file JElement.hh.

Constructor & Destructor Documentation

◆ JElement2D() [1/2]

template<class JAbscissa_t , class JOrdinate_t >
JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::JElement2D ( )
inline

Default constructor.

Definition at line 56 of file JElement.hh.

56 :
57 __x(getZero<abscissa_type>()),
58 __y(getZero<ordinate_type>())
59 {}
ordinate_type __y
Definition JElement.hh:142
abscissa_type __x
Definition JElement.hh:141

◆ JElement2D() [2/2]

template<class JAbscissa_t , class JOrdinate_t >
JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::JElement2D ( typename JLANG::JClass< abscissa_type >::argument_type x,
typename JLANG::JClass< ordinate_type >::argument_type y )
inline

Constructor.

Parameters
xabscissa value
yordinate value

Definition at line 68 of file JElement.hh.

69 :
70 __x(x),
71 __y(y)
72 {}

Member Function Documentation

◆ getX()

template<class JAbscissa_t , class JOrdinate_t >
abscissa_type JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::getX ( ) const
inline

Get abscissa value.

Returns
abscissa value

Definition at line 80 of file JElement.hh.

81 {
82 return __x;
83 }

◆ getY() [1/2]

template<class JAbscissa_t , class JOrdinate_t >
const ordinate_type & JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::getY ( ) const
inline

Get ordinate value.

Returns
ordinate value

Definition at line 91 of file JElement.hh.

92 {
93 return __y;
94 }

◆ getY() [2/2]

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type & JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::getY ( )
inline

Get ordinate value.

Returns
ordinate value

Definition at line 102 of file JElement.hh.

103 {
104 return __y;
105 }

Friends And Related Symbol Documentation

◆ operator>>

template<class JAbscissa_t , class JOrdinate_t >
JReader & operator>> ( JReader & in,
JElement2D< JAbscissa_t, JOrdinate_t > & element )
friend

Read element from input.

Parameters
inreader
elementelement
Returns
reader

Definition at line 115 of file JElement.hh.

116 {
117 in >> element.__x;
118 in >> element.__y;
119
120 return in;
121 }

◆ operator<<

template<class JAbscissa_t , class JOrdinate_t >
JWriter & operator<< ( JWriter & out,
const JElement2D< JAbscissa_t, JOrdinate_t > & element )
friend

Write element to output.

Parameters
outwriter
elementelement
Returns
writer

Definition at line 131 of file JElement.hh.

132 {
133 out << element.__x;
134 out << element.__y;
135
136 return out;
137 }

Member Data Documentation

◆ __x

template<class JAbscissa_t , class JOrdinate_t >
abscissa_type JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::__x
protected

Definition at line 141 of file JElement.hh.

◆ __y

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::__y
protected

Definition at line 142 of file JElement.hh.


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