RDCode: DiscreteDistMat.h Source File

# DiscreteDistMat.h

Go to the documentation of this file.

    00001 //
    00002 //  Copyright (C) 2004-2006 Rational Discovery LLC
    00003 //
    00004 //  @@ All Rights Reserved @@
    00005 //
    00006 #ifndef __RD_DISCRETEDISTMAT_H__
    00007 #define __RD_DISCRETEDISTMAT_H__
    00008 #include "DiscreteValueVect.h"
    00009
    00010 namespace RDKit{
    00011   class DiscreteDistMat {
    00012   public:
    00013     DiscreteDistMat();
    00014     ~DiscreteDistMat(){};
    00015     unsigned int getDist(unsigned char v1,
    00016                          unsigned char v2,
    00017                          DiscreteValueVect::DiscreteValueType type);
    00018
    00019   private:
    00020     unsigned int d_oneBitTab[256*256];
    00021     unsigned int d_twoBitTab[256*256];
    00022     unsigned int d_fourBitTab[256*256];
    00023
    00024   };
    00025   extern DiscreteDistMat *getDiscreteDistMat();
    00026 }
    00027 #endif