BALL::Peak< PositionType > Class Template Reference
[NMR spectra and related classes]

#include <BALL/NMR/peak.h>

Inheritance diagram for BALL::Peak< PositionType >:
Inheritance graph
[legend]

List of all members.

Public Types

Typedefs

typedef PositionType Position

Public Member Functions

Constructors and Destructors

 Peak ()
 Peak (const Peak &peak)
virtual ~Peak ()
Accessors

const PositiongetPosition () const
const PositiongetWidth () const
float getIntensity () const
void setPosition (const Position &position)
void setWidth (const Position &width)
void setIntensity (float intensity)
const AtomgetAtom () const
void setAtom (const Atom *atom)
Assignment

void operator= (const Peak &peak)
Predicates

bool operator== (const Peak< PositionType > &peak) const
bool operator< (const Peak< PositionType > &peak) const
bool operator> (const Peak< PositionType > &peak) const

Protected Attributes

Position position_
Position width_
float intensity_
const Atomatom_

Detailed Description

template<typename PositionType>
class BALL::Peak< PositionType >

Generic Peak Class. Each peak contains a pointer to an associated atom (in the case of NMR: the atom that causes this peak).

Definition at line 35 of file peak.h.


Member Typedef Documentation

template<typename PositionType>
typedef PositionType BALL::Peak< PositionType >::Position

Definition at line 44 of file peak.h.


Constructor & Destructor Documentation

template<typename PositionType >
BALL::Peak< PositionType >::Peak (  )  [inline]

Default Constructor

Definition at line 136 of file peak.h.

template<typename PositionType >
BALL::Peak< PositionType >::Peak ( const Peak< PositionType > &  peak  )  [inline]

Copy Constructor

Definition at line 151 of file peak.h.

template<typename PositionType >
BALL::Peak< PositionType >::~Peak (  )  [inline, virtual]

Destructor

Definition at line 146 of file peak.h.


Member Function Documentation

template<typename PositionType >
BALL_INLINE const Atom * BALL::Peak< PositionType >::getAtom (  )  const [inline]

Return the atom pointer.

Definition at line 204 of file peak.h.

template<typename PositionType >
BALL_INLINE float BALL::Peak< PositionType >::getIntensity (  )  const [inline]

Return the peak intensity (amplitude).

Definition at line 190 of file peak.h.

template<typename PositionType >
BALL_INLINE const Peak< PositionType >::Position & BALL::Peak< PositionType >::getPosition (  )  const [inline]

Return the peak position.

Definition at line 162 of file peak.h.

template<typename PositionType >
BALL_INLINE const Peak< PositionType >::Position & BALL::Peak< PositionType >::getWidth (  )  const [inline]

Return the peak width.

Definition at line 169 of file peak.h.

template<typename PositionType>
bool BALL::Peak< PositionType >::operator< ( const Peak< PositionType > &  peak  )  const [inline]

Lesser than operator

Definition at line 235 of file peak.h.

template<typename PositionType >
void BALL::Peak< PositionType >::operator= ( const Peak< PositionType > &  peak  )  [inline]

Assignment Operator

Definition at line 217 of file peak.h.

template<typename PositionType>
bool BALL::Peak< PositionType >::operator== ( const Peak< PositionType > &  peak  )  const [inline]

Equality operator

Definition at line 226 of file peak.h.

template<typename PositionType>
bool BALL::Peak< PositionType >::operator> ( const Peak< PositionType > &  peak  )  const [inline]

Greater than operator

Definition at line 241 of file peak.h.

template<typename PositionType >
BALL_INLINE void BALL::Peak< PositionType >::setAtom ( const Atom atom  )  [inline]

Set the atom pointer.

Definition at line 211 of file peak.h.

template<typename PositionType >
BALL_INLINE void BALL::Peak< PositionType >::setIntensity ( float  intensity  )  [inline]

Set the peak height

Definition at line 197 of file peak.h.

template<typename PositionType>
void BALL::Peak< PositionType >::setPosition ( const Position position  ) 

Set the peak position.

template<typename PositionType>
void BALL::Peak< PositionType >::setWidth ( const Position width  ) 

Set the peak width


Member Data Documentation

template<typename PositionType>
const Atom* BALL::Peak< PositionType >::atom_ [protected]

Definition at line 132 of file peak.h.

template<typename PositionType>
float BALL::Peak< PositionType >::intensity_ [protected]

Definition at line 131 of file peak.h.

template<typename PositionType>
Position BALL::Peak< PositionType >::position_ [protected]

Definition at line 129 of file peak.h.

template<typename PositionType>
Position BALL::Peak< PositionType >::width_ [protected]

Definition at line 130 of file peak.h.

Generated by  doxygen 1.6.3