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;
00063 
00069   void AddProteinDomain( const DomainType & domain, AffinityType affinity );
00070 
00071 
00075   void AddGeneControlDomain( const DomainType & domain, bool type );
00076 
00077 private:
00078   NameType                  m_Name;
00079   GeneControlDomainsType    m_ControlDomains;
00080   ProteinDomainsType        m_ProteinDomains; 
00081 };
00082 
00083 
00084 } // end namespace bio
00085 
00086 } // end namespace itk
00087 
00088 #endif
00089 
00090 
00091 

Generated at Tue Jul 29 19:15:26 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000