Main Page | Class Hierarchy | Class List | File List | Class Members

AnnotationScore Class Reference

Purpose:
Abstracts the notion of a "score", has ended up behaving
just like a "double", but hey how was I suppose to know!
More...

#include <AnnotationScore.h>

List of all members.

Public Member Functions

 AnnotationScore ()
 Initializes to "AnnotationScore::badVal()".

 AnnotationScore (double val)
 AnnotationScore (int val)
 AnnotationScore (const AnnotationScore &as)
bool isValid () const
 Checks to see if score is equivalent to badVal().

bool operator> (const AnnotationScore &) const
bool operator<= (const AnnotationScore &) const
bool operator>= (const AnnotationScore &) const
bool operator== (const AnnotationScore &) const
bool operator!= (const AnnotationScore &as) const
AnnotationScoreoperator= (const AnnotationScore &in)
AnnotationScoreoperator/= (const AnnotationScore &in)
AnnotationScoreoperator-= (const AnnotationScore &in)
AnnotationScoreoperator+= (const AnnotationScore &in)
AnnotationScoreoperator *= (const AnnotationScore &in)
double getVal () const

Static Public Member Functions

AnnotationScore defaultScore ()
 const value defaultScore() == 1.0

AnnotationScore minVal ()
 const value = -1.0

AnnotationScore badVal ()
 const value = -1.0


Friends

AnnotationScore operator * (const AnnotationScore &, double)
AnnotationScore operator * (const AnnotationScore &a, const AnnotationScore &b)
bool operator< (const AnnotationScore &ain, const AnnotationScore &bin)
AnnotationScore operator- (const AnnotationScore &as1, const AnnotationScore &as2)
AnnotationScore operator+ (const AnnotationScore &as1, const AnnotationScore &as2)
AnnotationScore operator/ (const AnnotationScore &as1, const AnnotationScore &as2)
AnnotationScore combineScore (const AnnotationScore &as1, const AnnotationScore &as2)
std::istream & operator>> (std::istream &, AnnotationScore &)
std::ostream & operator<< (std::ostream &, const AnnotationScore &)


Detailed Description

Purpose:
Abstracts the notion of a "score", has ended up behaving
just like a "double", but hey how was I suppose to know!


The documentation for this class was generated from the following files: