Classes | Namespaces | Macros | Functions | Variables
PlumedMainInitializer.cpp File Reference
#include "PlumedMainInitializer.h"
#include "PlumedMain.h"
#include "tools/Exception.h"
#include "lepton/Exception.h"
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <exception>
#include <stdexcept>
#include <ios>
#include <new>
#include <typeinfo>

Classes

class  PLMD::PlumedMainInitializer
 Static object which registers Plumed. More...
 

Namespaces

 PLMD
 

Macros

#define plumed_convert_fptr(ptr, fptr)   { ptr=NULL; std::memcpy(&ptr,&fptr,(sizeof(fptr)>sizeof(ptr)?sizeof(ptr):sizeof(fptr))); }
 

Functions

void plumed_plumedmain_cmd (void *plumed, const char *key, const void *val)
 Send a command key and a pointer val to a void pointer returned by plumed_plumedmain_create. More...
 
void plumed_plumedmain_cmd_nothrow (void *plumed, const char *key, const void *val, plumed_nothrow_handler nothrow)
 
void * plumed_plumedmain_create ()
 Constructs a plumed object. More...
 
void plumed_plumedmain_finalize (void *plumed)
 Finalize a void pointer returned by plumed_plumedmain_create. More...
 
void plumed_symbol_table_init ()
 Function that makes sure that plumed_symbol_table is initialized. More...
 

Variables

plumed_symbol_table_type plumed_symbol_table
 
static class PLMD::PlumedMainInitializer PLMD::PlumedMainInitializerRegisterMe
 

Macro Definition Documentation

◆ plumed_convert_fptr

#define plumed_convert_fptr (   ptr,
  fptr 
)    { ptr=NULL; std::memcpy(&ptr,&fptr,(sizeof(fptr)>sizeof(ptr)?sizeof(ptr):sizeof(fptr))); }

Function Documentation

◆ plumed_plumedmain_cmd()

void plumed_plumedmain_cmd ( void *  plumed,
const char *  key,
const void *  val 
)

Send a command key and a pointer val to a void pointer returned by plumed_plumedmain_create.

◆ plumed_plumedmain_cmd_nothrow()

void plumed_plumedmain_cmd_nothrow ( void *  plumed,
const char *  key,
const void *  val,
plumed_nothrow_handler  nothrow 
)

◆ plumed_plumedmain_create()

void* plumed_plumedmain_create ( )

Constructs a plumed object.

This function returns a void pointer that can be used in plumed_plumedmain_cmd and plumed_plumedmain_finalize.

◆ plumed_plumedmain_finalize()

void plumed_plumedmain_finalize ( void *  plumed)

Finalize a void pointer returned by plumed_plumedmain_create.

◆ plumed_symbol_table_init()

void plumed_symbol_table_init ( )

Function that makes sure that plumed_symbol_table is initialized.

Can be called multiple times.

Variable Documentation

◆ plumed_symbol_table

plumed_symbol_table_type plumed_symbol_table
plumed_plumedmain_cmd
void plumed_plumedmain_cmd(void *plumed, const char *key, const void *val)
Send a command key and a pointer val to a void pointer returned by plumed_plumedmain_create.
Definition: PlumedMainInitializer.cpp:64
plumed_plumedmain_create
void * plumed_plumedmain_create()
Constructs a plumed object.
Definition: PlumedMainInitializer.cpp:51
plumed_plumedmain_finalize
void plumed_plumedmain_finalize(void *plumed)
Finalize a void pointer returned by plumed_plumedmain_create.
Definition: PlumedMainInitializer.cpp:162
plumed_plumedmain_cmd_nothrow
void plumed_plumedmain_cmd_nothrow(void *plumed, const char *key, const void *val, plumed_nothrow_handler nothrow)
Definition: PlumedMainInitializer.cpp:70