7 #ifndef BALL_NMR_PEAK_H
8 #define BALL_NMR_PEAK_H
10 #ifndef BALL_MATHS_VECTOR3_H
14 #ifndef BALL_MATHS_VECTOR2_H
18 #ifndef BALL_CONCEPT_PROPERTY_H
34 template <
typename PositionType>
120 bool operator < (const Peak<PositionType>& peak)
const;
135 template <
typename PositionType>
145 template <
typename PositionType>
150 template <
typename PositionType>
153 position_(peak.position_),
155 intensity_(peak.intensity_),
160 template <
typename PositionType>
167 template <
typename PositionType>
174 template <
typename PositionType>
178 position_ = position;
181 template <
typename PositionType>
188 template <
typename PositionType>
195 template <
typename PositionType>
199 intensity_ = intensity;
202 template <
typename PositionType>
209 template <
typename PositionType>
216 template <
typename PositionType>
225 template <
typename PositionType>
229 && (width_ == peak.
width_)
231 && (atom_ == peak.
atom_));
234 template <
typename PositionType>
240 template <
typename PositionType>
248 template <
typename PositionType>
249 std::ostream& operator << (std::ostream& os, const Peak<PositionType>& peak)
251 return (os <<
"[ peak @ " << peak.getPosition()
252 <<
": intensity = " << peak.getIntensity()
253 <<
", width = " << peak.getWidth()
269 #endif // BALL_NMR_PEAK_H
void setPosition(const Position &position)
void setIntensity(float intensity)
const Position & getWidth() const
bool operator==(const Peak< PositionType > &peak) const
bool operator>(const Peak< PositionType > &peak) const
void operator=(const Peak &peak)
void setWidth(const Position &width)
float getIntensity() const
const Position & getPosition() const
bool operator<(const Peak< PositionType > &peak) const
const Atom * getAtom() const
void setAtom(const Atom *atom)