*
* Debuging tools which should not be used in released code.
*/
-#ifndef ZYPP_NDEBUG
#warning ZYPP_BASE_DEBUG_H included
#ifndef ZYPP_BASE_DEBUG_H
#define ZYPP_BASE_DEBUG_H
*/
struct TraceCADBase
{
- enum What { CTOR, COPYCTOR, MOVECTOR, ASSIGN, MOVEASSIGN, DTOR, PING };
+ enum What { CTOR, COPYCTOR, ASSIGN, DTOR, PING };
std::string _ident;
};
{
switch( obj )
{
- case TraceCADBase::CTOR: return str << "CTOR";
- case TraceCADBase::COPYCTOR: return str << "COPYCTOR";
- case TraceCADBase::MOVECTOR: return str << "MOVECTOR";
- case TraceCADBase::ASSIGN: return str << "ASSIGN";
- case TraceCADBase::MOVEASSIGN: return str << "MOVEASSIGN";
- case TraceCADBase::DTOR: return str << "DTOR";
- case TraceCADBase::PING: return str << "PING";
+ case TraceCADBase::CTOR: return str << "CTOR";
+ case TraceCADBase::COPYCTOR: return str << "COPYCTOR";
+ case TraceCADBase::ASSIGN: return str << "ASSIGN";
+ case TraceCADBase::DTOR: return str << "DTOR";
+ case TraceCADBase::PING: return str << "PING";
}
return str;
}
{ ++_totalTraceCAD();
traceCAD( COPYCTOR, *this, rhs ); }
- TraceCAD( TraceCAD && rhs )
- { ++_totalTraceCAD();
- traceCAD( MOVECTOR, *this, rhs ); }
-
TraceCAD & operator=( const TraceCAD & rhs )
{ traceCAD( ASSIGN, *this, rhs ); return *this; }
- TraceCAD & operator=( TraceCAD && rhs )
- { traceCAD( MOVEASSIGN, *this, rhs ); return *this; }
-
virtual ~TraceCAD()
{ --_totalTraceCAD();
traceCAD( DTOR, *this, *this ); }
break;
case TraceCADBase::COPYCTOR:
- case TraceCADBase::MOVECTOR:
case TraceCADBase::ASSIGN:
- case TraceCADBase::MOVEASSIGN:
_DBG("DEBUG") << what_r << self_r << "( " << rhs_r << ")" << " (" << self_r._ident << ")" << std::endl;
break;
}
} // namespace zypp
///////////////////////////////////////////////////////////////////
#endif // ZYPP_BASE_DEBUG_H
-#endif // ZYPP_NDEBUG