NetSci
|
Public Member Functions | |
Atoms () | |
Default constructor for Atoms. | |
void | addAtom (Atom *atom) |
Add an Atom to the Atoms collection. | |
int | numAtoms () const |
Get the number of Atoms in the collection. | |
Atom * | at (int atomIndex) |
Get the Atom with the specified index. | |
int | numUniqueTags () const |
Get the number of unique Atom tags. | |
std::vector< Atom * > & | atoms () |
Get a reference to the vector of Atoms. | |
Private Attributes | |
std::vector< Atom * > | atoms_ |
std::set< std::string > | uniqueTags_ |
void Atoms::addAtom | ( | Atom * | atom | ) |
Atom * Atoms::at | ( | int | atomIndex | ) |
Get the Atom with the specified index.
Returns a pointer to the Atom with the specified index.
atomIndex | The index of the Atom. |
Python Example
std::vector< Atom * > & Atoms::atoms | ( | ) |
Get a reference to the vector of Atoms.
Returns a reference to the vector of Atoms.
Python Example
int Atoms::numAtoms | ( | ) | const |
Get the number of Atoms in the collection.
Returns the number of Atoms in the collection.
Python Example
int Atoms::numUniqueTags | ( | ) | const |