DUNE-FEM (unstable)
referencecounter.hh
35 : public BartonNackmanInterface< ReferenceCounterInterface< RCT >, typename RCT::ReferenceCounterType >
134 typedef ReferenceCounterInterface< typename ReferenceCounter::Traits > ReferenceCounterInterfaceType;
135 static const bool v = std::is_convertible< ReferenceCounter, ReferenceCounterInterfaceType >::value;
227 static_assert( SupportsReferenceCounterInterface< ReferenceCounter >::v, "ObjectPointer can only point to reference counting types." );
#define CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(__interface_method_to_call__)
Definition: bartonnackmanifcheck.hh:61
models a pointer to a reference countable object
Definition: referencecounter.hh:224
ReferenceCounter ReferenceCounterType
type of the object, this pointer points to
Definition: referencecounter.hh:231
ObjectType & operator*() const
dereference the ObjectPointer
Definition: referencecounter.hh:294
ObjectPointer(const ThisType &other)
copy constructor
Definition: referencecounter.hh:254
unsigned int referenceCounter() const
return current reference count
Definition: referencecounter.hh:301
~ObjectPointer()
destructor
Definition: referencecounter.hh:266
ObjectPointer(ReferenceCounterType *const object=0)
initialize a pointer (with a standard C++ pointer)
Definition: referencecounter.hh:240
ThisType & operator=(const ThisType &other)
assign another pointer to this one.
Definition: referencecounter.hh:274
default implementation of ReferenceCounterInterface
Definition: referencecounter.hh:154
unsigned int referenceCounter() const
return current reference count
Definition: referencecounter.hh:206
BaseType::ReferenceCounterType ReferenceCounterType
type of the implementation (Barton-Nackman)
Definition: referencecounter.hh:160
ReferenceCounterDefault(unsigned int refcount=1)
constructor initializing the reference counter
Definition: referencecounter.hh:177
void removeReference() const
Dune namespace. :: ReferenceCounterInterface :: removeReference
Definition: referencecounter.hh:197
void deleteObject()
Dune namespace. :: ReferenceCounterInterface :: deleteObject
Definition: referencecounter.hh:191
void addReference() const
Dune namespace. :: ReferenceCounterInterface :: addReference
Definition: referencecounter.hh:185
interface for objects capable of reference counting
Definition: referencecounter.hh:36
Traits::ObjectType ObjectType
type of the object, this is a reference counter for
Definition: referencecounter.hh:51
void deleteObject()
delete to object
Definition: referencecounter.hh:81
void removeReference() const
remove a reference to this object
Definition: referencecounter.hh:123
RCT Traits
type of the traits
Definition: referencecounter.hh:42
ObjectType & getObject()
access the real object (non-const version)
Definition: referencecounter.hh:108
void addReference() const
add a reference to this object
Definition: referencecounter.hh:66
Traits::ReferenceCounterType ReferenceCounterType
type of the implementation (Barton-Nackman)
Definition: referencecounter.hh:45
ThisType ReferenceCounterInterfaceType
type of the reference counter interface
Definition: referencecounter.hh:48
const ObjectType & getObject() const
access the real object (const version)
Definition: referencecounter.hh:94
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)