multovl
1.3
Multiple overlaps of genomic regions
|
#include "multireglimit.hh"
Public Types | |
typedef std::multiset< RegLimit > | reglim_t |
Public Member Functions | |
MultiRegLimit () | |
Init to empty. | |
MultiRegLimit (const Region ®ion, unsigned int trackid) | |
Init to contain a region and trackid. | |
MultiRegLimit (const MultiRegLimit &other) | |
MultiRegLimit & | operator= (const MultiRegLimit &rhs) |
void | add (const Region ®ion, unsigned int trackid) |
const reglim_t & | reglim () const |
MultiRegLimit & | operator+= (const MultiRegLimit &rhs) |
Protected Member Functions | |
reglim_t & | nonconst_reglim () |
Friends | |
class | boost::serialization::access |
Objects of the MultiRegLimit class store genomic regions encoded by the regions' first and last positions. Internally, this is implemented by a multiset storing RegLimit objects.
multovl::MultiRegLimit::MultiRegLimit | ( | const MultiRegLimit & | other | ) |
Copy ctor Implements a deep copy so that the AncestorRegion objects under the RegLimits will be completely independent from those under /other/
void multovl::MultiRegLimit::add | ( | const Region & | region, |
unsigned int | trackid | ||
) |
Adds a region /region/ identified by /trackid/ to the calling object.
region | a genomic region to be stored |
trackid | an arbitrary number identifying a track (collection of regions). |
|
inlineprotected |
MultiRegLimit& multovl::MultiRegLimit::operator+= | ( | const MultiRegLimit & | rhs | ) |
Merges another MultiRegLimit object into the calling object.
rhs | the other MultiRegLimit object. |
MultiRegLimit& multovl::MultiRegLimit::operator= | ( | const MultiRegLimit & | rhs | ) |
Assignment Implements a deep copy of the underlying AncestorRegion objects just like the copy ctor
|
inline |