Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

matching::ParsedRegexpFilter< Conv, aIgnoreCase, aMinLen, aMaxLen > Class Template Reference

#include <Matching.h>

Inheritance diagram for matching::ParsedRegexpFilter< Conv, aIgnoreCase, aMinLen, aMaxLen >:

List of all members.


Detailed Description

template<class Conv, bool aIgnoreCase, size_t aMinLen = 0, size_t aMaxLen = 0>
class matching::ParsedRegexpFilter< Conv, aIgnoreCase, aMinLen, aMaxLen >

Represents a parsed regexp filter. The string format is: "rx:<regexp>" or "<string>" where <regexp> is a valid regexp and <string> is the exact match.

Parameters:
Conv class that must define a public static function Bstr toBstr (T aValue), where T is the type of values that should be accepted by isMatch(). This function is used to get the string representation of T for regexp matching.
aIgnoreCase true if the case insensitive comparison should be done by default and false otherwise
aMinLen minimum string length, or 0 if not limited. Used only when the filter string represents the exact match.
aMaxLen maximum string length, or 0 if not limited. Used only when the filter string represents the exact match.

Definition at line 376 of file Matching.h.


Public Types

enum  { IgnoreCase = aIgnoreCase, MinLen = aMinLen, MaxLen = aMaxLen }

Public Member Functions

size_t errorPosition () const
template<class T>
bool isMatch (const T &aValue) const
bool isNull () const
bool isValid () const
ParsedRegexpFilteroperator= (const Bstr &aFilter)
 ParsedRegexpFilter (const Bstr &aFilter)

Protected Member Functions

bool isMatch (const Bstr &aValue) const
bool isPreMatch () const

Protected Attributes

size_t mErrorPosition
bool mNull: 1
bool mValid: 1

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index