Loading...
Searching...
No Matches
ServeRpcServer.cpp File Reference

Cap'n Proto RPC server using flat-array force callbacks. More...

#include "eon/ServeRpcServer.h"
#include "eon/BaseStructures.h"
#include "eon/EonLogger.h"
#include <atomic>
#include <capnp/ez-rpc.h>
#include <kj/debug.h>
#include <mutex>
#include "Potentials.capnp.h"

Go to the source code of this file.

Detailed Description

Cap'n Proto RPC server using flat-array force callbacks.

This translation unit does NOT include eOn's Potential.h to avoid naming collision with the capnp-generated Potential interface class.

Uses a ForceCallback (std::function taking flat arrays) instead of rgpot::PotentialBase to avoid the AtomMatrix type collision between eOn's Eigen-based AtomMatrix and rgpot's custom AtomMatrix.

Definition in file ServeRpcServer.cpp.