RDKit
Open-source cheminformatics and machine learning.
|
#include <Pairlist.h>
Public Types | |
using | pairing_t = std::uint64_t |
Public Member Functions | |
PairList ()=default | |
PairList (Descriptor ref) | |
PairList (const PairList &head, const PairList &tail) | |
Descriptor | getRefDescriptor () const |
bool | add (Descriptor descriptor) |
template<typename T > | |
void | addAll (const T &descriptors) |
pairing_t | getPairing () const |
int | compareTo (const PairList &that) const |
bool | operator< (const PairList &that) const |
std::string | toString () const |
Static Public Member Functions | |
static Descriptor | ref (Descriptor descriptor) |
Static Public Attributes | |
static constexpr int | numPairingBits = sizeof(pairing_t) * 8 |
Implementation of a descriptor list that allows descriptors to be added and ignored. The list maintains an integer value throughout which stores the pairing of descriptors and allows easy comparison between descriptor lists in that higher priority descriptor pairing will always have a higher integer value. The integer value can be access via the getPairing()
method.
Definition at line 32 of file Pairlist.h.
using RDKit::CIPLabeler::PairList::pairing_t = std::uint64_t |
Definition at line 34 of file Pairlist.h.
|
default |
|
inline |
Definition at line 54 of file Pairlist.h.
Creates a new list from a provided head and tail. The head and tail ignored descriptors are first transferred and then their descriptors. In either list, descriptors that are ignored by the other will be not be added to the new instance.
head | the head of the list (prefix) |
tail | the tail of the list (suffix) |
Definition at line 65 of file Pairlist.h.
References addAll(), and RDKit::rdvalue_is().
|
inline |
Adds a descriptor to the descriptor list. If the provided descriptor is present in the ignore set the descriptor will not be added.
descriptor | the descriptor to add. |
Definition at line 81 of file Pairlist.h.
References RDKit::CIPLabeler::M, RDKit::CIPLabeler::P, RDKit::CIPLabeler::R, RDKit::CIPLabeler::S, RDKit::CIPLabeler::seqCis, and RDKit::CIPLabeler::seqTrans.
Referenced by addAll(), and PairList().
Adds multiple descriptors to the descriptor list. If the descriptor is present in the ignore set it will not be added to the list.
descriptors | a collection of descriptors to be added |
Definition at line 103 of file Pairlist.h.
References add(), and RDKit::rdvalue_is().
Referenced by PairList().
Definition at line 119 of file Pairlist.h.
References RDKit::rdvalue_is().
Referenced by operator<().
|
inline |
Access a positive integer that represents the like/unlike pairings of this descriptor list. The like/unlike is represented by set bits in an integer value and means larger integer values indicates a higher descriptor pairing preference.
Definition at line 117 of file Pairlist.h.
|
inline |
Definition at line 71 of file Pairlist.h.
References ref().
Definition at line 136 of file Pairlist.h.
References compareTo(), and RDKit::rdvalue_is().
|
inlinestatic |
Definition at line 37 of file Pairlist.h.
References RDKit::CIPLabeler::M, RDKit::CIPLabeler::NONE, RDKit::CIPLabeler::P, RDKit::CIPLabeler::R, RDKit::CIPLabeler::S, RDKit::CIPLabeler::seqCis, and RDKit::CIPLabeler::seqTrans.
Referenced by getRefDescriptor(), PairList(), and toString().
|
inline |
Definition at line 138 of file Pairlist.h.
References RDKit::CIPLabeler::NONE, RDKit::rdvalue_is(), ref(), and RDKit::CIPLabeler::to_string().
Definition at line 35 of file Pairlist.h.