libStatGen Software
1
|
Store refID/position, but does not store values < 0. More...
#include <PosList.h>
Public Member Functions | |
PosList () | |
Constructor. | |
PosList (int numRefs, int numPositions) | |
Reserves space for numRefs reference ids and numPositions for each id. | |
virtual | ~PosList () |
Destructor. | |
void | addPosition (int refID, int refPosition) |
Add the specified reference id/position (negative values will not be added). More... | |
bool | hasPosition (int refID, int refPosition) |
Return whether or not this list contains the specified reference ID and position (negative values will automatically return false). More... | |
Protected Member Functions | |
PosList (const PosList &p) | |
void | initVars () |
Protected Attributes | |
std::vector< std::vector< bool > > | myPosList |
int | myNumRefs |
int | myNumPos |
void PosList::addPosition | ( | int | refID, |
int | refPosition | ||
) |
Add the specified reference id/position (negative values will not be added).
Definition at line 42 of file PosList.cpp.
bool PosList::hasPosition | ( | int | refID, |
int | refPosition | ||
) |
Return whether or not this list contains the specified reference ID and position (negative values will automatically return false).
Definition at line 81 of file PosList.cpp.
Referenced by Pileup< TestPileupElement >::processAlignmentRegion().