OEBroodDBPacket¶
Attention
This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.
class OEBroodDBPacket
This class defines objects that holds a chunk of fragment data corresponding to a Brood database. The packet contain additional metadata information that can be used to check its relevance for bioisosteric replacement of a specific :ref: OEBroodQuery<OEBioisostere_OEBroodQuery>.
- The OEBroodDBPacket class defines the following public methods:
Constructors¶
OEBroodDBPacket()
OEBroodDBPacket(const OEBroodDBPacket &)
Default and copy constructors.
GetFragCount¶
unsigned GetFragCount() constReturns the number of fragments contained in the packet.
IsValid¶
bool IsValid(const OEBroodDBFilter &filter)Returns if the packet contents are relevant for :ref: OEBroodQuery<OEBioisostere_OEBroodQuery> associated with the :ref: OEBroodDBFilter<OEBioisostere_OEBroodDBFilter>.
Load¶
bool Load(const OEDataFlow::OERecord &)Loads the contents of packet from a :ref: OERecord<OEDataFlow_OERecord>.
ToRecord¶
bool ToRecord(OEDataFlow::OERecord &) constSaves the contents of packet into a :ref: OERecord<OEDataFlow_OERecord>.