40 #ifndef DOXYGEN_SHOULD_SKIP_THIS 42 template <
typename Val >
45 template <
typename Val >
60 template <
typename Val >
61 void swap(RefPtr< Val >& ptr1, RefPtr< Val >& ptr2);
116 template <
typename Val >
150 explicit RefPtr(Val* val = 0);
156 RefPtr(
const RefPtr< Val >& from);
163 template <
typename DownVal >
184 operator bool()
const;
222 RefPtr< Val >&
operator=(
const RefPtr< Val >& from);
255 template <
typename DownVal >
274 bool operator==(
const RefPtr< Val >& from)
const;
287 bool operator!=(
const RefPtr< Val >& from)
const;
330 template <
typename T >
334 template <
typename T >
353 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 354 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 355 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 360 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 361 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 362 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 368 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 369 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 370 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS RefPtr< Val > & operator=(const RefPtr< Val > &from)
Copy operator.
friend class RefPtr
A friend to allow downcastings.
~RefPtr()
Class destructor.
unsigned int * __refCountPtr() const
A function to return the refcount pointer.
Val * operator->() const
Dereferencing operator.
void __destroy(unsigned int *, Val *)
A function to remove the content of the smart pointer, if any.
Class template representing hashing function of LpCol.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Smart pointersaGrUM's smart pointers keep track of the number of times the value they point to is ref...
Val * __val
The dumb pointer encapsulated into the "smart" pointer.
bool operator!=(const RefPtr< Val > &from) const
Checks whether two RefPtr<Val> are smart pointers for different elements.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool operator==(const RefPtr< Val > &from) const
Checks whether two RefPtr<Val> are smart pointers for the same element.
void clear()
Makes the smart pointer point to 0.
Val & operator*()
Dereferencing operator.
void swap(RefPtr< Val > &ptr1, RefPtr< Val > &ptr2)
Swap the contents of two RefPtr.
unsigned int refCount() const
Returns the number of smart pointer referencing the contained pointer.
unsigned int * __refcount
A reference counter on *val.