thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
std.h File Reference

This file introduces a number of std:: classes into the ThePEG namespace. More...

#include <map>
#include <set>
#include <string>
#include <array>
#include <vector>
#include <list>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <stack>
#include <utility>
#include <typeinfo>
#include <stdexcept>
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  std
 STL namespace.
 
namespace  ThePEG
 This is the main namespace within which all identifiers in ThePEG are declared.
 

Macros

#define ThePEG_DECLARE_SET(VALTYPE, NAME)
 Macro for declaring a set.
 
#define ThePEG_DECLARE_MULTISET(VALTYPE, NAME)
 Macro for declaring a multiset.
 
#define ThePEG_DECLARE_MAP(KEYTYPE, VALTYPE, NAME)
 Macro for declaring a map.
 

Functions

template<class ExponentT >
constexpr double ThePEG::pow (double x, ExponentT p)
 Powers - standard or non-standard.
 
double ThePEG::sqrt (int x)
 Square root of an integer.
 
constexpr long double ThePEG::factorial (unsigned int n)
 factorial
 
template<typename Container , typename Key >
bool ThePEG::member (const Container &c, const Key &k)
 Check if a given object is a part of a container.
 
template<typename T , typename Key >
bool ThePEG::member (const vector< T > &v, const Key &k)
 Check if a given object is a part of a vector.
 
template<typename Cont >
std::insert_iterator< Cont > ThePEG::inserter (Cont &c)
 Return an insert iterator for a given container.
 
template<typename T , typename A >
std::back_insert_iterator< vector< T, A > > ThePEG::inserter (vector< T, A > &v)
 Return an insert iterator for a given vector.
 
template<typename T , typename A >
std::back_insert_iterator< deque< T, A > > ThePEG::inserter (deque< T, A > &v)
 Return an insert iterator for a given vector.
 
ostream & ThePEG::left (ostream &os)
 Stream manipulator setting an ostream to left-adjust its ouput.
 
ostream & ThePEG::right (ostream &os)
 Stream manipulator setting an ostream to right-adjust its ouput.
 

Detailed Description

This file introduces a number of std:: classes into the ThePEG namespace.

Also introduces some useful functions for standard library classes.

Do not make changes in this file. If you want to use alternatives to the std:: classes in ThePEG, edit a copy of this file and include it in an alternative config file which can be included in the main ThePEG.h config file using the macro ThePEG_ALTERNATE_CONFIG.

Definition in file std.h.

Macro Definition Documentation

◆ ThePEG_DECLARE_MAP

#define ThePEG_DECLARE_MAP (   KEYTYPE,
  VALTYPE,
  NAME 
)
Value:
\
typedef map<KEYTYPE, VALTYPE, less<KEYTYPE> > NAME

Macro for declaring a map.

Definition at line 185 of file std.h.

◆ ThePEG_DECLARE_MULTISET

#define ThePEG_DECLARE_MULTISET (   VALTYPE,
  NAME 
)
Value:
\
typedef multiset<VALTYPE, less<VALTYPE> > NAME

Macro for declaring a multiset.

Definition at line 180 of file std.h.

◆ ThePEG_DECLARE_SET

#define ThePEG_DECLARE_SET (   VALTYPE,
  NAME 
)
Value:
\
typedef set<VALTYPE, less<VALTYPE> > NAME

Macro for declaring a set.

Definition at line 175 of file std.h.