35 #ifndef MULTOVL_ANCREGION_HEADER
36 #define MULTOVL_ANCREGION_HEADER
54 #include <boost/serialization/base_object.hpp>
69 boost::less_than_comparable< AncestorRegion,
70 boost::equality_comparable<AncestorRegion> >
79 Region(region), _trackid(trackid) {}
86 char s,
const std::string& nm,
unsigned int trackid = 0):
87 Region(f, l, s, nm), _trackid(trackid) {}
90 const unsigned int&
track_id()
const {
return _trackid; }
93 unsigned int track_id(
unsigned int trackid);
110 unsigned int _trackid;
113 friend class boost::serialization::access;
114 template <
class Archive>
115 void save(Archive& ar,
const unsigned int version)
const
117 ar << boost::serialization::base_object<Region>(*this);
121 template <
class Archive>
122 void load(Archive& ar,
const unsigned int version)
124 ar >> boost::serialization::base_object<Region>(*this);
127 BOOST_SERIALIZATION_SPLIT_MEMBER()
138 #endif // MULTOVL_ANCREGION_HEADER
std::multiset< AncestorRegion > ancregset_t
Definition: ancregion.hh:134
bool operator==(const AncestorRegion &rhs) const
Equality. All fields must be equal.
AncestorRegion()
Init to empty.
Definition: ancregion.hh:75
std::string to_attrstring() const
AncestorRegion objects represent the regions that give rise to overlaps. They are essentially Region-...
Definition: ancregion.hh:68
bool operator<(const AncestorRegion &rhs) const
const unsigned int & track_id() const
Returns the current track ID.
Definition: ancregion.hh:90
Instances of the Region class represent regions on a sequence. They have first and last coordinates...
Definition: region.hh:65
Genomic regions with coordinates and a name.
AncestorRegion(const Region ®ion, unsigned int trackid=0)
Init with base class /region/ and /trackid/ (default 0)
Definition: ancregion.hh:78
AncestorRegion(unsigned int f, unsigned int l, char s, const std::string &nm, unsigned int trackid=0)
Definition: ancregion.hh:85