From 04ee61f336cf9bd848c9d922619db2ee45faafe9 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 5 Dec 2014 13:53:06 +0100 Subject: added an 'accepting' attribute to SelectorNodes to make them properly usable as finite state machine nodes without relying on rulesets. --- src/core/CSS.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/CSS.hpp') diff --git a/src/core/CSS.hpp b/src/core/CSS.hpp index 1c0ed17..1f5fedc 100644 --- a/src/core/CSS.hpp +++ b/src/core/CSS.hpp @@ -251,6 +251,7 @@ private: ManagedVector edges; // TODO: This is temporarily commented out until the TypeSystem works. // Owned ruleSets; + bool accepting; /** * This is an internal method all getChildren variants refer to. @@ -386,6 +387,10 @@ public: * automatically using the DESCENDANT SelectionOperator. */ std::vector> append(Rooted node); + + bool isAccepting() { return accepting; } + + void setAccepting(bool accepting) { this->accepting = accepting; } }; } #endif -- cgit v1.2.3