Input and output. More...
Data Structures | |
| struct | BinaryHandler |
| Binary file IO. More... | |
| struct | SmilesBondStereo |
| Helper class to represent the stereo configuration of a double bond as indicated in a SMILES string. More... | |
| class | MoleculeBuilder |
| Semantic interpreter of the smiles grammar, constructs molecules from the data accrued by the parser. More... | |
| struct | ElementData |
| struct | ChiralData |
| struct | AtomData |
| struct | BondData |
| class | LineNotation |
| Provides Molecule instances from line notations of molecules such as SMILES and InChI. More... | |
Functions | |
| std::pair < Utils::AtomCollection, Utils::BondOrderCollection > | exchangeFormat (const Molecule &molecule, AngstromPositions angstromWrapper) |
| Extract exchange format information from a molecule and positional data. More... | |
| std::pair < Utils::AtomCollection, Utils::BondOrderCollection > | exchangeFormat (const Molecule &molecule, const Utils::PositionCollection &positions) |
| std::tuple < Utils::AtomCollection, Utils::BondOrderCollection, std::vector< AtomIndex > > | shuffle (const Utils::AtomCollection &ac, const Utils::BondOrderCollection &bos) |
| Applies a random atom index permutation to exchange data. More... | |
| Molecule | read (const std::string &filename) |
| Read a single molecule from a file. More... | |
| std::vector< Molecule > | split (const std::string &filename) |
| Read multiple molecules from a file. More... | |
| void | write (const std::string &filename, const Molecule &molecule, const AngstromPositions &angstromWrapper) |
| Writer function for various chemical formats. More... | |
| void | write (const std::string &filename, const Molecule &molecule, const Utils::PositionCollection &positions) |
| void | write (const std::string &filename, const Molecule &molecule) |
| Writer function for Molecule serializations and graphviz representations. More... | |
Input and output.
| std::pair<Utils::AtomCollection, Utils::BondOrderCollection> Scine::Molassembler::IO::exchangeFormat | ( | const Molecule & | molecule, |
| AngstromPositions | angstromWrapper | ||
| ) |
Extract exchange format information from a molecule and positional data.
Complexity \(\Theta(N + B)\)
| std::pair<Utils::AtomCollection, Utils::BondOrderCollection> Scine::Molassembler::IO::exchangeFormat | ( | const Molecule & | molecule, |
| const Utils::PositionCollection & | positions | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| Molecule Scine::Molassembler::IO::read | ( | const std::string & | filename | ) |
Read a single molecule from a file.
Complexity \(\Theta(N)\) typically
| If | interpretation of coordinates and connectivity yields multiple molecules. |
| std::tuple<Utils::AtomCollection, Utils::BondOrderCollection, std::vector<AtomIndex> > Scine::Molassembler::IO::shuffle | ( | const Utils::AtomCollection & | ac, |
| const Utils::BondOrderCollection & | bos | ||
| ) |
Applies a random atom index permutation to exchange data.
Complexity \(\Theta(N + B)\)
| std::vector<Molecule> Scine::Molassembler::IO::split | ( | const std::string & | filename | ) |
| void Scine::Molassembler::IO::write | ( | const std::string & | filename, |
| const Molecule & | molecule, | ||
| const AngstromPositions & | angstromWrapper | ||
| ) |
Writer function for various chemical formats.
For exceptions this might throw,
Complexity \(\Theta(N)\)
| void Scine::Molassembler::IO::write | ( | const std::string & | filename, |
| const Molecule & | molecule, | ||
| const Utils::PositionCollection & | positions | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void Scine::Molassembler::IO::write | ( | const std::string & | filename, |
| const Molecule & | molecule | ||
| ) |
Writer function for Molecule serializations and graphviz representations.
Complexity \(\Theta(V + E + A + B)\)
| std::logic_error | If the file extension does not match .cbor, .bson, .json, .dot or .svg |
| std::runtime_error | If the file extension is .svg but the dot binary is not found in the path |