summaryrefslogtreecommitdiffstats
path: root/src/uscxml/interpreter/InterpreterRC.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-07 00:38:46 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-07 00:38:46 (GMT)
commitd5e1f6397c52513018cd59972cf5ca8740de18eb (patch)
tree80448f6b414373f799273ed777ed0b7260605bdb /src/uscxml/interpreter/InterpreterRC.h
parent41312059e5d25539d3cd071829a505ebb7293393 (diff)
downloaduscxml-d5e1f6397c52513018cd59972cf5ca8740de18eb.zip
uscxml-d5e1f6397c52513018cd59972cf5ca8740de18eb.tar.gz
uscxml-d5e1f6397c52513018cd59972cf5ca8740de18eb.tar.bz2
Appr. 15% performance boost by avoiding dynamic_cast in DOM
Diffstat (limited to 'src/uscxml/interpreter/InterpreterRC.h')
-rw-r--r--src/uscxml/interpreter/InterpreterRC.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/interpreter/InterpreterRC.h b/src/uscxml/interpreter/InterpreterRC.h
index 2cd2662..9afc2e6 100644
--- a/src/uscxml/interpreter/InterpreterRC.h
+++ b/src/uscxml/interpreter/InterpreterRC.h
@@ -33,7 +33,7 @@ class InterpreterRC : public InterpreterImpl {
Arabica::XPath::NodeSet<std::string> selectEventlessTransitions();
Arabica::XPath::NodeSet<std::string> selectTransitions(const std::string& event);
- bool isEnabledTransition(const Arabica::DOM::Node<std::string>& transition, const std::string& event);
+ bool isEnabledTransition(const Arabica::DOM::Element<std::string>& transition, const std::string& event);
bool hasIntersection(const Arabica::XPath::NodeSet<std::string>& nodeSet1, const Arabica::XPath::NodeSet<std::string>& nodeSet2);
void enterStates(const Arabica::XPath::NodeSet<std::string>& enabledTransitions);
@@ -52,7 +52,7 @@ class InterpreterRC : public InterpreterImpl {
std::map<std::string, Arabica::DOM::Node<std::string> > defaultHistoryContent);
Arabica::XPath::NodeSet<std::string> removeConflictingTransitions(const Arabica::XPath::NodeSet<std::string>& enabledTransitions);
- Arabica::DOM::Node<std::string> getTransitionDomain(const Arabica::DOM::Node<std::string>& transition);
+ Arabica::DOM::Node<std::string> getTransitionDomain(const Arabica::DOM::Element<std::string>& transition);
void addDescendantStatesToEnter(const Arabica::DOM::Node<std::string>& state,
Arabica::XPath::NodeSet<std::string>& statesToEnter,
@@ -71,7 +71,7 @@ class InterpreterRC : public InterpreterImpl {
Arabica::XPath::NodeSet<std::string> getProperAncestors(const Arabica::DOM::Node<std::string>& s1,
const Arabica::DOM::Node<std::string>& s2);
- Arabica::XPath::NodeSet<std::string> getTargetStates(const Arabica::DOM::Node<std::string>& transition);
+ Arabica::XPath::NodeSet<std::string> getTargetStates(const Arabica::DOM::Element<std::string>& transition);
#if 0
bool isDescendant(const Arabica::DOM::Node<std::string>& state1, const Arabica::DOM::Node<std::string>& state2);