Base for classes with cmd() method.
More...
#include <WithCmd.h>
|
struct | SizeLike |
| Small structure used to pass elements of a shape initializer_list. More...
|
|
|
virtual | ~WithCmd () |
|
void | cmd (const char *key, const TypesafePtr &val=nullptr) |
| This is needed to avoid ambiguities. More...
|
|
virtual void | cmd (const std::string &key, const TypesafePtr &val=nullptr) |
| This is the legacy method we used in older plumed versions, so it is still possible. More...
|
|
void | cmd (std::string_view key, const TypesafePtr &val, const std::size_t *shape) |
|
template<typename I , typename std::enable_if< std::is_integral< I >::value, int >::type = 0> |
void | cmd (std::string_view key, const TypesafePtr &val, I nelem, const std::size_t *shape=nullptr) |
|
void | cmd (std::string_view key, const TypesafePtr &val, std::initializer_list< SizeLike > shape) |
|
virtual void | cmd (std::string_view key, const TypesafePtr &val=nullptr) |
| This is the preferred method as it avoid allocations of temporaries. More...
|
|
Base for classes with cmd() method.
This is an abstract base class for classes with cmd() method.
◆ ~WithCmd()
PLMD::WithCmd::~WithCmd |
( |
| ) |
|
|
inlinevirtual |
◆ cmd() [1/6]
This is needed to avoid ambiguities.
◆ cmd() [2/6]
virtual void PLMD::WithCmd::cmd |
( |
const std::string & |
key, |
|
|
const TypesafePtr & |
val = nullptr |
|
) |
| |
|
inlinevirtual |
This is the legacy method we used in older plumed versions, so it is still possible.
If this is not overridden, it will call the preferred method
◆ cmd() [3/6]
void PLMD::WithCmd::cmd |
( |
std::string_view |
key, |
|
|
const TypesafePtr & |
val, |
|
|
const std::size_t * |
shape |
|
) |
| |
|
inline |
◆ cmd() [4/6]
template<typename I , typename std::enable_if< std::is_integral< I >::value, int >::type = 0>
void PLMD::WithCmd::cmd |
( |
std::string_view |
key, |
|
|
const TypesafePtr & |
val, |
|
|
I |
nelem, |
|
|
const std::size_t * |
shape = nullptr |
|
) |
| |
|
inline |
◆ cmd() [5/6]
void PLMD::WithCmd::cmd |
( |
std::string_view |
key, |
|
|
const TypesafePtr & |
val, |
|
|
std::initializer_list< SizeLike > |
shape |
|
) |
| |
|
inline |
◆ cmd() [6/6]
virtual void PLMD::WithCmd::cmd |
( |
std::string_view |
key, |
|
|
const TypesafePtr & |
val = nullptr |
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following file: