libzypp  13.10.6
Resolvable.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include "zypp/Resolvable.h"
13 #include "zypp/ResObject.h"
14 #include "zypp/PoolItem.h"
15 
17 namespace zypp
18 {
19 
20  IMPL_PTR_TYPE(Resolvable);
21 
23  //
24  // METHOD NAME : Resolvable::Resolvable
25  // METHOD TYPE : Ctor
26  //
27  Resolvable::Resolvable( const sat::Solvable & solvable_r )
28  : sat::Solvable( solvable_r )
29  {}
30 
32  //
33  // METHOD NAME : Resolvable::~Resolvable
34  // METHOD TYPE : Dtor
35  //
37  {}
38 
40  //
41  // METHOD NAME : Resolvable::poolItem
42  // METHOD TYPE : PoolItem
43  //
45  { return PoolItem( *this ); }
46 
48  //
49  // METHOD NAME : Resolvable::dumpOn
50  // METHOD TYPE : std::ostream &
51  //
52  std::ostream & Resolvable::dumpOn( std::ostream & str ) const
53  { return str << satSolvable(); }
54 
56 } // namespace zypp
A Solvable object within the sat Pool.
Definition: Solvable.h:55
Resolvable(const sat::Solvable &solvable_r)
Ctor.
Definition: Resolvable.cc:27
PoolItem poolItem() const
Access the corresponding PoolItem.
Definition: Resolvable.cc:44
const sat::Solvable & satSolvable() const
Access the corresponding ::Solvable.
Definition: Resolvable.h:133
virtual std::ostream & dumpOn(std::ostream &str) const
Helper for stream output.
Definition: Resolvable.cc:52
virtual ~Resolvable()
Dtor.
Definition: Resolvable.cc:36
Reference to a PoolItem connecting ResObject and ResStatus.
Definition: PoolItem.h:50
IMPL_PTR_TYPE(KeyRing)