PandA-2024.02
Data Structures | Namespaces | Macros | Functions
refcount.hpp File Reference

Template definition of refcount. More...

#include <boost/version.hpp>
#include <functional>
Include dependency graph for refcount.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  null_deleter
 null deleter More...
 
struct  Wrefcount< T >
 
struct  refcount< T >
 Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: http://www.antlr.org/license.html). More...
 
struct  refcount< T >::Ref
 
struct  Wrefcount< T >
 
struct  std::hash< refcount< T > >
 
class  RefCountOrder< T >
 The key comparison function for refcount. More...
 

Namespaces

 std
 Definition of hash function for EdgeDescriptor.
 

Macros

#define REF_FORWARD_DECL(obj)
 Macro used to forward declared a Refcount type. More...
 
#define CONSTREF_FORWARD_DECL(obj)
 

Functions

template<class T , class U >
T * GetPointer (const refcount< U > &t)
 Template function used to hide dynamic_cast The template parameter T represents a type of an object having as a base class U. More...
 
template<class T , class U >
T * GetPointerS (const refcount< U > &t)
 Template function used to hide static_cast The template parameter T represents a type of an object having as a base class U. More...
 

Detailed Description

Template definition of refcount.

This structure is used each time an auto-deallocating class is needed.

Author
Fabrizio Ferrandi fabri.nosp@m.zio..nosp@m.ferra.nosp@m.ndi@.nosp@m.polim.nosp@m.i.it $Revision$ $Date$ Last modified by $Author$

Definition in file refcount.hpp.

Macro Definition Documentation

◆ CONSTREF_FORWARD_DECL

#define CONSTREF_FORWARD_DECL (   obj)
Value:
class obj; \
typedef refcount<const obj> obj##ConstRef
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94

Definition at line 226 of file refcount.hpp.

◆ REF_FORWARD_DECL

#define REF_FORWARD_DECL (   obj)
Value:
class obj; \
typedef refcount<obj> obj##Ref
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94

Macro used to forward declared a Refcount type.

Definition at line 223 of file refcount.hpp.

Function Documentation

◆ GetPointer()

template<class T , class U >
T* GetPointer ( const refcount< U > &  t)
inline

Template function used to hide dynamic_cast The template parameter T represents a type of an object having as a base class U.

Parameters
tis a refcount<U> containing the pointer
Returns
the pointer casted to the T class

Definition at line 237 of file refcount.hpp.

References refcount< T >::get().

Here is the call graph for this function:

◆ GetPointerS()

template<class T , class U >
T* GetPointerS ( const refcount< U > &  t)
inline

Template function used to hide static_cast The template parameter T represents a type of an object having as a base class U.

Parameters
tis a refcount<U> containing the pointer
Returns
the pointer casted to the T class

Definition at line 249 of file refcount.hpp.

References refcount< T >::get().

Here is the call graph for this function:

Generated on Mon Feb 12 2024 13:03:35 for PandA-2024.02 by doxygen 1.8.13