libzypp: zyppng::sat::CapDetail Class Reference

libzypp 17.38.10

zyppng::sat::CapDetail Class Reference

Helper providing more detailed information about a Capability. More...

`#include <zypp/ng/sat/capability.h>`

## Public Types
enum | Kind { NOCAP = 0x00 , NAMED = 0x01 , VERSIONED = 0x02 , EXPRESSION = 0x04 }
enum | CapRel { REL_NONE = 0 , CAP_AND = Capability::CAP_AND , CAP_OR = Capability::CAP_OR , CAP_COND = Capability::CAP_COND , CAP_UNLESS = Capability::CAP_UNLESS , CAP_ELSE = Capability::CAP_ELSE , CAP_WITH = Capability::CAP_WITH , CAP_WITHOUT = Capability::CAP_WITHOUT , CAP_NAMESPACE = Capability::CAP_NAMESPACE , CAP_ARCH = Capability::CAP_ARCH }
| Enum values corresponding with libsolv defines. More...

## Public Member Functions
| CapDetail ()
| CapDetail (const Capability &cap_r)
| CapDetail (sat::detail::IdType id_r)
Kind | kind () const
bool | isNull () const
bool | isNamed () const
bool | isVersioned () const
bool | isSimple () const
bool | isExpression () const
Is simple: <tt>name[.arch] [op edition]</tt>
bool | hasArch () const
IdString | arch () const
IdString | name () const
Rel | op () const
Edition | ed () const

## Is expression <tt>cap op cap</tt>
Kind | _kind
sat::detail::IdType | _lhs
sat::detail::IdType | _rhs
unsigned | _flag
sat::detail::IdType | _archIfSimple
Capability | lhs () const
CapRel | capRel () const
Capability | rhs () const
void | _init ()

## Detailed Description

Helper providing more detailed information about a Capability.

Capabilities are classified to be either `SIMPLE:`

name[.arch] [op edition]
with op := <|<=|=|>=|>|!=
zyppng::sat::CapDetail::name
IdString name() const
Definition capability.h:392
zyppng::sat::CapDetail::op
Rel op() const
Definition capability.h:393

or formed by some `EXPRESSION:`

( left_cap op right_cap )
with op := and|or|if|unless|else|with|without

Definition at line 338 of file capability.h.

## Member Enumeration Documentation

## ◆ Kind

enum zyppng::sat::CapDetail::Kind

Enumerator
NOCAP |
NAMED |
VERSIONED |
EXPRESSION |

Definition at line 341 of file capability.h.

## ◆ CapRel

enum zyppng::sat::CapDetail::CapRel

Enum values corresponding with libsolv defines.

Note
  MPL check in PoolImpl.cc

Enumerator
REL_NONE | Not an expression.
CAP_AND | `and`
CAP_OR | `or`
CAP_COND | `if`
CAP_UNLESS | `unless`
CAP_ELSE | `else`
CAP_WITH | `with`
CAP_WITHOUT | `without`
CAP_NAMESPACE |
CAP_ARCH | Used internally.

Definition at line 352 of file capability.h.

## Constructor & Destructor Documentation

## ◆ CapDetail() [1/3]

zyppng::sat::CapDetail::CapDetail | ( |  | ) |
| inline

Definition at line 370 of file capability.h.

## ◆ CapDetail() [2/3]

zyppng::sat::CapDetail::CapDetail | ( | const Capability & | cap_r | ) |
| inlineexplicit

Definition at line 373 of file capability.h.

## ◆ CapDetail() [3/3]

zyppng::sat::CapDetail::CapDetail | ( | sat::detail::IdType | id_r | ) |
| inlineexplicit

Definition at line 376 of file capability.h.

## Member Function Documentation

## ◆ kind()

Kind zyppng::sat::CapDetail::kind | ( |  | ) | const
| inline

Definition at line 381 of file capability.h.

## ◆ isNull()

bool zyppng::sat::CapDetail::isNull | ( |  | ) | const
| inline

Definition at line 382 of file capability.h.

## ◆ isNamed()

bool zyppng::sat::CapDetail::isNamed | ( |  | ) | const
| inline

Definition at line 383 of file capability.h.

## ◆ isVersioned()

bool zyppng::sat::CapDetail::isVersioned | ( |  | ) | const
| inline

Definition at line 384 of file capability.h.

## ◆ isSimple()

bool zyppng::sat::CapDetail::isSimple | ( |  | ) | const
| inline

Definition at line 385 of file capability.h.

## ◆ isExpression()

bool zyppng::sat::CapDetail::isExpression | ( |  | ) | const
| inline

Definition at line 386 of file capability.h.

## ◆ hasArch()

bool zyppng::sat::CapDetail::hasArch | ( |  | ) | const
| inline

Definition at line 390 of file capability.h.

## ◆ arch()

IdString zyppng::sat::CapDetail::arch | ( |  | ) | const
| inline

Definition at line 391 of file capability.h.

## ◆ name()

IdString zyppng::sat::CapDetail::name | ( |  | ) | const
| inline

Definition at line 392 of file capability.h.

## ◆ op()

Rel zyppng::sat::CapDetail::op | ( |  | ) | const
| inline

Definition at line 393 of file capability.h.

## ◆ ed()

Edition zyppng::sat::CapDetail::ed | ( |  | ) | const
| inline

Definition at line 394 of file capability.h.

## ◆ lhs()

Capability zyppng::sat::CapDetail::lhs | ( |  | ) | const
| inline

Definition at line 399 of file capability.h.

## ◆ capRel()

CapRel zyppng::sat::CapDetail::capRel | ( |  | ) | const
| inline

Definition at line 400 of file capability.h.

## ◆ rhs()

Capability zyppng::sat::CapDetail::rhs | ( |  | ) | const
| inline

Definition at line 401 of file capability.h.

## ◆ _init()

void zyppng::sat::CapDetail::_init | ( |  | ) |
| private

Definition at line 475 of file capability.cc.

## Member Data Documentation

## ◆ _kind

Kind zyppng::sat::CapDetail::_kind
| private

Definition at line 407 of file capability.h.

## ◆ _lhs

sat::detail::IdType zyppng::sat::CapDetail::_lhs
| private

Definition at line 408 of file capability.h.

## ◆ _rhs

sat::detail::IdType zyppng::sat::CapDetail::_rhs
| private

Definition at line 409 of file capability.h.

## ◆ _flag

unsigned zyppng::sat::CapDetail::_flag
| private

Definition at line 410 of file capability.h.

## ◆ _archIfSimple

sat::detail::IdType zyppng::sat::CapDetail::_archIfSimple
| private

Definition at line 411 of file capability.h.

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

- zypp/ng/sat/capability.h
- zypp/ng/sat/capability.cc