BitVectUtils.h

Go to the documentation of this file.
00001 //
00002 // Copyright (c) 2002-2006 greg Landrum, Rational Discovery LLC
00003 //
00004 //  @@ All Rights Reserved @@
00005 //
00006 #ifndef __RD_BITVECTS_UTILS_H__
00007 #define __RD_BITVECTS_UTILS_H__
00008 
00009 #include "BitVects.h"
00010 #include <string>
00011 
00012 //! \brief Construct a BitVect from the ASCII representation of a
00013 //! Daylight fingerprint string
00014 template <typename T>
00015 void FromDaylightString(T &sbv,std::string s);
00016 
00017 //! \brief Construct a BitVect from the ASCII representation of a
00018 //! bit string (i.e. a bunch of zeros and ones)
00019 template <typename T>
00020 void FromBitString(T &sbv,const std::string &s);
00021 
00022 
00023 //! Convert a SparseBitVector to an ExplicitBitVector
00024 /*!
00025   \return a pointer to an ExplicitBitVector
00026   <b>Note:</b> the caller is responsible for <tt>delete</tt>ing this.
00027 
00028  */
00029 ExplicitBitVect *convertToExplicit(const SparseBitVect *sbv);
00030 #endif

Generated on Sat May 24 08:36:32 2008 for RDCode by  doxygen 1.5.3