yast2-core
Macros
RepDef.h File Reference
#include <y2util/Rep.h>

Go to the source code of this file.

Macros

#define REP_BODY(NAME)   GEN_REP_BODY( NAME, #NAME )
 
#define GEN_REP_BODY(CLNAME, STRNAME)
 
#define DEFINE_BASE_POINTER(NAME)
 
#define DEFINE_BASE_POINTER_IN_NAMESPACE(NS, NAME)
 
#define DEFINE_DERIVED_POINTER(NAME, BASE)
 
#define DEFINE_DERIVED_POINTER_IN_NAMESPACE(NS, NAME, BASE)
 
#define IMPL_BASE_POINTER(NAME)
 
#define IMPL_BASE_POINTER_IN_NAMESPACE(NS, NAME)
 
#define IMPL_DERIVED_POINTER(NAME, BASE)
 
#define IMPL_DERIVED_POINTER_IN_NAMESPACE(NS, NAME, BASE)
 

Macro Definition Documentation

#define DEFINE_BASE_POINTER (   NAME)
Value:
class NAME; \
typedef Ptr<NAME> NAME##Ptr; \
typedef constPtr<NAME> const##NAME##Ptr; \
extern template class RepPtrStore<NAME>; \
extern template class RepPtrStore<const NAME>;
Counted 'const _Tp *'. Support construction/assignment via dynamic_cast from constPtrBase<_Bt> ...
Definition: Rep.h:473
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
Counted '_Tp *'. Support construction/assignment via dynamic_cast from PtrBase<_Bt> ...
Definition: Rep.h:482
#define DEFINE_BASE_POINTER_IN_NAMESPACE (   NS,
  NAME 
)
Value:
namespace NS { \
class NAME; \
typedef Ptr<NAME> NAME##Ptr; \
typedef constPtr<NAME> const##NAME##Ptr; \
} \
extern template class RepPtrStore<NS::NAME>; \
extern template class RepPtrStore<const NS::NAME>;
Counted 'const _Tp *'. Support construction/assignment via dynamic_cast from constPtrBase<_Bt> ...
Definition: Rep.h:473
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
Counted '_Tp *'. Support construction/assignment via dynamic_cast from PtrBase<_Bt> ...
Definition: Rep.h:482
#define DEFINE_DERIVED_POINTER (   NAME,
  BASE 
)
Value:
class NAME; \
typedef Ptr<NAME,BASE> NAME##Ptr; \
typedef constPtr<NAME,BASE> const##NAME##Ptr; \
extern template class RepPtrStore<NAME,BASE>; \
extern template class RepPtrStore<const NAME,const BASE>;
Counted 'const _Tp *'. Support construction/assignment via dynamic_cast from constPtrBase<_Bt> ...
Definition: Rep.h:473
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
Counted '_Tp *'. Support construction/assignment via dynamic_cast from PtrBase<_Bt> ...
Definition: Rep.h:482
#define DEFINE_DERIVED_POINTER_IN_NAMESPACE (   NS,
  NAME,
  BASE 
)
Value:
namespace NS { \
class NAME; \
typedef Ptr<NAME,BASE> NAME##Ptr; \
typedef constPtr<NAME,BASE> const##NAME##Ptr; \
} \
extern template class RepPtrStore<NS::NAME,BASE>; \
Counted 'const _Tp *'. Support construction/assignment via dynamic_cast from constPtrBase<_Bt> ...
Definition: Rep.h:473
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
Counted '_Tp *'. Support construction/assignment via dynamic_cast from PtrBase<_Bt> ...
Definition: Rep.h:482
#define GEN_REP_BODY (   CLNAME,
  STRNAME 
)
Value:
CLNAME( const CLNAME & ); /* no copy */ \
CLNAME & operator=(const CLNAME & ); /* no assign */ \
public: \
virtual const char * repName() const \
{ return STRNAME; } \
virtual size_t mem_size () const { return sizeof (CLNAME); }\
private:
#define IMPL_BASE_POINTER (   NAME)
Value:
template class RepPtrStore<NAME>; \
template class RepPtrStore<const NAME>;
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
#define IMPL_BASE_POINTER_IN_NAMESPACE (   NS,
  NAME 
)
Value:
template class RepPtrStore<NS::NAME>; \
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
#define IMPL_DERIVED_POINTER (   NAME,
  BASE 
)
Value:
template class RepPtrStore<NAME,BASE>; \
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
#define IMPL_DERIVED_POINTER_IN_NAMESPACE (   NS,
  NAME,
  BASE 
)
Value:
template class RepPtrStore<NS::NAME,BASE>; \
A '_Tp*' with reference counting on construction and assign.
Definition: Rep.h:270
#define REP_BODY (   NAME)    GEN_REP_BODY( NAME, #NAME )

Generated on a sunny day for yast2-core by doxygen 1.8.8