Jpp  master_rocky-43-ge265d140c
the software that should make you happy
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t > Struct Template Reference

3D Element. More...

#include <JElement.hh>

Public Types

typedef JAbscissa_t abscissa_type
 
typedef JOrdinate_t ordinate_type
 

Public Member Functions

 JElement3D ()
 Default constructor. More...
 
 JElement3D (typename JLANG::JClass< abscissa_type >::argument_type x, typename JLANG::JClass< abscissa_type >::argument_type y, typename JLANG::JClass< ordinate_type >::argument_type z)
 Constructor. More...
 
abscissa_type getX () const
 Get abscissa value. More...
 
abscissa_type getY () const
 Get abscissa value. More...
 
const ordinate_typegetZ () const
 Get ordinate value. More...
 
ordinate_typegetZ ()
 Get ordinate value. More...
 

Protected Attributes

abscissa_type __x
 
abscissa_type __y
 
ordinate_type __z
 

Friends

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

Detailed Description

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

3D Element.

Definition at line 494 of file JElement.hh.

Member Typedef Documentation

◆ abscissa_type

template<class JAbscissa_t , class JOrdinate_t >
typedef JAbscissa_t JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t >::abscissa_type

Definition at line 496 of file JElement.hh.

◆ ordinate_type

template<class JAbscissa_t , class JOrdinate_t >
typedef JOrdinate_t JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t >::ordinate_type

Definition at line 497 of file JElement.hh.

Constructor & Destructor Documentation

◆ JElement3D() [1/2]

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

Default constructor.

Definition at line 503 of file JElement.hh.

503  :
504  __x(getZero<abscissa_type>()),
505  __y(getZero<abscissa_type>()),
506  __z(getZero<ordinate_type>())
507  {}
abscissa_type __x
Definition: JElement.hh:605
abscissa_type __y
Definition: JElement.hh:606
ordinate_type __z
Definition: JElement.hh:607

◆ JElement3D() [2/2]

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

Constructor.

Parameters
xabscissa value
yabscissa value
zordinate value

Definition at line 517 of file JElement.hh.

519  :
520  __x(x),
521  __y(y),
522  __z(z)
523  {}

Member Function Documentation

◆ getX()

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

Get abscissa value.

Returns
abscissa value

Definition at line 531 of file JElement.hh.

532  {
533  return __x;
534  }

◆ getY()

template<class JAbscissa_t , class JOrdinate_t >
abscissa_type JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t >::getY ( ) const
inline

Get abscissa value.

Returns
abscissa value

Definition at line 542 of file JElement.hh.

543  {
544  return __y;
545  }

◆ getZ() [1/2]

template<class JAbscissa_t , class JOrdinate_t >
const ordinate_type& JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t >::getZ ( ) const
inline

Get ordinate value.

Returns
ordinate value

Definition at line 553 of file JElement.hh.

554  {
555  return __y;
556  }

◆ getZ() [2/2]

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type& JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t >::getZ ( )
inline

Get ordinate value.

Returns
ordinate value

Definition at line 564 of file JElement.hh.

565  {
566  return __y;
567  }

Friends And Related Function Documentation

◆ operator>>

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

Read element from input.

Parameters
inreader
elementelement
Returns
reader

Definition at line 577 of file JElement.hh.

578  {
579  in >> element.__x;
580  in >> element.__y;
581  in >> element.__z;
582 
583  return in;
584  }

◆ operator<<

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

Write element to output.

Parameters
outwriter
elementelement
Returns
writer

Definition at line 594 of file JElement.hh.

595  {
596  out << element.__x;
597  out << element.__y;
598  out << element.__z;
599 
600  return out;
601  }

Member Data Documentation

◆ __x

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

Definition at line 605 of file JElement.hh.

◆ __y

template<class JAbscissa_t , class JOrdinate_t >
abscissa_type JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t >::__y
protected

Definition at line 606 of file JElement.hh.

◆ __z

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type JTOOLS::JElement3D< JAbscissa_t, JOrdinate_t >::__z
protected

Definition at line 607 of file JElement.hh.


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