ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkBioGene.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkBioGene_h
19 #define __itkBioGene_h
20 
21 
22 #include <string>
23 #include <vector>
24 #include <map>
25 #include "itkMacro.h"
26 
27 namespace itk
28 {
29 namespace bio
30 {
42 class ITK_EXPORT Gene
43 {
44 public:
45  typedef std::string NameType;
46  typedef std::string DomainType;
47  typedef double AffinityType;
48  typedef std::map< DomainType, AffinityType > ProteinDomainsType;
49 
50  typedef struct {
52  bool m_Type;
54 
55  typedef std::vector< ControlDomainType > GeneControlDomainsType;
56 
57 public:
58  Gene();
59  virtual ~Gene();
60 
61  void Copy(const Gene & genome);
62 
64  void SetName(const NameType & name);
65 
66  void SetName(const char *name);
67 
68  const char * GetName() const;
69 
75  void AddProteinDomain(const DomainType & domain, AffinityType affinity);
76 
80  void AddGeneControlDomain(const DomainType & domain, bool type);
81 
82 private:
86 };
87 } // end namespace bio
88 } // end namespace itk
89 
90 #endif
91