18 #ifndef __SAM_RECORD_POOL_H__ 19 #define __SAM_RECORD_POOL_H__ 22 #include "SamRecord.h" 65 std::queue<SamRecord*> myFreeSamRecords;
~SamRecordPool()
Destructor.
void setMaxAllocatedRecs(int maxNumRecs)
Set the maximum number of records allowed to be allocated.
Class providing an easy to use interface to get/set/operate on the fields in a SAM/BAM record...
SamRecordPool()
Constructor that sets there to be no max number of allocated records.
void releaseRecord(SamRecord *record)
If record is not NULL, adds it back to the free list.
SamRecord * getRecord()
Get a SamRecord.