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

class for index object More...

#include <HEP.h>

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

Classes

class  visitor
 

Public Types

enum  Type { VD , CF , CA }
 
typedef basic inherited
 

Public Member Functions

 Index ()
 
Indexduplicate () 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
 
 Index (const string &s, const Type type=Type::VD)
 
Pair operator() (const Index &i)
 
Pair operator() (const Vector &p)
 
void print (const print_context &c, unsigned level=0) const
 
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 bool hasc (const ex &e)
 
static bool hasv (const ex &e)
 
static lst all (const ex &e)
 

Public Attributes

Symbol name
 
Type type
 

Static Public Attributes

static GiNaC::exmap Dimension
 

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 index object

Definition at line 104 of file HEP.h.

Member Typedef Documentation

◆ inherited

typedef basic HepLib::Index::inherited

Definition at line 117 of file HEP.h.

Member Enumeration Documentation

◆ Type

Enumerator
VD 
CF 
CA 

Definition at line 129 of file HEP.h.

Constructor & Destructor Documentation

◆ Index() [1/2]

HepLib::Index::Index ( )

◆ Index() [2/2]

HepLib::Index::Index ( const string &  s,
const Type  type = Type::VD 
)

Definition at line 180 of file Basic.cpp.

Member Function Documentation

◆ accept()

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

Definition at line 174 of file Basic.cpp.

◆ all()

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

◆ archive()

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

Definition at line 208 of file Basic.cpp.

◆ class_name()

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

Definition at line 177 of file Basic.cpp.

◆ compare_same_type()

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

Definition at line 181 of file Basic.cpp.

◆ derivative()

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

Definition at line 224 of file Basic.cpp.

◆ duplicate()

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

Definition at line 173 of file Basic.cpp.

◆ get_class_info() [1/2]

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

Definition at line 175 of file Basic.cpp.

◆ get_class_info() [2/2]

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

Definition at line 176 of file Basic.cpp.

◆ get_class_info_static()

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

Definition at line 171 of file Basic.cpp.

◆ has()

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

◆ hasc()

bool HepLib::Index::hasc ( const ex &  e)
static

Definition at line 228 of file Basic.cpp.

◆ hasv()

bool HepLib::Index::hasv ( const ex &  e)
static

Definition at line 234 of file Basic.cpp.

◆ is_equal_same_type()

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

Definition at line 190 of file Basic.cpp.

◆ operator()() [1/2]

Pair HepLib::Index::operator() ( const Index i)

Definition at line 200 of file Basic.cpp.

◆ operator()() [2/2]

Pair HepLib::Index::operator() ( const Vector p)

Definition at line 204 of file Basic.cpp.

◆ print()

void HepLib::Index::print ( const print_context &  c,
unsigned  level = 0 
) const

Definition at line 196 of file Basic.cpp.

◆ read_archive()

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

Definition at line 214 of file Basic.cpp.

Friends And Related Function Documentation

◆ dynallocate

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

Member Data Documentation

◆ Dimension

GiNaC::exmap HepLib::Index::Dimension
static

Definition at line 109 of file HEP.h.

◆ name

Symbol HepLib::Index::name

Definition at line 133 of file HEP.h.

◆ type

Type HepLib::Index::type

Definition at line 134 of file HEP.h.


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