zypp::NVRA Struct Reference

Helper storing Name, Edition and Arch. More...

#include <NVRA.h>

Inheritance diagram for zypp::NVRA:
[legend]

List of all members.

Public Member Functions

 NVRA ()
 Default ctor.
 NVRA (const std::string &name_r, const Edition &edition_r=Edition(), const Arch &arch_r=Arch())
 Ctor.
 NVRA (const NVR &nvr_r, const Arch &arch_r=Arch())
 Ctor.
 NVRA (ResTraits< Resolvable >::constPtrType res_r)
 Ctor from Resolvable::constPtr.

Static Public Member Functions

static int compare (const NVRA &lhs, const NVRA &rhs)
 Comparison mostly for std::container.

Public Attributes

Arch arch

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const NVRA &obj)
 Stream output.
bool operator== (const NVRA &lhs, const NVRA &rhs)
bool operator!= (const NVRA &lhs, const NVRA &rhs)
bool operator< (const NVRA &lhs, const NVRA &rhs)
 Order in std::container.


Detailed Description

Helper storing Name, Edition and Arch.

Definition at line 29 of file NVRA.h.


Constructor & Destructor Documentation

zypp::NVRA::NVRA (  )  [inline]

Default ctor.

Definition at line 32 of file NVRA.h.

Referenced by NVRA().

zypp::NVRA::NVRA ( const std::string &  name_r,
const Edition edition_r = Edition(),
const Arch arch_r = Arch() 
) [inline, explicit]

Ctor.

Definition at line 37 of file NVRA.h.

zypp::NVRA::NVRA ( const NVR nvr_r,
const Arch arch_r = Arch() 
) [inline, explicit]

Ctor.

Definition at line 46 of file NVRA.h.

zypp::NVRA::NVRA ( ResTraits< Resolvable >::constPtrType  res_r  )  [explicit]

Ctor from Resolvable::constPtr.

Definition at line 23 of file NVRA.cc.

References NVRA().


Member Function Documentation

static int zypp::NVRA::compare ( const NVRA lhs,
const NVRA rhs 
) [inline, static]

Comparison mostly for std::container.

Definition at line 61 of file NVRA.h.

References arch, zypp::Arch::compare(), and zypp::NVR::compare().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const NVRA obj 
) [related]

Stream output.

Definition at line 36 of file NVRA.cc.

bool operator== ( const NVRA lhs,
const NVRA rhs 
) [related]

Definition at line 75 of file NVRA.h.

References zypp::compareByRel(), and zypp::Rel::EQ.

bool operator!= ( const NVRA lhs,
const NVRA rhs 
) [related]

Definition at line 79 of file NVRA.h.

References zypp::compareByRel(), and zypp::Rel::NE.

bool operator< ( const NVRA lhs,
const NVRA rhs 
) [related]

Order in std::container.

Definition at line 83 of file NVRA.h.

References zypp::compareByRel(), and zypp::Rel::LT.


Member Data Documentation

Arch zypp::NVRA::arch

Definition at line 57 of file NVRA.h.

Referenced by compare(), and zypp::operator<<().


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