Chemical Data Processing Library Python API - Version 1.2.0
|
Represents a data item in the structure or reaction data block of a MDL SD- or RD-File data record (see [CTFILE]). More...
Public Member Functions | |
None | __init__ () |
Constructs a StringDataBlockEntry object with an empty data header and content. | |
None | __init__ (StringDataBlockEntry entry) |
Initializes a copy of the StringDataBlockEntry instance entry. More... | |
None | __init__ (str header, str data) |
Constructs a StringDataBlockEntry object with the specified data header and content. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
StringDataBlockEntry | assign (StringDataBlockEntry entry) |
Replaces the current state of self with a copy of the state of the StringDataBlockEntry instance entry. More... | |
str | getHeader () |
Returns the data header. More... | |
None | setHeader (str header) |
Sets the data header. More... | |
str | getData () |
Returns the stored data content. More... | |
None | setData (str data) |
Sets the data content. More... | |
bool | __eq__ (StringDataBlockEntry entry) |
Equality comparison operator. More... | |
bool | __ne__ (StringDataBlockEntry entry) |
Inequality comparison operator. More... | |
bool | __le__ (StringDataBlockEntry entry) |
Returns the result of the comparison operation self <= entry . More... | |
bool | __ge__ (StringDataBlockEntry entry) |
Returns the result of the comparison operation self >= entry . More... | |
bool | __lt__ (StringDataBlockEntry entry) |
Returns the result of the comparison operation self < entry . More... | |
bool | __gt__ (StringDataBlockEntry entry) |
Returns the result of the comparison operation self > entry . More... | |
Properties | |
objectID = property(getObjectID) | |
header = property(getHeader, setHeader) | |
data = property(getData, setData) | |
Represents a data item in the structure or reaction data block of a MDL SD- or RD-File data record (see [CTFILE]).
None CDPL.Chem.StringDataBlockEntry.__init__ | ( | StringDataBlockEntry | entry | ) |
Initializes a copy of the StringDataBlockEntry instance entry.
entry | The StringDataBlockEntry instance to copy. |
None CDPL.Chem.StringDataBlockEntry.__init__ | ( | str | header, |
str | data | ||
) |
Constructs a StringDataBlockEntry
object with the specified data header and content.
header | The data header. |
data | The data content. |
int CDPL.Chem.StringDataBlockEntry.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python StringDataBlockEntry instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two StringDataBlockEntry instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
StringDataBlockEntry CDPL.Chem.StringDataBlockEntry.assign | ( | StringDataBlockEntry | entry | ) |
Replaces the current state of self with a copy of the state of the StringDataBlockEntry instance entry.
entry | The StringDataBlockEntry instance to copy. |
str CDPL.Chem.StringDataBlockEntry.getHeader | ( | ) |
Returns the data header.
None CDPL.Chem.StringDataBlockEntry.setHeader | ( | str | header | ) |
Sets the data header.
header | The new data header. |
str CDPL.Chem.StringDataBlockEntry.getData | ( | ) |
Returns the stored data content.
None CDPL.Chem.StringDataBlockEntry.setData | ( | str | data | ) |
Sets the data content.
data | The new data content. |
bool CDPL.Chem.StringDataBlockEntry.__eq__ | ( | StringDataBlockEntry | entry | ) |
Equality comparison operator.
entry | The other StringDataBlockEntry object to be compared with. |
True
if the data entry headers and values compare equal, and False
otherwise. bool CDPL.Chem.StringDataBlockEntry.__ne__ | ( | StringDataBlockEntry | entry | ) |
Inequality comparison operator.
The result is equivalent to !(self == entry)
.
entry | The other StringDataBlockEntry object to be compared with. |
True
if the data headers and/or values compare non-equal, and False
otherwise.bool CDPL.Chem.StringDataBlockEntry.__le__ | ( | StringDataBlockEntry | entry | ) |
Returns the result of the comparison operation self <= entry
.
entry | The StringDataBlockEntry instance to be compared with. |
bool CDPL.Chem.StringDataBlockEntry.__ge__ | ( | StringDataBlockEntry | entry | ) |
Returns the result of the comparison operation self >= entry
.
entry | The StringDataBlockEntry instance to be compared with. |
bool CDPL.Chem.StringDataBlockEntry.__lt__ | ( | StringDataBlockEntry | entry | ) |
Returns the result of the comparison operation self < entry
.
entry | The StringDataBlockEntry instance to be compared with. |
bool CDPL.Chem.StringDataBlockEntry.__gt__ | ( | StringDataBlockEntry | entry | ) |
Returns the result of the comparison operation self > entry
.
entry | The StringDataBlockEntry instance to be compared with. |