#include <cstdint>#include <functional>#include <memory>#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | eonc |
| RAII resource manager for the ARTn C library with global synchronization. | |
Typedefs | |
| using | eonc::ForceCallback |
| Callback type for potential energy/force evaluation. | |
| using | ForceCallback |
| Callback type for potential energy/force evaluation. | |
Functions | |
| void | eonc::startRpcServer (ForceCallback callback, const std::string &host, uint16_t port) |
| Start a blocking Cap'n Proto RPC server using a force callback. | |
| void | eonc::startPooledRpcServer (std::vector< ForceCallback > pool, const std::string &host, uint16_t port) |
| Start a blocking Cap'n Proto RPC server backed by a pool of force callbacks dispatched round-robin. | |
| void | startPooledRpcServer (std::vector< ForceCallback > pool, const std::string &host, uint16_t port) |
| Start a blocking Cap'n Proto RPC server backed by a pool of force callbacks dispatched round-robin. | |
| void | startRpcServer (ForceCallback callback, const std::string &host, uint16_t port) |
| Start a blocking Cap'n Proto RPC server using a force callback. | |
| using eonc::ForceCallback |
Callback type for potential energy/force evaluation.
Flat-array interface that avoids any AtomMatrix type dependency, preventing collisions between eOn's Eigen-based AtomMatrix and rgpot's custom AtomMatrix.
| nAtoms | Number of atoms. |
| positions | Flat array [x1,y1,z1, x2,y2,z2, ...] (nAtoms*3). |
| atomicNrs | Atomic numbers [Z1, Z2, ...] (nAtoms). |
| forces | Output forces [Fx1,Fy1,Fz1, ...] (nAtoms*3). |
| energy | Output energy (single double). |
| box | Simulation cell flat 3x3 row-major (9 doubles). |
Definition at line 36 of file ServeRpcServer.h.
| void eonc::startPooledRpcServer | ( | std::vector< ForceCallback > | pool, |
| const std::string & | host, | ||
| uint16_t | port ) |
Start a blocking Cap'n Proto RPC server backed by a pool of force callbacks dispatched round-robin.
| pool | Vector of force callbacks (one per pool instance). |
| host | The hostname to listen on. |
| port | The TCP port to listen on. |
Definition at line 61 of file ServeRpcServer.cpp.
| void eonc::startRpcServer | ( | ForceCallback | callback, |
| const std::string & | host, | ||
| uint16_t | port ) |
Start a blocking Cap'n Proto RPC server using a force callback.
Defined in a separate translation unit to avoid naming collision between eOn's class Potential and the capnp-generated Potential interface.
| callback | Force evaluation function. |
| host | The hostname to listen on. |
| port | The TCP port to listen on. |
Definition at line 50 of file ServeRpcServer.cpp.