Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
NonlinearVariableSymbol.h
Go to the documentation of this file.
1
6#pragma once
7
9#include <core/xmlApi.hpp>
10
11namespace core {
12
13template < class T >
14struct xmlApi < alphabet::NonlinearVariableSymbol < T > > {
16 static bool first ( const ext::deque < sax::Token >::const_iterator & input );
17 static std::string xmlTagName ( );
18 static void compose ( ext::deque < sax::Token > & output, const alphabet::NonlinearVariableSymbol < T > & input );
19};
20
21template < typename T >
24 T data = core::xmlApi < T >::parse ( input );
26
28}
29
30template < typename T >
33}
34
35template < typename T >
37 return "NonlinearVariableSymbol";
38}
39
40template < typename T >
42 output.emplace_back ( xmlTagName ( ), sax::Token::TokenType::START_ELEMENT );
43 core::xmlApi < T >::compose ( output, input.getSymbol ( ) );
44 output.emplace_back ( xmlTagName ( ), sax::Token::TokenType::END_ELEMENT );
45}
46
47} /* namespace core */
48
Represents the nonlinear variable symbol used in a nonlinear tree pattern.
Definition: NonlinearVariableSymbol.h:36
const SymbolType & getSymbol() const &
Definition: NonlinearVariableSymbol.h:103
Class extending the deque class from the standard library. Original reason is to allow printing of th...
Definition: deque.hpp:44
static void popToken(ext::deque< Token >::iterator &input, Token::TokenType type, const std::string &data)
Definition: FromXMLParserHelper.cpp:39
static bool isToken(ext::deque< Token >::const_iterator input, Token::TokenType type, const std::string &data)
Definition: FromXMLParserHelper.cpp:29
Definition: BarSymbol.cpp:12
Definition: normalize.hpp:10
Definition: xmlApi.hpp:27