Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkBioGene.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBioGene.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:28 $ 00007 Version: $Revision: 1.4 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkBioGene_h_ 00018 #define __itkBioGene_h_ 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include <string> 00025 #include <vector> 00026 #include <map> 00027 00028 namespace itk { 00029 00030 namespace bio { 00031 00041 class Gene 00042 { 00043 public: 00044 typedef std::string NameType; 00045 typedef std::string DomainType; 00046 typedef double AffinityType; 00047 typedef std::map< DomainType, AffinityType > ProteinDomainsType; 00048 00049 typedef struct { DomainType domain; bool type; } ControlDomainType; 00050 typedef std::vector< ControlDomainType > GeneControlDomainsType; 00051 00052 public: 00053 Gene(); 00054 virtual ~Gene(); 00055 00056 void Copy( const Gene & genome ); 00057 00059 void SetName( const NameType & name ); 00060 void SetName( const char * name ); 00061 const char * GetName() const; 00062 00068 void AddProteinDomain( const DomainType & domain, AffinityType affinity ); 00069 00070 00074 void AddGeneControlDomain( const DomainType & domain, bool type ); 00075 00076 private: 00077 NameType m_Name; 00078 GeneControlDomainsType m_ControlDomains; 00079 ProteinDomainsType m_ProteinDomains; 00080 }; 00081 00082 00083 } // end namespace bio 00084 00085 } // end namespace itk 00086 00087 #endif 00088 00089

Generated at Sat Mar 31 02:14:38 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000