ThePEG  1.8.0
Namespaces | Macros | Functions
std.h File Reference

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

#include <map>
#include <set>
#include <string>
#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  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.
#define ThePEG_IMPLEMENT_SET(VALTYPE, NAME)
 Macro for implementing a set.
#define ThePEG_IMPLEMENT_MULTISET(VALTYPE, NAME)
 Macro for implementing a multiset.
#define ThePEG_IMPLEMENT_MAP(KEYTYPE, VALTYPE, NAME)
 Macro for implementing a map.

Functions

double ThePEG::sqrt (int x)
 Square root of an integer.
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

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

Macro for declaring a map.

Definition at line 178 of file std.h.

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

Macro for declaring a multiset.

Definition at line 173 of file std.h.

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

Macro for declaring a set.

Definition at line 168 of file std.h.

#define ThePEG_IMPLEMENT_MAP (   KEYTYPE,
  VALTYPE,
  NAME 
)

Macro for implementing a map.

Definition at line 189 of file std.h.

#define ThePEG_IMPLEMENT_MULTISET (   VALTYPE,
  NAME 
)

Macro for implementing a multiset.

Definition at line 186 of file std.h.

#define ThePEG_IMPLEMENT_SET (   VALTYPE,
  NAME 
)

Macro for implementing a set.

Definition at line 183 of file std.h.