Loading...
Searching...
No Matches
RgpotAdapter.h File Reference
#include <memory>
#include <vector>
#include "eon/Potential.h"
#include "rgpot/ForceStructs.hpp"
#include "rgpot/pot_caps.hpp"

Go to the source code of this file.

Classes

class  RgpotAdapter< RPot >
 Wraps one rgpot kernel as an eOn Potential. More...

Functions

template<class RPot>
std::shared_ptr< PotentialmakeRgpotDefault (PotType ptype, const Parameters &params)
 Factory arm helper for kernels whose parameters are fixed tabulated data with no eOn-side configuration surface.
template<class RPot, class Cfg>
std::shared_ptr< PotentialmakeRgpot (PotType ptype, const Parameters &params, const Cfg &cfg)
 Factory arm helper: construct the kernel from its config and wrap it.

Function Documentation

◆ makeRgpot()

template<class RPot, class Cfg>
std::shared_ptr< Potential > makeRgpot ( PotType ptype,
const Parameters & params,
const Cfg & cfg )

Factory arm helper: construct the kernel from its config and wrap it.

Definition at line 122 of file RgpotAdapter.h.

123 {
124 return std::make_shared<RgpotAdapter<RPot>>(ptype, params, cfg);
125}

◆ makeRgpotDefault()

template<class RPot>
std::shared_ptr< Potential > makeRgpotDefault ( PotType ptype,
const Parameters & params )

Factory arm helper for kernels whose parameters are fixed tabulated data with no eOn-side configuration surface.

Definition at line 115 of file RgpotAdapter.h.

116 {
117 return std::make_shared<RgpotAdapter<RPot>>(ptype, params);
118}