libzypp  13.10.6
zypp::Capabilities Class Reference

Container of Capability (currently read only). More...

#include <Capabilities.h>

Classes

class  const_iterator
 Capabilities iterator. More...
 

Public Types

enum  Mode { SKIP_TO_INTERNAL }
 
typedef Capability value_type
 
typedef unsigned size_type
 

Public Member Functions

 Capabilities ()
 Default ctor. More...
 
 Capabilities (const sat::detail::IdType *base_r)
 Ctor from Id pointer (friend Solvable). More...
 
 Capabilities (const sat::detail::IdType *base_r, sat::detail::IdType skip_r)
 Ctor from Id pointer (friend Solvable). More...
 
bool empty () const
 Whether the container is empty. More...
 
size_type size () const
 Number of capabilities inside. More...
 
const_iterator begin () const
 Iterator pointing to the first Capability. More...
 
const_iterator end () const
 Iterator pointing behind the last Capability. More...
 

Private Attributes

const sat::detail::IdType_begin
 

Related Functions

(Note that these are not member functions.)

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

Detailed Description

Container of Capability (currently read only).

Note
libsolv dependency lists may include internal ids which must be skipped on iteration or size calculation (
See Also
detail::isDepMarkerId).

Definition at line 35 of file Capabilities.h.

Member Typedef Documentation

Definition at line 38 of file Capabilities.h.

Definition at line 39 of file Capabilities.h.

Member Enumeration Documentation

Enumerator
SKIP_TO_INTERNAL 

Definition at line 41 of file Capabilities.h.

Constructor & Destructor Documentation

zypp::Capabilities::Capabilities ( )
inline

Default ctor.

Definition at line 45 of file Capabilities.h.

zypp::Capabilities::Capabilities ( const sat::detail::IdType base_r)
inlineexplicit

Ctor from Id pointer (friend Solvable).

Definition at line 51 of file Capabilities.h.

zypp::Capabilities::Capabilities ( const sat::detail::IdType base_r,
sat::detail::IdType  skip_r 
)

Ctor from Id pointer (friend Solvable).

Jump behind skip_r (e.g. behind prereqMarker).

Definition at line 23 of file Capabilities.cc.

Member Function Documentation

bool zypp::Capabilities::empty ( ) const
inline

Whether the container is empty.

Definition at line 62 of file Capabilities.h.

Capabilities::size_type zypp::Capabilities::size ( ) const

Number of capabilities inside.

Definition at line 45 of file Capabilities.cc.

Capabilities::const_iterator zypp::Capabilities::begin ( ) const
inline

Iterator pointing to the first Capability.

Definition at line 162 of file Capabilities.h.

Capabilities::const_iterator zypp::Capabilities::end ( ) const
inline

Iterator pointing behind the last Capability.

Definition at line 165 of file Capabilities.h.

Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const Capabilities obj 
)
related

Stream output

Definition at line 65 of file Capabilities.cc.

Member Data Documentation

const sat::detail::IdType* zypp::Capabilities::_begin
private

Definition at line 78 of file Capabilities.h.


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