DiscreteDistMat.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (C) 2004-2006 Rational Discovery LLC
00003 //
00004 //  @@ All Rights Reserved @@
00005 //  This file is part of the RDKit.
00006 //  The contents are covered by the terms of the BSD license
00007 //  which is included in the file license.txt, found at the root
00008 //  of the RDKit source tree.
00009 //
00010 #ifndef __RD_DISCRETEDISTMAT_H__
00011 #define __RD_DISCRETEDISTMAT_H__
00012 #include "DiscreteValueVect.h"
00013 
00014 namespace RDKit{
00015   class DiscreteDistMat {
00016   public:
00017     DiscreteDistMat();
00018     ~DiscreteDistMat(){};
00019     unsigned int getDist(unsigned char v1, 
00020                          unsigned char v2, 
00021                          DiscreteValueVect::DiscreteValueType type);
00022 
00023   private:
00024     unsigned int d_oneBitTab[256*256];
00025     unsigned int d_twoBitTab[256*256];
00026     unsigned int d_fourBitTab[256*256];
00027   
00028   };
00029   extern DiscreteDistMat *getDiscreteDistMat();
00030 }
00031 #endif