ARB
AP_seq_simple_pro.hxx
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : AP_seq_simple_pro.hxx //
4 // Purpose : //
5 // //
6 // Institute of Microbiology (Technical University Munich) //
7 // http://www.arb-home.de/ //
8 // //
9 // =============================================================== //
10 
11 #ifndef AP_SEQ_SIMPLE_PRO_HXX
12 #define AP_SEQ_SIMPLE_PRO_HXX
13 
14 #ifndef AP_SEQUENCE_HXX
15 #include <AP_sequence.hxx>
16 #endif
17 #ifndef DOWNCAST_H
18 #include <downcast.h>
19 #endif
20 
21 enum aas {
24 };
25 
26 typedef unsigned char ap_pro; // aas but only one character used
27 
28 class AP_sequence_simple_protein : public AP_sequence { // derived from a Noncopyable
29  ap_pro *sequence;
30 
31  void set(const char *sequence) OVERRIDE;
32  void unset() OVERRIDE;
33 
34 public:
35 
36  AP_sequence_simple_protein(const AliView *aliview);
38 
39  AP_sequence *dup() const OVERRIDE; // used to get the real new element
40 
41  const ap_pro *get_sequence() const { return sequence; }
42  ap_pro *get_sequence() { return sequence; }
43 };
44 
45 
46 #else
47 #error AP_seq_simple_pro.hxx included twice
48 #endif // AP_SEQ_SIMPLE_PRO_HXX
AP_sequence_simple_protein(const AliView *aliview)
unsigned char ap_pro
#define OVERRIDE
Definition: cxxforward.h:93
AP_sequence * dup() const OVERRIDE
const ap_pro * get_sequence() const