Debian Codegraph @

atac-driver/libatac/atacFeatureList.H

raw symbols SCIP
1 // This file is part of A2Amapper.
2 // Copyright (c) 2005 J. Craig Venter Institute
3 // Author: Brian Walenz
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received (LICENSE.txt) a copy of the GNU General Public
16 // License along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 #ifndef ATAC_FEATURELIST_H
20 #define ATAC_FEATURELIST_H
21
22 #include <string>
23 #include <map>
24 using namespace std;
25
26 #include "bio++.H"
27
28
29 class atacFeatureList {
30 public:
31 atacFeatureList();
32 ~atacFeatureList();
33
34 uint32 numberOfFeatures(void) { return(_featuresLen); };
35 atacFeature *getFeature(uint32 i) { return(_features + i); };
36 atacFeature *operator[](uint32 i) { return(_features + i); };
37
38 void add(atacFeature &m);
39 //void delete();
40
41 // Sort by the A assembly or B assembly location
42 void sort(uint32 first=0, uint32 len=0);
43 void sortFeatureUID(uint32 first=0, uint32 len=0);
44 void sortParentUID(uint32 first=0, uint32 len=0);
45
46 private:
47 uint32 _featuresLen;
48 uint32 _featuresMax;
49 atacFeature *_features;
50 };
51
52 #endif // ATAC_FEATURELIST_H