Commit b520bcb7 authored by Mathieu Giraud's avatar Mathieu Giraud

core/kmeraffect.{h,cpp}: isNull(), isGeneric()

parent 179ae31f
......@@ -292,6 +292,14 @@ bool KmerStringAffect::isUnknown() const {
return *this == KSA_UNKNOWN;
}
bool KmerStringAffect::isNull() const {
return isUnknown();
}
bool KmerStringAffect::isGeneric() const {
return !(isUnknown() || isAmbiguous());
}
string KmerStringAffect::toString() const {
if (isUnknown()) {
return " _";
......
......@@ -304,11 +304,21 @@ public:
*/
bool isAmbiguous() const;
/**
* @return true iff the value is the same as the one given by default constructor
*/
bool isNull() const;
/**
* @return true iff the affectation is unkwown yet.
*/
bool isUnknown() const;
/**
* @return true if the K-mer is not odd (ambiguous or unknown)
*/
bool isGeneric() const;
string toString() const;
};
bool operator!=(const KmerStringAffect &k1, const KmerStringAffect &k2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment