libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Configuration::MatchAgainstConfig Class Reference

match a string against a configurable list of patterns More...

#include <configuration.h>

Inheritance diagram for Configuration::MatchAgainstConfig:
Collaboration diagram for Configuration::MatchAgainstConfig:

Public Member Functions

 MatchAgainstConfig (char const *Config)
 
virtual ~MatchAgainstConfig ()
 
bool Match (char const *str) const
 Returns true for a string matching one of the patterns. More...
 
bool Match (std::string const &str) const
 
bool wasConstructedSuccessfully () const
 returns if the matcher setup was successful More...
 

Private Member Functions

void clearPatterns ()
 

Private Attributes

std::vector< regex_t * > patterns
 

Detailed Description

match a string against a configurable list of patterns

Constructor & Destructor Documentation

Configuration::MatchAgainstConfig::MatchAgainstConfig ( char const *  Config)
virtual Configuration::MatchAgainstConfig::~MatchAgainstConfig ( )
virtual

Member Function Documentation

void Configuration::MatchAgainstConfig::clearPatterns ( )
private
bool Configuration::MatchAgainstConfig::Match ( char const *  str) const

Returns true for a string matching one of the patterns.

Referenced by pkgDepCache::DefaultRootSetFunc::InRootSet().

Here is the caller graph for this function:

bool Configuration::MatchAgainstConfig::Match ( std::string const &  str) const
inline

References Match().

Referenced by Match().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Configuration::MatchAgainstConfig::wasConstructedSuccessfully ( ) const
inline

returns if the matcher setup was successful

References patterns.

Member Data Documentation

std::vector<regex_t *> Configuration::MatchAgainstConfig::patterns
private

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