SyTen
syten::BTT::ParseOperator::StackElement Struct Reference

One element of the parsing stack. More...

#include <parse_operator.h>

+ Collaboration diagram for syten::BTT::ParseOperator::StackElement:

Public Member Functions

 operator Operator ()
 Attempts to convert this stack element into an MPO, valid for operators, strings and numbers. More...
 
 operator SDef ()
 Attempts to convert this stack element into a number, valid for numbers. More...
 
 operator Sector ()
 Attempts to convert this stack element into a sector, valid for strings and sectors. More...
 
 operator std::string ()
 Attempts to convert this stack element into a string, valid for strings and numbers. More...
 
 StackElement (std::string const &str_, Lattice const &lat_, Index pos_)
 Ctor to create a string stack element. More...
 
 StackElement (Sector const &sec_, Lattice const &lat_, Index pos_)
 Ctor to create a sector stack element. More...
 
 StackElement (SDef num_, Lattice const &lat_, Index pos_)
 Ctor to create a number stack element. More...
 
 StackElement (Operator &&opr_, Lattice const &lat_, Index pos_)
 Ctor to create an operator stack element (moved) More...
 
 StackElement (Operator const &opr_, Lattice const &lat_, Index pos_)
 Ctor to create an operator stack element (copied) More...
 

Public Attributes

Lattice const & lat
 Lattice on which we’re working. More...
 
SDef num
 If type is StackElementType::Number, contains a number. More...
 
Operator opr
 If type is StackElementType::Operator, contains a complete MPO. More...
 
Index position
 Position at which this element was encountered. More...
 
Sector sec
 If type is StackElementType::Sector, contains sector information. More...
 
std::string str
 If type is StackElementType::String, contains a string. More...
 
StackElementType type
 Type of the element. More...
 

Detailed Description

One element of the parsing stack.


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