Initial quantum circuit.
This commit is contained in:
parent
77ce58c612
commit
20c13c1cdf
38 changed files with 1153 additions and 14 deletions
|
@ -17,6 +17,7 @@ public:
|
|||
LINEAR,
|
||||
LEAF,
|
||||
FRACTION,
|
||||
ENCLOSING,
|
||||
SUBSCRIPT,
|
||||
SUPERSCRIPT
|
||||
};
|
||||
|
@ -39,8 +40,16 @@ public:
|
|||
|
||||
const std::vector<LatexMathExpressionPtr>& getExpressions() const;
|
||||
|
||||
const LatexMathSymbol& getLeftSymbol() const;
|
||||
|
||||
const LatexMathSymbol& getRightSymbol() const;
|
||||
|
||||
const Type getType() const;
|
||||
|
||||
void setLeftSymbol(const LatexMathSymbol& symbol);
|
||||
|
||||
void setRightSymbol(const LatexMathSymbol& symbol);
|
||||
|
||||
void setContent(std::vector<LatexMathSymbol>& symbols);
|
||||
|
||||
void setRawContent(const std::string& content);
|
||||
|
@ -67,6 +76,10 @@ public:
|
|||
|
||||
void onCloseExpression();
|
||||
|
||||
void onFracTag();
|
||||
|
||||
void onEnclosingTag(LatexMathSymbol::Tag tag);
|
||||
|
||||
void parse();
|
||||
|
||||
private:
|
||||
|
@ -81,6 +94,9 @@ private:
|
|||
Type mType{ Type::LEAF };
|
||||
std::vector<LatexMathSymbol> mWorkingSymbols;
|
||||
|
||||
LatexMathSymbol mLeftSymbol;
|
||||
LatexMathSymbol mRightSymbol;
|
||||
|
||||
std::vector<LatexMathSymbol> mSymbols;
|
||||
std::vector<LatexMathExpressionPtr> mExpressions;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue