multovl
1.3
Multiple overlaps of genomic regions
|
#include "reglimit.hh"
Public Member Functions | |
RegLimit () | |
Init to empty. | |
RegLimit (const boost::shared_ptr< AncestorRegion > ®p, bool isfirst=true) | |
const AncestorRegion & | region () const |
bool | is_first () const |
void | first (bool isfirst) |
Sets the first attribute of the calling object. | |
unsigned int | track_id () const |
unsigned int | this_pos () const |
unsigned int | other_pos () const |
bool | operator< (const RegLimit &other) const |
Ordering according to position, or first before last if the same position. | |
RegLimit | deep_copy () const |
const AncestorRegion * | const_raw_region_ptr () const |
AncestorRegion * | raw_region_ptr () |
Friends | |
class | boost::serialization::access |
Each ancestor region to be overlapped is stored twice in MultiRegion's lookup; once as a "first pos", and once as a "last pos". The RegLimit class implements these "region limit" objects. It can also be serialized.
|
inlineexplicit |
Init with a shared pointer to an ancestor region
regp | shared pointer to an ancestor region, usually created with boost::make_shared |
isfirst | true if first position, false if last |
|
inline |
Deep copy operation. The default copy ctor returns a shallow copy in the sense that only the internal shared pointer is copied but not the AncestorRegion it is pointing to, as it is to be expected from a boost::shared_ptr.
|
inline |
|
inline |
|
inline |
|
inline |