Jpp test-rotations-new
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::JBin2D< 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 48 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 49 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 55 of file JElement.hh.

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

◆ 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 67 of file JElement.hh.

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

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 79 of file JElement.hh.

80 {
81 return __x;
82 }

◆ 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 90 of file JElement.hh.

91 {
92 return __y;
93 }

◆ 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 101 of file JElement.hh.

102 {
103 return __y;
104 }

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 114 of file JElement.hh.

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

◆ 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 130 of file JElement.hh.

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

Member Data Documentation

◆ __x

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

Definition at line 140 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 141 of file JElement.hh.


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