Main Page | Class Hierarchy | Class List | File List | Class Members

SeqLoc.hpp

00001 
00002 // Copyright (c) 2003, The Institute for Genomic Research (TIGR), Rockville,
00003 // Maryland, U.S.A.  All rights reserved.
00005 inline unsigned SeqLoc::length() const { return (abs(_end3-_end5)+1); }
00006 inline dsu::Strand_t SeqLoc::getStrnd() const { return _strnd; }
00007 inline int SeqLoc::getEnd5() const { return _end5; }
00008 inline int SeqLoc::getEnd3() const { return _end3; }
00009 
00010 bool operator<(const SeqLoc& as, const SeqLoc& bs) {
00011   if(as.getEnd5() < bs.getEnd5()) return true;
00012   if(as.getEnd5() == bs.getEnd5() &&
00013      as.getEnd3() < bs.getEnd3() ) return true;
00014   return false;
00015 }