34 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
37 {
return new Impl( *
this ); }
51 {
return pimpl()->_container; }
64 Container::const_iterator it( container.find( ident_r ) );
65 return it != container.end() ? it->second :
PoolItem();
IdString ident() const
The identifier.
shared_ptr< void > _dont_use_this_use_pimpl
Avoid need to include Impl definition when inlined ctors (due to tepmlate) are provided.
iterator begin() const
Pointer to the first PoolItem.
size_type size() const
Number of PoolItems collected.
Access to the sat-pools string space.
std::tr1::unordered_map< IdString, PoolItem > Container
PoolItem find(IdString ident_r) const
Return the collected PoolItem with sat::Solvable::ident ident_r.
std::ostream & dumpRange(std::ostream &str, _Iterator begin, _Iterator end, const std::string &intro="{", const std::string &pfx="\n ", const std::string &sep="\n ", const std::string &sfx="\n", const std::string &extro="}")
Print range defined by iterators (multiline style).
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Find the best candidates e.g.
const Container & container() const
sat::Solvable satSolvable() const
Return the corresponding sat::Solvable.
PoolItemBest implementation.
RWCOW_pointer< Impl > & pimpl()
Pointer to implementation.
Reference to a PoolItem connecting ResObject and ResStatus.
void add(sat::Solvable slv_r)
Feed one sat::Solvable.
iterator end() const
Pointer behind the last PoolItem.
RW_pointer supporting 'copy on write' functionality.
Impl * clone() const
clone for RWCOW_pointer
Oder on AvailableItemSet.