]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/BamReader.h
Added IsIndexLoaded() public method to BamReader. Allows client to make sure index...
[bamtools.git] / src / api / BamReader.h
index c93987b1a41bfbe41b7f0a10bd9d826a3514e681..5d4c83ab9c8c7638c776c3b6a2e987200b0d9487 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College\r
 // All rights reserved.\r
 // ---------------------------------------------------------------------------\r
-// Last modified: 9 July 2010 (DB)\r
+// Last modified: 2 September 2010 (DB)\r
 // ---------------------------------------------------------------------------\r
 // Uses BGZF routines were adapted from the bgzf.c code developed at the Broad\r
 // Institute.\r
@@ -38,6 +38,8 @@ class BamReader {
 \r
         // close BAM file\r
         void Close(void);\r
+        // returns whether index data is loaded (i.e. reader is able to Jump() or not)\r
+        bool IsIndexLoaded(void) const;\r
         // returns whether reader is open for reading or not\r
         bool IsOpen(void) const;\r
         // performs random-access jump to reference, position\r