zypp::NVR Struct Reference

Helper storing Name and Edition. More...

#include <NVR.h>

Inheritance diagram for zypp::NVR:

zypp::NVRA zypp::NVRAD List of all members.

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

std::string name
Edition edition

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const NVR &obj)
bool operator== (const NVR &lhs, const NVR &rhs)
bool operator!= (const NVR &lhs, const NVR &rhs)
bool operator< (const NVR &lhs, const NVR &rhs)

Detailed Description

Helper storing Name and Edition.

Definition at line 31 of file NVR.h.


Constructor & Destructor Documentation

zypp::NVR::NVR  )  [inline]
 

Default ctor.

Definition at line 34 of file NVR.h.

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

Ctor.

Definition at line 39 of file NVR.h.

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

Ctor from Resolvable::constPtr.


Member Function Documentation

static int zypp::NVR::compare const NVR lhs,
const NVR rhs
[inline, static]
 

Comparison mostly for std::container.

Definition at line 56 of file NVR.h.

References zypp::Edition::compare(), edition, and name.

Referenced by zypp::NVRA::compare().


Friends And Related Function Documentation

std::ostream & operator<< std::ostream &  str,
const NVR obj
[related]
 

Stream output

Definition at line 34 of file NVR.cc.

bool operator== const NVR lhs,
const NVR rhs
[related]
 

Definition at line 70 of file NVR.h.

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

bool operator!= const NVR lhs,
const NVR rhs
[related]
 

Definition at line 74 of file NVR.h.

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

bool operator< const NVR lhs,
const NVR rhs
[related]
 

Order in std::container

Definition at line 78 of file NVR.h.

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


Member Data Documentation

std::string zypp::NVR::name
 

Definition at line 50 of file NVR.h.

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

Edition zypp::NVR::edition
 

Definition at line 52 of file NVR.h.

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


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:30 2006 for zypp by  doxygen 1.4.6