zypp::CapMatch Class Reference

Tri state Capability match result. More...

#include <CapMatch.h>

List of all members.

Public Member Functions

 CapMatch (bool val_r)

Static Public Attributes

static const CapMatch yes
static const CapMatch no
static const CapMatch irrelevant

Private Types

enum  Result { NOMATCH, MATCH, IRRELEVANT }

Private Member Functions

 CapMatch ()

Private Attributes

Result _result

Friends

bool operator== (const CapMatch &lhs, const CapMatch &rhs)
bool operator!= (const CapMatch &lhs, const CapMatch &rhs)
CapMatch operator! (const CapMatch &lhs)
CapMatch operator && (const CapMatch &lhs, const CapMatch &rhs)
CapMatch operator|| (const CapMatch &lhs, const CapMatch &rhs)
std::ostream & operator<< (std::ostream &str, const CapMatch &obj)
 Stream output.


Detailed Description

Tri state Capability match result.

CapMatch::irrelevant denotes a result value that should be ignored. Therfore it behaves neutral when used in ! && || expressions.

   CapMatch any
   (CapMatch::irrelevant && any) == any                  // true
   (CapMatch::irrelevant || any) == any                  // true
   ( !CapMatch::irrelevant )     == CapMatch::irrelevant // true

Definition at line 35 of file CapMatch.h.


Member Enumeration Documentation

enum zypp::CapMatch::Result [private]

Enumerator:
NOMATCH 
MATCH 
IRRELEVANT 

Definition at line 37 of file CapMatch.h.


Constructor & Destructor Documentation

zypp::CapMatch::CapMatch ( bool  val_r  )  [inline]

Definition at line 41 of file CapMatch.h.

zypp::CapMatch::CapMatch (  )  [inline, private]

Definition at line 85 of file CapMatch.h.


Friends And Related Function Documentation

bool operator== ( const CapMatch lhs,
const CapMatch rhs 
) [friend]

Definition at line 49 of file CapMatch.h.

bool operator!= ( const CapMatch lhs,
const CapMatch rhs 
) [friend]

Definition at line 52 of file CapMatch.h.

CapMatch operator! ( const CapMatch lhs  )  [friend]

Definition at line 55 of file CapMatch.h.

CapMatch operator && ( const CapMatch lhs,
const CapMatch rhs 
) [friend]

Definition at line 62 of file CapMatch.h.

CapMatch operator|| ( const CapMatch lhs,
const CapMatch rhs 
) [friend]

Definition at line 72 of file CapMatch.h.

std::ostream & operator<< ( std::ostream &  str,
const CapMatch obj 
) [friend]

Stream output.

Definition at line 32 of file CapMatch.cc.


Member Data Documentation

const CapMatch zypp::CapMatch::yes [static]

Definition at line 45 of file CapMatch.h.

Referenced by zypp::solver::detail::InstallOrder::doesProvide(), zypp::solver::detail::InjectSolutionAction::execute(), zypp::solver::detail::cap_equals< K, V >::operator()(), zypp::resfilter::ByCapMatch::operator()(), zypp::MatchesCapability::operator()(), zypp::solver::detail::QueueItemRequire::process(), zypp::ui::PatternExpander::Impl::providedByFilter(), and zypp::pool::strip_obsoleted_to_delete().

const CapMatch zypp::CapMatch::no [static]

Definition at line 46 of file CapMatch.h.

const CapMatch zypp::CapMatch::irrelevant [static]

Definition at line 47 of file CapMatch.h.

Referenced by zypp::capability::SplitCap::matches(), zypp::capability::NullCap::matches(), zypp::capability::ModaliasCap::matches(), zypp::capability::HalCap::matches(), and zypp::capability::FilesystemCap::matches().

Result zypp::CapMatch::_result [private]

Definition at line 89 of file CapMatch.h.

Referenced by zypp::operator<<().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:14 2007 for libzypp by  doxygen 1.5.3