00001 // 00002 // Copyright (c) 2002-2006 greg Landrum, 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_BITVECTS_UTILS_H__ 00011 #define __RD_BITVECTS_UTILS_H__ 00012 00013 #include "BitVects.h" 00014 #include <string> 00015 00016 //! \brief Construct a BitVect from the ASCII representation of a 00017 //! Daylight fingerprint string 00018 template <typename T> 00019 void FromDaylightString(T &sbv,std::string s); 00020 00021 //! \brief Construct a BitVect from the ASCII representation of a 00022 //! bit string (i.e. a bunch of zeros and ones) 00023 template <typename T> 00024 void FromBitString(T &sbv,const std::string &s); 00025 00026 00027 //! Convert a SparseBitVector to an ExplicitBitVector 00028 /*! 00029 \return a pointer to an ExplicitBitVector 00030 <b>Note:</b> the caller is responsible for <tt>delete</tt>ing this. 00031 00032 */ 00033 ExplicitBitVect *convertToExplicit(const SparseBitVect *sbv); 00034 #endif
1.7.1