ADS
Algorithms and Data Structures
Toggle main menu visibility
Loading...
Searching...
No Matches
Expressions.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/*--------------------------- File Expressions.h ---------------------------*/
3
/*--------------------------------------------------------------------------*/
51
/*--------------------------------------------------------------------------*/
52
/*----------------------------- DEFINITIONS --------------------------------*/
53
/*--------------------------------------------------------------------------*/
54
55
#ifndef __ADS_Expressions
56
#define __ADS_Expressions
57
/* self-identification: #endif constant */
58
59
/*--------------------------------------------------------------------------*/
60
/*------------------------------ INCLUDES ----------------------------------*/
61
/*--------------------------------------------------------------------------*/
62
63
#include "
ADS/Contract.h
"
64
#include "
ADS/stack/ArrayStack.h
"
65
66
#include <cstddef>
67
#include <limits>
68
#include <string>
69
#include <string_view>
70
#include <vector>
71
72
/*--------------------------------------------------------------------------*/
73
/*--------------------------- NAMESPACE ------------------------------------*/
74
/*--------------------------------------------------------------------------*/
75
76
namespace
ADS
77
{
78
97
long
evalPostfix
( std::string_view e );
98
121
std::string
toPostfixParenthesized
( std::string_view e );
122
159
std::string
toPostfix
( std::string_view e );
160
161
/*--------------------------------------------------------------------------*/
162
163
}
// end( namespace ADS )
164
165
/*--------------------------------------------------------------------------*/
166
/*-------------------------- IMPLEMENTATION --------------------------------*/
167
/*--------------------------------------------------------------------------*/
168
169
#include "ADS/stack/impl/Expressions.tpp"
170
171
/*--------------------------------------------------------------------------*/
172
173
#endif
/* Expressions.h included */
174
175
/*--------------------------------------------------------------------------*/
176
/*------------------------- End File Expressions.h -------------------------*/
177
/*--------------------------------------------------------------------------*/
ArrayStack.h
The STACK of the book [see ADT.h] realized with a vector of a given capacity : the items are in the ...
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
ADS::evalPostfix
long evalPostfix(std::string_view e)
the value of the postfix expression
ADS::toPostfixParenthesized
std::string toPostfixParenthesized(std::string_view e)
the postfix form of the fully parenthesized infix expression , its tokens separated by one space
ADS::toPostfix
std::string toPostfix(std::string_view e)
the postfix form of the infix expression , with the usual precedences and the associativity to the le...
ADS
Definition
ADT.h:96
ADS
stack
Expressions.h
Generated by
1.17.0