zypp::NVR Struct Reference

Helper storing Name and Edition. More...

#include <NVR.h>

Inheritance diagram for zypp::NVR:
[legend]

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)
 Stream output.
bool operator== (const NVR &lhs, const NVR &rhs)
bool operator!= (const NVR &lhs, const NVR &rhs)
bool operator< (const NVR &lhs, const NVR &rhs)
 Order in std::container.


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.

Referenced by NVR().

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.

Definition at line 21 of file NVR.cc.

References NVR().


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(), zypp::storage::XMLFilesBackend::fileNameForNVR(), and zypp::operator<<().

Edition zypp::NVR::edition

Definition at line 52 of file NVR.h.

Referenced by compare(), zypp::storage::XMLFilesBackend::fileNameForNVR(), 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