![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <Pairlist.h>
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) |
std::uint32_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) |
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.
|
default |
|
inline |
Definition at line 51 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 62 of file Pairlist.h.
References addAll().
|
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 78 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().
|
inline |
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 99 of file Pairlist.h.
References add().
Referenced by PairList().
|
inline |
Definition at line 115 of file Pairlist.h.
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 113 of file Pairlist.h.
|
inline |
Definition at line 68 of file Pairlist.h.
References ref().
|
inline |
Definition at line 132 of file Pairlist.h.
References compareTo().
|
inlinestatic |
Definition at line 34 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 134 of file Pairlist.h.
References RDKit::CIPLabeler::NONE, ref(), and RDKit::CIPLabeler::to_string().