Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
mty::FermionCurrent Class Reference

Public Types

enum  Type {
  Scalar,
  PseudoScalar,
  LScalar,
  RScalar,
  Vector,
  Axial,
  LVector,
  RVector,
  Magnetic,
  AMagnetic,
  LMagnetic,
  RMagnetic
}
 

Public Member Functions

Type getType () const
 
void setType (Type t_type)
 
csl::Expr getExpression () const
 
std::vector< csl::Expr > & getTensors ()
 
std::vector< csl::Expr > const & getTensors () const
 
csl::Index getFirst () const
 
csl::Index getLast () const
 
csl::Expr getFactor () const
 
csl::Expr getLeft () const
 
csl::Expr getRight () const
 
void setFactor (csl::Expr const &t_factor)
 
void setLeft (csl::Expr const &t_left)
 
void setRight (csl::Expr const &t_right)
 
Type determineTypeOfChain (std::vector< csl::Expr > const &tensors) const
 
void determineBorderIndices (std::vector< csl::Expr > const &tensors)
 
bool operator== (FermionCurrent const &other) const
 
bool operator!= (FermionCurrent const &other) const
 
bool operator< (FermionCurrent const &other) const
 
bool operator> (FermionCurrent const &other) const
 
bool operator<= (FermionCurrent const &other) const
 
bool operator>= (FermionCurrent const &other) const
 

Private Member Functions

 FermionCurrent (std::vector< csl::Expr > const &t_tensors, const mty::DiracSpace *t_diracSpace=&mty::dirac4)
 

Private Attributes

const mty::DiracSpacediracSpace
 
Type type
 
csl::Index first
 
csl::Index last
 
csl::Expr factor
 
csl::Expr left
 
csl::Expr right
 
std::vector< csl::Exprtensors
 

Friends

std::vector< FermionCurrentparseChains (csl::Expr &product, DiracSpace const *diracSpace, bool findAbrev)
 
std::ostream & operator<< (std::ostream &out, FermionCurrent const &current)
 

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