Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
ConnectivityFileHandler.h
Go to the documentation of this file.
1 
8 #ifndef SWOOSEUTILITIES_CONNECTIVITYFILEHANDLER_H
9 #define SWOOSEUTILITIES_CONNECTIVITYFILEHANDLER_H
10 
11 #include <list>
12 #include <string>
13 #include <vector>
14 
15 namespace Scine {
16 namespace SwooseUtilities {
22  public:
23  ConnectivityFileHandler() = delete;
29  static std::vector<std::list<int>> readListsOfNeighbors(const std::string& filename);
35  static void writeListsOfNeighbors(const std::string& filename, const std::vector<std::list<int>>& listsOfNeighbors);
36 };
37 
38 } // namespace SwooseUtilities
39 } // namespace Scine
40 
41 #endif // SWOOSEUTILITIES_CONNECTIVITYFILEHANDLER_H
static std::vector< std::list< int > > readListsOfNeighbors(const std::string &filename)
Reads the lists of neighbors from a file.
Definition: ConnectivityFileHandler.cpp:15
static void writeListsOfNeighbors(const std::string &filename, const std::vector< std::list< int >> &listsOfNeighbors)
Writes all the neighbors of every atom to a file, i.e. the connectivity of the system.
Definition: ConnectivityFileHandler.cpp:65
Method for reading and writing the connectivity of atoms (list of neighbors for each atom)...
Definition: ConnectivityFileHandler.h:21