Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Types | Public Member Functions | Data Fields
sgl::Field Class Reference
Inheritance diagram for sgl::Field:
[legend]

Public Types

enum  Order {
  None,
  Left,
  Right
}
 
- Public Types inherited from sgl::AbstractGammaSym
using iterator = std::vector< GExpr >::iterator
 
using const_iterator = std::vector< GExpr >::const_iterator
 

Public Member Functions

 Field (csl::Expr const &field, bool particle, bool incoming, bool onShell, PartnerShip const &partnerShip, Order order=None)
 
bool contains (csl::Index const &) const override
 
void replace (csl::Index const &, csl::Index const &) override
 
csl::Index getIndex () const
 
bool isOnShell () const
 
bool isIncomingParticle () const
 
bool isIncomingAntiParticle () const
 
bool isOutgoingParticle () const
 
bool isOutgoingAntiParticle () const
 
bool isComplexConjugated () const
 
bool isZero () const override
 
bool isHappyWith (Field const &other) const
 
bool isLeftField () const
 
void conjugate ()
 
csl::Expr toCSL (TensorSet const &tensors) const override
 
csl::Expr toCSL (TensorSet const &tensors, csl::Index index) const
 
GExpr copy () const override
 
GExpr refresh () const override
 
void print (std::ostream &out=std::cout) const override
 
bool isSame (Field const &other) const
 
- Public Member Functions inherited from sgl::AbstractLiteral
size_t size () const override
 
GExpr const & argument (size_t i) const override
 
GExprargument (size_t i) override
 
iterator begin () override
 
const_iterator begin () const override
 
iterator end () override
 
const_iterator end () const override
 
- Public Member Functions inherited from sgl::AbstractGammaSym
virtual bool hasPropertyWith (GExpr const &other) const
 
virtual GExpr propertyWith (GExpr const &other) const
 
virtual csl::Expr getFactor () const
 
virtual GExpr getTerm () const
 
GExpr self ()
 
virtual GExpr simplify ()
 
virtual std::vector< csl::Index > const & indices () const
 
virtual std::vector< csl::Index > & indices ()
 
virtual csl::Expr const & expr () const
 
virtual csl::Exprexpr ()
 
void errorPrint () const
 

Data Fields

csl::Expr initField
 
csl::Index index
 
csl::TensorField psi
 
csl::Tensor p
 
bool particle
 
bool incoming
 
bool onshell
 
Order order
 
PartnerShip partnerShip
 

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