Go to the documentation of this file.
12 #ifndef ZYPP_BASE_PROVIDENUMERICID_H
13 #define ZYPP_BASE_PROVIDENUMERICID_H
44 template<
class TDerived,
class TNumericIdType>
70 {
if ( &rhs !=
this ) {
_numericId = rhs._numericId; }
return *
this; }
85 static TNumericIdType _staticCounter = 0;
87 return ++_staticCounter;
100 #endif // ZYPP_BASE_PROVIDENUMERICID_H
static TNumericIdType nextId()
Provide the next Id to use.
ProvideNumericId(ProvideNumericId &&rhs)
Move ctor.
ProvideNumericId(const ProvideNumericId &)
Copy ctor.
ProvideNumericId(const void *const)
No-Id ctor (0).
const TNumericIdType _numericId
ProvideNumericId & operator=(const ProvideNumericId &)
Assign.
Base class for objects providing a numeric Id.
ProvideNumericId & operator=(ProvideNumericId &&rhs)
Move Assign.
Easy-to use interface to the ZYPP dependency resolver.
TNumericIdType numericId() const
ProvideNumericId()
Default ctor.