RDKit
Open-source cheminformatics and machine learning.
BitVectUtils.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2002-2006 greg Landrum, Rational Discovery LLC
3 //
4 // @@ All Rights Reserved @@
5 // This file is part of the RDKit.
6 // The contents are covered by the terms of the BSD license
7 // which is included in the file license.txt, found at the root
8 // of the RDKit source tree.
9 //
10 #ifndef __RD_BITVECTS_UTILS_H__
11 #define __RD_BITVECTS_UTILS_H__
12 
13 #include "BitVects.h"
14 #include <string>
15 
16 //! \brief Construct a BitVect from the ASCII representation of a
17 //! Daylight fingerprint string
18 template <typename T>
19 void FromDaylightString(T &sbv, const std::string &s);
20 
21 //! \brief Construct a BitVect from the ASCII representation of a
22 //! bit string (i.e. a bunch of zeros and ones)
23 template <typename T>
24 void FromBitString(T &sbv, const std::string &s);
25 
26 //! Convert a SparseBitVector to an ExplicitBitVector
27 /*!
28  \return a pointer to an ExplicitBitVector
29  <b>Note:</b> the caller is responsible for <tt>delete</tt>ing this.
30 
31  */
33 #endif
Pulls in all the BitVect classes.
ExplicitBitVect * convertToExplicit(const SparseBitVect *sbv)
Convert a SparseBitVector to an ExplicitBitVector.
void FromBitString(T &sbv, const std::string &s)
Construct a BitVect from the ASCII representation of a bit string (i.e. a bunch of zeros and ones) ...
a class for bit vectors that are sparsely occupied.
Definition: SparseBitVect.h:33
void FromDaylightString(T &sbv, const std::string &s)
Construct a BitVect from the ASCII representation of a Daylight fingerprint string.
a class for bit vectors that are densely occupied