textwolf
0.2
|
Mask to query for element types, if they match or not. More...
#include <xmlpathautomaton.hpp>
Public Member Functions | |
bool | empty () const |
Tells if mask does not select anything anymore. More... | |
Mask (unsigned short p_pos=0, unsigned short p_neg=0) | |
Constructor by values. More... | |
Mask (const Mask &orig) | |
Copy constructor. More... | |
void | reset () |
Reset operation (deactivate) More... | |
void | reject (XMLScannerBase::ElementType e) |
Deactivate operation for a certain element type. More... | |
bool | hasReject (XMLScannerBase::ElementType e) const |
void | match (XMLScannerBase::ElementType e) |
Declare an operation to match on an element type. More... | |
bool | hasMatch (XMLScannerBase::ElementType e) const |
bool | operator== (const Mask &o) |
void | seekop (Operation op) |
Declare an operation as seek operation. More... | |
const char * | seekopName () const |
Get the name of a seek operation. More... | |
void | join (const Mask &mask) |
Join two mask definitions. More... | |
bool | matches (XMLScannerBase::ElementType e) const |
Check if an element type matches the mask. More... | |
bool | rejects (XMLScannerBase::ElementType e) const |
Check if an element type should reset a mask. More... | |
Public Attributes | |
unsigned short | pos |
unsigned short | neg |
Mask to query for element types, if they match or not.
|
inline |
Constructor by values.
[in] | p_pos | positively selected elements bitmask |
[in] | p_neg | negatively selected elements bitmask that determines when a search pattern is given up copletely |
|
inline |
Copy constructor.
[in] | orig | mask to copy |
|
inline |
Tells if mask does not select anything anymore.
|
inline |
|
inline |
|
inline |
Join two mask definitions.
[in] | mask | definition of mask to join this with |
|
inline |
Declare an operation to match on an element type.
|
inline |
Check if an element type matches the mask.
[in] | e | element type to check |
|
inline |
|
inline |
Deactivate operation for a certain element type.
|
inline |
Check if an element type should reset a mask.
[in] | e | element type to check |
|
inline |
Reset operation (deactivate)
|
inline |
Declare an operation as seek operation.
|
inline |
Get the name of a seek operation.
unsigned short textwolf::XMLPathSelectAutomaton< CharSet_ >::Mask::neg |
unsigned short textwolf::XMLPathSelectAutomaton< CharSet_ >::Mask::pos |