Jpp  17.1.0
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::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. More...
 
 JElement2D (typename JLANG::JClass< abscissa_type >::argument_type x, typename JLANG::JClass< ordinate_type >::argument_type y)
 Constructor. More...
 
abscissa_type getX () const
 Get abscissa value. More...
 
const ordinate_typegetY () const
 Get ordinate value. More...
 
ordinate_typegetY ()
 Get ordinate value. More...
 

Protected Attributes

abscissa_type __x
 
ordinate_type __y
 

Friends

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

Detailed Description

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

2D Element.

Definition at line 46 of file JElement.hh.

Member Typedef Documentation

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

Definition at line 48 of file JElement.hh.

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

Definition at line 49 of file JElement.hh.

Constructor & Destructor Documentation

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
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  {}
ordinate_type __y
Definition: JElement.hh:141
abscissa_type __x
Definition: JElement.hh:140

Member Function Documentation

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  }
abscissa_type __x
Definition: JElement.hh:140
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  }
ordinate_type __y
Definition: JElement.hh:141
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  }
ordinate_type __y
Definition: JElement.hh:141

Friends And Related Function Documentation

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  }
ordinate_type __y
Definition: JElement.hh:141
abscissa_type __x
Definition: JElement.hh:140
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
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  }
ordinate_type __y
Definition: JElement.hh:141
abscissa_type __x
Definition: JElement.hh:140

Member Data Documentation

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.

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 file: