HepLib
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
HepLib::Pair Class Reference

class for Pair object More...

#include <HEP.h>

Inheritance diagram for HepLib::Pair:
Inheritance graph
[legend]
Collaboration diagram for HepLib::Pair:
Collaboration graph
[legend]

Classes

class  visitor
 

Public Types

typedef basic inherited
 

Public Member Functions

 Pair ()
 
Pairduplicate () const override
 
void accept (GiNaC::visitor &v) const override
 
const GiNaC::registered_class_info & get_class_info () const override
 
GiNaC::registered_class_info & get_class_info () override
 
const char * class_name () const override
 
 Pair (const Vector &p1, const Vector &p2)
 Pair constructor, ordered internally. More...
 
 Pair (const Index &i1, const Index &i2)
 Pair constructor, ordered internally. More...
 
 Pair (const Vector &p, const Index &i)
 Pair constructor. More...
 
 Pair (const Index &i, const Vector &p)
 Pair constructor. More...
 
size_t nops () const override
 
ex op (size_t i) const override
 
ex & let_op (size_t i) override
 
ex eval () const override
 
void print (const print_dflt &c, unsigned level=0) const
 default print function More...
 
void form_print (const FormFormat &c, unsigned level=0) const
 FormFormat print function. More...
 
void fc_print (const FCFormat &c, unsigned level=0) const
 FCFormat print function. More...
 
void archive (archive_node &n) const override
 
void read_archive (const archive_node &n) override
 
ex derivative (const symbol &s) const override
 
bool is_equal_same_type (const basic &other) const override
 

Static Public Member Functions

static GiNaC::registered_class_info & get_class_info_static ()
 
static bool has (const ex &e)
 
static lst all (const ex &e)
 

Protected Member Functions

int compare_same_type (const GiNaC::basic &other) const override
 

Friends

template<class B , typename... Args>
B & dynallocate (Args &&... args)
 

Detailed Description

class for Pair object

Definition at line 322 of file HEP.h.

Member Typedef Documentation

◆ inherited

typedef basic HepLib::Pair::inherited

Definition at line 334 of file HEP.h.

Constructor & Destructor Documentation

◆ Pair() [1/5]

HepLib::Pair::Pair ( )

◆ Pair() [2/5]

HepLib::Pair::Pair ( const Vector p1,
const Vector p2 
)

Pair constructor, ordered internally.

Parameters
p1Vector in p1.p2
p2Vector in p1.p2
Returns
p1.p2

Definition at line 34 of file Pair.cpp.

◆ Pair() [3/5]

HepLib::Pair::Pair ( const Index i1,
const Index i2 
)

Pair constructor, ordered internally.

Parameters
i1Index in i1.i2
i2Index in i1.i2
Returns
i1.i2 i.e., g^{i1,i2}

Definition at line 48 of file Pair.cpp.

◆ Pair() [4/5]

HepLib::Pair::Pair ( const Vector p,
const Index i 
)

Pair constructor.

Parameters
pVector in p^i
iIndex in p^i
Returns
p^i

Definition at line 62 of file Pair.cpp.

◆ Pair() [5/5]

HepLib::Pair::Pair ( const Index i,
const Vector p 
)

Pair constructor.

Parameters
iIndex in p^i
pVector in p^i
Returns
p^i

Definition at line 70 of file Pair.cpp.

Member Function Documentation

◆ accept()

void HepLib::Pair::accept ( GiNaC::visitor &  v) const
override

Definition at line 18 of file Pair.cpp.

◆ all()

static lst HepLib::Pair::all ( const ex &  e)
static

◆ archive()

void HepLib::Pair::archive ( archive_node &  n) const
override

Definition at line 147 of file Pair.cpp.

◆ class_name()

const char * HepLib::Pair::class_name ( ) const
override

Definition at line 21 of file Pair.cpp.

◆ compare_same_type()

int HepLib::Pair::compare_same_type ( const GiNaC::basic &  other) const
overrideprotected

Definition at line 72 of file Pair.cpp.

◆ derivative()

ex HepLib::Pair::derivative ( const symbol &  s) const
override

Definition at line 159 of file Pair.cpp.

◆ duplicate()

Pair * HepLib::Pair::duplicate ( ) const
override

Definition at line 17 of file Pair.cpp.

◆ eval()

ex HepLib::Pair::eval ( ) const
override

Definition at line 134 of file Pair.cpp.

◆ fc_print()

void HepLib::Pair::fc_print ( const FCFormat c,
unsigned  level = 0 
) const

FCFormat print function.

Parameters
cFCFormat print format
levellevel in print function

Definition at line 113 of file Pair.cpp.

◆ form_print()

void HepLib::Pair::form_print ( const FormFormat c,
unsigned  level = 0 
) const

FormFormat print function.

Parameters
cFormFormat print format
levellevel in print function

Definition at line 102 of file Pair.cpp.

◆ get_class_info() [1/2]

const GiNaC::registered_class_info & HepLib::Pair::get_class_info ( ) const
override

Definition at line 19 of file Pair.cpp.

◆ get_class_info() [2/2]

GiNaC::registered_class_info & HepLib::Pair::get_class_info ( )
override

Definition at line 20 of file Pair.cpp.

◆ get_class_info_static()

GiNaC::registered_class_info & HepLib::Pair::get_class_info_static ( )
static

Definition at line 15 of file Pair.cpp.

◆ has()

static bool HepLib::Pair::has ( const ex &  e)
static

◆ is_equal_same_type()

bool HepLib::Pair::is_equal_same_type ( const basic &  other) const
override

Definition at line 81 of file Pair.cpp.

◆ let_op()

ex & HepLib::Pair::let_op ( size_t  i)
override

Definition at line 129 of file Pair.cpp.

◆ nops()

size_t HepLib::Pair::nops ( ) const
override

Definition at line 125 of file Pair.cpp.

◆ op()

ex HepLib::Pair::op ( size_t  i) const
override

Definition at line 126 of file Pair.cpp.

◆ print()

void HepLib::Pair::print ( const print_dflt &  c,
unsigned  level = 0 
) const

default print function

Parameters
cdefault print format
levellevel in print function

Definition at line 93 of file Pair.cpp.

◆ read_archive()

void HepLib::Pair::read_archive ( const archive_node &  n)
override

Definition at line 152 of file Pair.cpp.

Friends And Related Function Documentation

◆ dynallocate

template<class B , typename... Args>
B& dynallocate ( Args &&...  args)
friend

The documentation for this class was generated from the following files: