Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 492 of file JElement.hh.

Member Typedef Documentation

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

Definition at line 494 of file JElement.hh.

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

Definition at line 495 of file JElement.hh.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 501 of file JElement.hh.

501  :
502  __x(getZero<abscissa_type>()),
503  __y(getZero<abscissa_type>()),
504  __z(getZero<ordinate_type>())
505  {}
ordinate_type __z
Definition: JElement.hh:605
abscissa_type __x
Definition: JElement.hh:603
abscissa_type __y
Definition: JElement.hh:604
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 515 of file JElement.hh.

517  :
518  __x(x),
519  __y(y),
520  __z(z)
521  {}
ordinate_type __z
Definition: JElement.hh:605
abscissa_type __x
Definition: JElement.hh:603
abscissa_type __y
Definition: JElement.hh:604

Member Function Documentation

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

530  {
531  return __x;
532  }
abscissa_type __x
Definition: JElement.hh:603
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 540 of file JElement.hh.

541  {
542  return __y;
543  }
abscissa_type __y
Definition: JElement.hh:604
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 551 of file JElement.hh.

552  {
553  return __y;
554  }
abscissa_type __y
Definition: JElement.hh:604
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 562 of file JElement.hh.

563  {
564  return __y;
565  }
abscissa_type __y
Definition: JElement.hh:604

Friends And Related Function Documentation

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

576  {
577  in >> element.__x;
578  in >> element.__y;
579  in >> element.__z;
580 
581  return in;
582  }
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
ordinate_type __z
Definition: JElement.hh:605
abscissa_type __x
Definition: JElement.hh:603
abscissa_type __y
Definition: JElement.hh:604
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 592 of file JElement.hh.

593  {
594  out << element.__x;
595  out << element.__y;
596  out << element.__z;
597 
598  return out;
599  }
ordinate_type __z
Definition: JElement.hh:605
abscissa_type __x
Definition: JElement.hh:603
abscissa_type __y
Definition: JElement.hh:604

Member Data Documentation

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

Definition at line 603 of file JElement.hh.

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

Definition at line 604 of file JElement.hh.

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

Definition at line 605 of file JElement.hh.


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