OLD | NEW |
1 // -*- mode: C++ -*- | 1 // -*- mode: C++ -*- |
2 | 2 |
3 // Copyright (c) 2010 Google Inc. | 3 // Copyright (c) 2010 Google Inc. |
4 // All rights reserved. | 4 // All rights reserved. |
5 // | 5 // |
6 // Redistribution and use in source and binary forms, with or without | 6 // Redistribution and use in source and binary forms, with or without |
7 // modification, are permitted provided that the following conditions are | 7 // modification, are permitted provided that the following conditions are |
8 // met: | 8 // met: |
9 // | 9 // |
10 // * Redistributions of source code must retain the above copyright | 10 // * Redistributions of source code must retain the above copyright |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Author: Mark Mentovai | 67 // Author: Mark Mentovai |
68 | 68 |
69 #ifndef PROCESSOR_POSTFIX_EVALUATOR_H__ | 69 #ifndef PROCESSOR_POSTFIX_EVALUATOR_H__ |
70 #define PROCESSOR_POSTFIX_EVALUATOR_H__ | 70 #define PROCESSOR_POSTFIX_EVALUATOR_H__ |
71 | 71 |
72 | 72 |
73 #include <map> | 73 #include <map> |
74 #include <string> | 74 #include <string> |
75 #include <vector> | 75 #include <vector> |
76 | 76 |
| 77 #include "common/using_std_string.h" |
| 78 |
77 namespace google_breakpad { | 79 namespace google_breakpad { |
78 | 80 |
79 using std::map; | 81 using std::map; |
80 using std::string; | |
81 using std::vector; | 82 using std::vector; |
82 | 83 |
83 class MemoryRegion; | 84 class MemoryRegion; |
84 | 85 |
85 template<typename ValueType> | 86 template<typename ValueType> |
86 class PostfixEvaluator { | 87 class PostfixEvaluator { |
87 public: | 88 public: |
88 typedef map<string, ValueType> DictionaryType; | 89 typedef map<string, ValueType> DictionaryType; |
89 typedef map<string, bool> DictionaryValidityType; | 90 typedef map<string, bool> DictionaryValidityType; |
90 | 91 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // The stack contains state information as execution progresses. Values | 170 // The stack contains state information as execution progresses. Values |
170 // are pushed on to it as the expression string is read and as operations | 171 // are pushed on to it as the expression string is read and as operations |
171 // yield values; values are popped when used as operands to operators. | 172 // yield values; values are popped when used as operands to operators. |
172 vector<string> stack_; | 173 vector<string> stack_; |
173 }; | 174 }; |
174 | 175 |
175 } // namespace google_breakpad | 176 } // namespace google_breakpad |
176 | 177 |
177 | 178 |
178 #endif // PROCESSOR_POSTFIX_EVALUATOR_H__ | 179 #endif // PROCESSOR_POSTFIX_EVALUATOR_H__ |
OLD | NEW |