Jpp  15.0.1
the software that should make you happy
 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 494 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 496 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 497 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 503 of file JElement.hh.

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

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

532  {
533  return __x;
534  }
abscissa_type __x
Definition: JElement.hh:605
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  }
abscissa_type __y
Definition: JElement.hh:606
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  }
abscissa_type __y
Definition: JElement.hh:606
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  }
abscissa_type __y
Definition: JElement.hh:606

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

578  {
579  in >> element.__x;
580  in >> element.__y;
581  in >> element.__z;
582 
583  return in;
584  }
ordinate_type __z
Definition: JElement.hh:607
abscissa_type __x
Definition: JElement.hh:605
abscissa_type __y
Definition: JElement.hh:606
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:41
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  }
ordinate_type __z
Definition: JElement.hh:607
abscissa_type __x
Definition: JElement.hh:605
abscissa_type __y
Definition: JElement.hh:606

Member Data Documentation

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.

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.

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: