State of an automaton in its definition.
More...
#include <xmlpathautomaton.hpp>
|
| | State () |
| | Constructor. More...
|
| |
| | State (const State &orig) |
| | Copy constructor. More...
|
| |
| | ~State () |
| | Destructor. More...
|
| |
| bool | isempty () |
| | Check it the state definition is empty. More...
|
| |
| void | defineKey (unsigned int p_keysize, const char *p_key, const char *p_srckey) |
| | Define the matching key of this state. More...
|
| |
| void | defineNext (Operation op, unsigned int p_keysize, const char *p_key, const char *p_srckey, int p_next, bool p_follow=false) |
| | Define a state transition by key and operation. More...
|
| |
| void | defineOutput (const Mask &mask, int p_typeidx, bool p_follow, int p_start, int p_end) |
| | Define an element output operation. More...
|
| |
| void | defLink (int p_link) |
| | Link another state to check to the current state. More...
|
| |
| std::string | tostring () const |
| |
template<class CharSet_ = charset::UTF8>
class textwolf::XMLPathSelectAutomaton< CharSet_ >::State
State of an automaton in its definition.
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
Copy constructor.
- Parameters
-
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
Define the matching key of this state.
- Parameters
-
| [in] | p_keysize | size of the key in bytes |
| [in] | p_key | pointer to the key |
| [in] | p_srckey | the source form of the key (ASCII with encoded entities for everything else) |
template<class CharSet_ = charset::UTF8>
Define a state transition by key and operation.
- Parameters
-
| [in] | op | operation type |
| [in] | p_keysize | size of the key in bytes |
| [in] | p_key | pointer to the key |
| [in] | p_srckey | the source form of the key (ASCII with encoded entities for everything else) |
| [in] | p_next | follow state on a match |
| [in] | p_follow | true if the search reaches all included follow scopes of the definition scope |
template<class CharSet_ = charset::UTF8>
Define an element output operation.
- Parameters
-
| [in] | mask | mask defining the element types to output |
| [in] | p_typeidx | the type of the element produced |
| [in] | p_follow | true if the output reaches all included follow scopes of the definition scope |
| [in] | p_start | start index of the element range produced |
| [in] | p_end | upper bound index of the element range produced |
template<class CharSet_ = charset::UTF8>
Link another state to check to the current state.
- Parameters
-
| [in] | p_link | the index of the state to link |
template<class CharSet_ = charset::UTF8>
Check it the state definition is empty.
- Returns
- true for an empty state
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
template<class CharSet_ = charset::UTF8>
The documentation for this class was generated from the following file: