libzypp  13.10.6
zypp::StrMatcher::Impl Class Reference

StrMatcher implementation. More...

Public Member Functions

 Impl ()
 
 Impl (const std::string &search_r, const Match &flags_r)
 
 ~Impl ()
 
void compile () const
 Compile the pattern. More...
 
bool isCompiled () const
 Whether the pattern is already compiled. More...
 
bool doMatch (const char *string_r) const
 Return whether string matches. More...
 
const std::string & searchstring () const
 The current searchstring. More...
 
void setSearchstring (const std::string &string_r)
 Set a new searchstring. More...
 
const Matchflags () const
 The current search flags. More...
 
void setFlags (const Match &flags_r)
 Set new search flags. More...
 

Private Member Functions

void invalidate ()
 Has to be called if _search or _flags change. More...
 
Implclone () const
 clone for RWCOW_pointer More...
 

Private Attributes

std::string _search
 
Match _flags
 
scoped_ptr< ::_Datamatcher > _matcher
 

Friends

ImplrwcowClone (const Impl *rhs)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const StrMatcher::Impl &obj)
 

Detailed Description

StrMatcher implementation.

Note
Take care to release any allocated regex by calling ::datamatcher_free.

Definition at line 167 of file StrMatcher.cc.

Constructor & Destructor Documentation

zypp::StrMatcher::Impl::Impl ( )
inline

Definition at line 169 of file StrMatcher.cc.

zypp::StrMatcher::Impl::Impl ( const std::string &  search_r,
const Match flags_r 
)
inline

Definition at line 172 of file StrMatcher.cc.

zypp::StrMatcher::Impl::~Impl ( )
inline

Definition at line 177 of file StrMatcher.cc.

Member Function Documentation

void zypp::StrMatcher::Impl::compile ( ) const
inline

Compile the pattern.

Definition at line 181 of file StrMatcher.cc.

bool zypp::StrMatcher::Impl::isCompiled ( ) const
inline

Whether the pattern is already compiled.

Definition at line 199 of file StrMatcher.cc.

bool zypp::StrMatcher::Impl::doMatch ( const char *  string_r) const
inline

Return whether string matches.

Definition at line 203 of file StrMatcher.cc.

const std::string& zypp::StrMatcher::Impl::searchstring ( ) const
inline

The current searchstring.

Definition at line 213 of file StrMatcher.cc.

void zypp::StrMatcher::Impl::setSearchstring ( const std::string &  string_r)
inline

Set a new searchstring.

Definition at line 217 of file StrMatcher.cc.

const Match& zypp::StrMatcher::Impl::flags ( ) const
inline

The current search flags.

Definition at line 221 of file StrMatcher.cc.

void zypp::StrMatcher::Impl::setFlags ( const Match flags_r)
inline

Set new search flags.

Definition at line 225 of file StrMatcher.cc.

void zypp::StrMatcher::Impl::invalidate ( )
inlineprivate

Has to be called if _search or _flags change.

Definition at line 230 of file StrMatcher.cc.

Impl* zypp::StrMatcher::Impl::clone ( ) const
inlineprivate

clone for RWCOW_pointer

Definition at line 245 of file StrMatcher.cc.

Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs)
friend
std::ostream & operator<< ( std::ostream &  str,
const StrMatcher::Impl obj 
)
related

Stream output

Definition at line 250 of file StrMatcher.cc.

Member Data Documentation

std::string zypp::StrMatcher::Impl::_search
private

Definition at line 238 of file StrMatcher.cc.

Match zypp::StrMatcher::Impl::_flags
private

Definition at line 239 of file StrMatcher.cc.

scoped_ptr< ::_Datamatcher> zypp::StrMatcher::Impl::_matcher
mutableprivate

Definition at line 240 of file StrMatcher.cc.


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