STORMM Source Documentation
Loading...
Searching...
No Matches
mdlmol_atomlist.h
1// -*-c++-*-
2#ifndef STORMM_MOLOBJ_ATOMLIST_H
3#define STORMM_MOLOBJ_ATOMLIST_H
4
5#include <string>
6#include <vector>
7#include "copyright.h"
8#include "Parsing/textfile.h"
9
10namespace stormm {
11namespace structure {
12
13using parse::TextFile;
14
18public:
19
28 MdlMolAtomList(const std::vector<int> &atomic_numbers_in = {}, bool exclusions_in = false,
29 int atom_attachment_in = 0);
30
31 MdlMolAtomList(const TextFile &tf, int line_number, const std::string &title = std::string(""));
33
37 MdlMolAtomList(const MdlMolAtomList &original) = default;
38 MdlMolAtomList(MdlMolAtomList &&original) = default;
39 MdlMolAtomList& operator=(const MdlMolAtomList &other) = default;
40 MdlMolAtomList& operator=(MdlMolAtomList &&other) = default;
42
44 int getEntryCount() const;
45
49 int getEntry(int index) const;
50
52 bool applyToExclusions() const;
53
56 char getExclusionCode() const;
57
59 int getAttachmentPoint() const;
60
61private:
62 int entry_count;
64 std::vector<int> atomic_numbers;
66 bool exclusions;
68 int atom_attachment;
70};
71
72} // namespace structure
73} // namespace stormm
74
75#endif
Structure for translating a text file into a compact, rapidly parsable vector of characters in CPU RA...
Definition textfile.h:45
MdlMolAtomList(const std::vector< int > &atomic_numbers_in={}, bool exclusions_in=false, int atom_attachment_in=0)
The constructor can take all member variables (and all come with default values to let this form of t...
Definition mdlmol_atomlist.cpp:23
int getEntry(int index) const
Get one of the elemental entries.
Definition mdlmol_atomlist.cpp:150
int getAttachmentPoint() const
Get the central atom to which all listed elements will attach.
Definition mdlmol_atomlist.cpp:169
int getEntryCount() const
Get the number of element (atomic number) entries.
Definition mdlmol_atomlist.cpp:145
MdlMolAtomList(const MdlMolAtomList &original)=default
The default copy and move constructors, as well as copy and move assignment operators,...
bool applyToExclusions() const
Get a TRUE or FALSE reading on whether this atom list pertains to exclusions.
Definition mdlmol_atomlist.cpp:159
char getExclusionCode() const
Get the coded letter for a V2000 atom list block entry detailing the exclusion behavior.
Definition mdlmol_atomlist.cpp:164