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: 2009-05-02 14:24:28 $
00007   Version:   $Revision: 1.6 $
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 
00050     { 
00051     DomainType m_Domain; 
00052     bool       m_Type;
00053     }                                             ControlDomainType;
00054 
00055   typedef   std::vector< ControlDomainType >         GeneControlDomainsType;
00056 
00057 public:
00058   Gene();
00059   virtual ~Gene();
00060 
00061   void Copy( const Gene & genome );
00062 
00064   void SetName( const NameType & name );
00065   void SetName( const char * name );
00066   const char * GetName() const;
00068 
00074   void AddProteinDomain( const DomainType & domain, AffinityType affinity );
00075 
00076 
00080   void AddGeneControlDomain( const DomainType & domain, bool type );
00081 
00082 private:
00083   NameType                  m_Name;
00084   GeneControlDomainsType    m_ControlDomains;
00085   ProteinDomainsType        m_ProteinDomains; 
00086 };
00087 
00088 
00089 } // end namespace bio
00090 
00091 } // end namespace itk
00092 
00093 #endif
00094 

Generated at Tue Sep 15 02:21:26 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000