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

class extended to GiNaC symbol class, represent a positive symbol More...

#include <BASIC.h>

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

Classes

class  visitor
 

Public Types

typedef symbol inherited
 

Public Member Functions

 Symbol ()
 
Symbolduplicate () 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
 
 Symbol (const string &s)
 Symbol constructor. More...
 
void archive (archive_node &n) const override
 Symbol archive. More...
 
void read_archive (const archive_node &n) override
 Symbol read_archive. More...
 
ex eval () const override
 
ex evalf () const override
 
ex series (const relational &s, int order, unsigned options=0) const override
 
ex subs (const exmap &m, unsigned options=0) const override
 
ex conjugate () const override
 
ex real_part () const override
 
ex imag_part () const override
 
void set_name (string n)
 
unsigned get_domain () const override
 
void set (const ex &v) const
 
void unset () const
 
unsigned get_serial ()
 

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)
 
static void set (const Symbol &s, const ex &v)
 
static void set (const string &str, const ex &v)
 
static void unset (const Symbol &s)
 
static void unset (const string &str)
 
static void unset_all ()
 
static ex set_all (const ex &expr)
 

Static Public Attributes

static std::map< std::string, ex > Table
 
static exmap vmap
 

Protected Member Functions

int compare_same_type (const GiNaC::basic &other) const override
 
unsigned calchash () const override
 
ex derivative (const symbol &s) const override
 
bool is_equal_same_type (const basic &other) const override
 

Friends

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

Detailed Description

class extended to GiNaC symbol class, represent a positive symbol

Definition at line 113 of file BASIC.h.

Member Typedef Documentation

◆ inherited

typedef symbol HepLib::Symbol::inherited

Definition at line 125 of file BASIC.h.

Constructor & Destructor Documentation

◆ Symbol() [1/2]

HepLib::Symbol::Symbol ( )

Definition at line 73 of file BASIC.cpp.

◆ Symbol() [2/2]

HepLib::Symbol::Symbol ( const string &  s)
explicit

Symbol constructor.

Parameters
ssymbol name

Definition at line 72 of file BASIC.cpp.

Member Function Documentation

◆ accept()

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

Definition at line 62 of file BASIC.cpp.

◆ all()

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

◆ archive()

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

Symbol archive.

Parameters
narchive node

Definition at line 88 of file BASIC.cpp.

◆ calchash()

unsigned HepLib::Symbol::calchash ( ) const
overrideprotected

Definition at line 105 of file BASIC.cpp.

◆ class_name()

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

Definition at line 65 of file BASIC.cpp.

◆ compare_same_type()

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

Definition at line 75 of file BASIC.cpp.

◆ conjugate()

ex HepLib::Symbol::conjugate ( ) const
override

Definition at line 102 of file BASIC.cpp.

◆ derivative()

ex HepLib::Symbol::derivative ( const symbol &  s) const
overrideprotected

Definition at line 119 of file BASIC.cpp.

◆ duplicate()

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

Definition at line 61 of file BASIC.cpp.

◆ eval()

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

Definition at line 100 of file BASIC.cpp.

◆ evalf()

ex HepLib::Symbol::evalf ( ) const
override

Definition at line 101 of file BASIC.cpp.

◆ get_class_info() [1/2]

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

Definition at line 63 of file BASIC.cpp.

◆ get_class_info() [2/2]

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

Definition at line 64 of file BASIC.cpp.

◆ get_class_info_static()

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

Definition at line 59 of file BASIC.cpp.

◆ get_domain()

unsigned HepLib::Symbol::get_domain ( ) const
inlineoverride

Definition at line 156 of file BASIC.h.

◆ get_serial()

unsigned HepLib::Symbol::get_serial ( )
inline

Definition at line 165 of file BASIC.h.

◆ has()

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

◆ imag_part()

ex HepLib::Symbol::imag_part ( ) const
override

Definition at line 104 of file BASIC.cpp.

◆ is_equal_same_type()

bool HepLib::Symbol::is_equal_same_type ( const basic &  other) const
overrideprotected

Definition at line 113 of file BASIC.cpp.

◆ read_archive()

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

Symbol read_archive.

Parameters
narchive node

Definition at line 96 of file BASIC.cpp.

◆ real_part()

ex HepLib::Symbol::real_part ( ) const
override

Definition at line 103 of file BASIC.cpp.

◆ series()

ex HepLib::Symbol::series ( const relational &  s,
int  order,
unsigned  options = 0 
) const
override

Definition at line 125 of file BASIC.cpp.

◆ set() [1/3]

void HepLib::Symbol::set ( const ex &  v) const

Definition at line 139 of file BASIC.cpp.

◆ set() [2/3]

void HepLib::Symbol::set ( const string &  str,
const ex &  v 
)
static

Definition at line 143 of file BASIC.cpp.

◆ set() [3/3]

void HepLib::Symbol::set ( const Symbol s,
const ex &  v 
)
static

Definition at line 142 of file BASIC.cpp.

◆ set_all()

ex HepLib::Symbol::set_all ( const ex &  expr)
static

Definition at line 147 of file BASIC.cpp.

◆ set_name()

void HepLib::Symbol::set_name ( string  n)

Definition at line 137 of file BASIC.cpp.

◆ subs()

ex HepLib::Symbol::subs ( const exmap &  m,
unsigned  options = 0 
) const
inlineoverride

Definition at line 145 of file BASIC.h.

◆ unset() [1/3]

void HepLib::Symbol::unset ( ) const

Definition at line 140 of file BASIC.cpp.

◆ unset() [2/3]

void HepLib::Symbol::unset ( const string &  str)
static

Definition at line 145 of file BASIC.cpp.

◆ unset() [3/3]

void HepLib::Symbol::unset ( const Symbol s)
static

Definition at line 144 of file BASIC.cpp.

◆ unset_all()

void HepLib::Symbol::unset_all ( )
static

Definition at line 146 of file BASIC.cpp.

Friends And Related Function Documentation

◆ dynallocate

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

Member Data Documentation

◆ Table

std::map< std::string, ex > HepLib::Symbol::Table
static

Definition at line 160 of file BASIC.h.

◆ vmap

exmap HepLib::Symbol::vmap
static

Definition at line 167 of file BASIC.h.


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