summaryrefslogtreecommitdiff
path: root/src/core/parser/utils/TokenTrie.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-25 23:09:26 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-25 23:09:26 +0100
commit84c9abc3e9762c4486ddc5ca0352a5d697a51987 (patch)
treeb95db6ab2c2c6c2fba430218411a4ddf1d31b19f /src/core/parser/utils/TokenTrie.hpp
parent8891dea26a1653a003b4171155e155d3aa6689ae (diff)
start of branch, commit log will be rewritten
Diffstat (limited to 'src/core/parser/utils/TokenTrie.hpp')
-rw-r--r--src/core/parser/utils/TokenTrie.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/parser/utils/TokenTrie.hpp b/src/core/parser/utils/TokenTrie.hpp
index b2d1539..c470acc 100644
--- a/src/core/parser/utils/TokenTrie.hpp
+++ b/src/core/parser/utils/TokenTrie.hpp
@@ -33,7 +33,7 @@
#include <limits>
#include <unordered_map>
-#include "Token.hpp"
+#include <core/common/Token.hpp>
namespace ousia {
@@ -75,10 +75,9 @@ public:
ChildMap children;
/**
- * Reference at the corresponding token descriptor. Set to nullptr if
- * no token is attached to this node.
+ * Id of the token represented by this node.
*/
- TokenId type;
+ TokenId id;
/**
* Default constructor, initializes the descriptor with nullptr.
@@ -99,10 +98,10 @@ public:
*
* @param token is the character sequence that should be registered as
* token.
- * @param type is the descriptor that should be set for this token.
+ * @param id is the descriptor that should be set for this token.
* @return true if the operation is successful, false otherwise.
*/
- bool registerToken(const std::string &token, TokenId type) noexcept;
+ bool registerToken(const std::string &token, TokenId id) noexcept;
/**
* Unregisters the token from the token tree. Returns true if the token was