]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/BamAux.h
Reorganizing index/jumping calls. Now all BamReader cares about is sending a Jump...
[bamtools.git] / src / api / BamAux.h
index 7a7fb1c00ab96299eb378dccfa6952aaeb5e9d24..057568e31ea8c12ad035b8c0393bb79d748a55ce 100644 (file)
@@ -270,6 +270,12 @@ struct BamRegion {
         , RightRefID(rightID)\r
         , RightPosition(rightPos)\r
     { }\r
+    \r
+    // member functions\r
+    void clear(void) { LeftRefID = -1; LeftPosition = -1; RightRefID = -1; RightPosition = -1; }\r
+    bool isLeftBoundSpecified(void) const { return ( LeftRefID != -1 && LeftPosition != -1 ); }\r
+    bool isNull(void) const { return !( isLeftBoundSpecified() && isRightBoundSpecified() ); }\r
+    bool isRightBoundSpecified(void) const { return ( RightRefID != -1 && RightPosition != -1 ); }\r
 };\r
 \r
 // ----------------------------------------------------------------\r