RDKit
Open-source cheminformatics and machine learning.
Priority.h
Go to the documentation of this file.
1
//
2
//
3
// Copyright (C) 2020 Schrödinger, LLC
4
//
5
// @@ All Rights Reserved @@
6
// This file is part of the RDKit.
7
// The contents are covered by the terms of the BSD license
8
// which is included in the file license.txt, found at the root
9
// of the RDKit source tree.
10
//
11
#pragma once
12
13
namespace
RDKit
{
14
namespace
CIPLabeler {
15
16
/**
17
* Holds some properties that are determined when sorting/prioritising
18
* substituents.
19
*
20
*/
21
class
Priority
{
22
23
public
:
24
Priority
() =
delete
;
25
26
Priority
(
bool
unique,
bool
pseudoAsym)
27
: d_unique{unique}, d_pseudoAsym{pseudoAsym} {}
28
29
/**
30
* Indicates whether the substituents were unique (i.e. could be ordered)
31
*
32
* @return whether the substituents were unique
33
*/
34
bool
isUnique
()
const
{
return
d_unique; }
35
36
/**
37
* Indicates the descriptor type used to. This allows methods that represent
38
* pseudo-asymmetric molecules to indicate that the centre is
39
* pseudo-asymmetric.
40
*
41
* @return The type of the descriptor that should be assigned
42
*/
43
bool
isPseudoAsymetric
()
const
{
return
d_pseudoAsym; }
44
45
private
:
46
bool
d_unique;
47
bool
d_pseudoAsym;
48
};
49
50
}
// namespace CIPLabeler
51
}
// namespace RDKit
RDKit::CIPLabeler::Priority
Definition:
Priority.h:21
RDKit::CIPLabeler::Priority::isUnique
bool isUnique() const
Definition:
Priority.h:34
RDKit::CIPLabeler::Priority::Priority
Priority(bool unique, bool pseudoAsym)
Definition:
Priority.h:26
RDKit::CIPLabeler::Priority::Priority
Priority()=delete
RDKit::CIPLabeler::Priority::isPseudoAsymetric
bool isPseudoAsymetric() const
Definition:
Priority.h:43
RDKit
Std stuff.
Definition:
Abbreviations.h:17
GraphMol
CIPLabeler
Priority.h
Generated on Tue Sep 28 2021 12:56:39 for RDKit by
1.9.1