Namespaces | Macros | Functions
PlumedMain.cpp File Reference
#include "PlumedMain.h"
#include "ActionAtomistic.h"
#include "ActionPilot.h"
#include "ActionForInterface.h"
#include "ActionRegister.h"
#include "ActionSet.h"
#include "ActionWithValue.h"
#include "ActionWithVirtualAtom.h"
#include "ActionToGetData.h"
#include "ActionToPutData.h"
#include "CLToolMain.h"
#include "ExchangePatterns.h"
#include "GREX.h"
#include "DomainDecomposition.h"
#include "config/Config.h"
#include "tools/Citations.h"
#include "tools/Communicator.h"
#include "tools/DLLoader.h"
#include "tools/Exception.h"
#include "tools/IFile.h"
#include "tools/Log.h"
#include "tools/OpenMP.h"
#include "tools/Tools.h"
#include "tools/Stopwatch.h"
#include "tools/TypesafePtr.h"
#include "lepton/Exception.h"
#include "DataPassingTools.h"
#include "small_vector/small_vector.h"
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <set>
#include <exception>
#include <stdexcept>
#include <ios>
#include <new>
#include <typeinfo>
#include <iostream>
#include <algorithm>
#include <system_error>
#include <future>
#include <memory>
#include <functional>
#include <regex>
#include <any>
#include <optional>
#include <variant>
#include <filesystem>
#include "PlumedMainEnum.inc"
#include "PlumedMainMap.inc"

Namespaces

 PLMD
 

Macros

#define __PLUMED_THROW_FUTURE(name)   if(words[1]=="std::future_errc::" #name) throw std::future_error(::std::future_errc::name)
 
#define __PLUMED_THROW_MSG(type)   if(words[0]==#type) throw type(what)
 
#define __PLUMED_THROW_NOMSG(type)   if(words[0]==#type) throw type()
 
#define __PLUMED_THROW_REGEX(name)   if(words[1]=="std::regex_constants::error_" #name) throw std::regex_error(std::regex_constants::error_ ##name)
 
#define CHECK_INIT(ini, word)   plumed_assert(ini)<<"cmd(\"" << word << "\") should be only used after plumed initialization"
 
#define CHECK_NOTINIT(ini, word)   plumed_assert(!(ini))<<"cmd(\"" << word << "\") should be only used before plumed initialization"
 
#define CHECK_NOTNULL(val, word)   plumed_assert(val)<<"NULL pointer received in cmd(\"" << word << "\")"
 

Functions

static void PLMD::testThrow (const char *what)
 Small utility just used in this file to throw arbitrary exceptions. More...
 

Macro Definition Documentation

◆ __PLUMED_THROW_FUTURE

#define __PLUMED_THROW_FUTURE (   name)    if(words[1]=="std::future_errc::" #name) throw std::future_error(::std::future_errc::name)

◆ __PLUMED_THROW_MSG

#define __PLUMED_THROW_MSG (   type)    if(words[0]==#type) throw type(what)

◆ __PLUMED_THROW_NOMSG

#define __PLUMED_THROW_NOMSG (   type)    if(words[0]==#type) throw type()

◆ __PLUMED_THROW_REGEX

#define __PLUMED_THROW_REGEX (   name)    if(words[1]=="std::regex_constants::error_" #name) throw std::regex_error(std::regex_constants::error_ ##name)

◆ CHECK_INIT

#define CHECK_INIT (   ini,
  word 
)    plumed_assert(ini)<<"cmd(\"" << word << "\") should be only used after plumed initialization"

◆ CHECK_NOTINIT

#define CHECK_NOTINIT (   ini,
  word 
)    plumed_assert(!(ini))<<"cmd(\"" << word << "\") should be only used before plumed initialization"

◆ CHECK_NOTNULL

#define CHECK_NOTNULL (   val,
  word 
)    plumed_assert(val)<<"NULL pointer received in cmd(\"" << word << "\")"

Variable Documentation

◆ counter

std::atomic<int> counter {}
private