namespace molSys#
Overview#
Bare-bones structs used throughout the architecture. More…
namespace molSys {
// enums
enum atom_state_type;
enum bond_type;
// structs
template <CoordinateScalar T>
struct Point;
template <typename S, CoordinateScalar T>
struct PointCloud;
struct Result;
// global functions
std::unordered_map<int, int> createIDMolIDmap(molSys::PointCloud<molSys::Point<double>, double>& yCloud);
std::unordered_multimap<int, int> createMolIDAtomIDMultiMap(molSys::PointCloud<molSys::Point<double>, double>& yCloud);
std::vector<std::vector<int>> hAtomMolList(molSys::PointCloud<molSys::Point<double>, double>& hCloud, molSys::PointCloud<molSys::Point<double>, double>& oCloud);
int searchMolList(const std::vector<std::vector<int>>& molList, int molIDtoFind);
molSys::PointCloud<molSys::Point<double>, double> clearPointCloud(molSys::PointCloud<molSys::Point<double>, double>& yCloud);
} // namespace molSys
Detailed Documentation#
Bare-bones structs used throughout the architecture.
@detials This namespace defines Point and PointCloud structs, alongwith other basic functions and enums.
PointCloud is a struct that contains the information of a collection of Point structs, at every frame. Point contains the coordinates and types of each point, along with information about whether the particular particle is within a slice or not.
Changelog#
Amrita Goswami [amrita16thaug646@gmail.com]; date modified: Sept 19, 2019
Rohit Goswami [rog32@hi.is]; date modified: Mar 20, 2021
Global Functions#
std::unordered_map<int, int> createIDMolIDmap(molSys::PointCloud<molSys::Point<double>, double>& yCloud)
Creates an unordered map, with the atomIDs as keys and molecular IDs as the values
std::unordered_multimap<int, int> createMolIDAtomIDMultiMap(molSys::PointCloud<molSys::Point<double>, double>& yCloud)
Creates an multimap with molecule IDs of the atoms as the keys and the atom IDs as the values. More than one atom can have the same molecule ID
std::vector<std::vector<int>> hAtomMolList(molSys::PointCloud<molSys::Point<double>, double>& hCloud, molSys::PointCloud<molSys::Point<double>, double>& oCloud)
Returns a vector of vectors, which contains the molIDs in the first column, and the hydrogen atom indices (not atom IDs) in the row
int searchMolList(const std::vector<std::vector<int>>& molList, int molIDtoFind)
This function searches a vector of vectors molList, for a particular molecular ID, and returns the index in molList
molSys::PointCloud<molSys::Point<double>, double> clearPointCloud(molSys::PointCloud<molSys::Point<double>, double>& yCloud)
//! Function for clearing vectors in PointCloud after multiple usage