diff BEDTools-Version-2.14.3/src/multiIntersectBed/intervalItem.h @ 1:bec36315bd12 default tip

Deleted selected files
author aaronquinlan
date Sat, 19 Nov 2011 14:17:03 -0500
parents dfcd8b6c1bda
children
line wrap: on
line diff
--- a/BEDTools-Version-2.14.3/src/multiIntersectBed/intervalItem.h	Thu Nov 03 10:25:04 2011 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-/*****************************************************************************
-  intervalItem.h
-
-  (c) 2010 - Assaf Gordon
-  Hall Laboratory
-  Department of Biochemistry and Molecular Genetics
-  University of Virginia
-  aaronquinlan@gmail.com
-
-  Licenced under the GNU General Public License 2.0 license.
-******************************************************************************/
-#ifndef INTERVALITEM_H
-#define INTERVALITEM_H
-
-#include <string>
-#include <queue>
-
-enum COORDINATE_TYPE {
-    START,
-    END
-};
-
-/*
-   An interval item in the priority queue.
-
-   An IntervalItem can mark either a START position or an END position.
- */
-class IntervalItem
-{
-
-
-public:
-    int source_index;           // which source BedGraph file this came from
-    COORDINATE_TYPE coord_type; // is this the start or the end position?
-    CHRPOS coord;
-
-    IntervalItem () :
-       source_index(-1),
-       coord_type(START),
-       coord(0)
-    {}
-    
-    IntervalItem(int _index, COORDINATE_TYPE _type, CHRPOS _coord) :
-        source_index(_index),
-        coord_type(_type),
-        coord(_coord)
-    {}
-
-    IntervalItem(const IntervalItem &other) :
-        source_index(other.source_index),
-        coord_type(other.coord_type),
-        coord(other.coord)
-    {}
-
-    bool operator< ( const IntervalItem& other ) const
-    {
-        return this->coord > other.coord;
-    }
-};
-
-// our priority queue
-typedef std::priority_queue<IntervalItem> INTERVALS_PRIORITY_QUEUE;
-
-#endif