PandA-2024.02
|
Template definition of refcount. More...
#include <boost/version.hpp>
#include <functional>
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... | |
Template definition of refcount.
This structure is used each time an auto-deallocating class is needed.
Definition in file refcount.hpp.
#define CONSTREF_FORWARD_DECL | ( | obj | ) |
Definition at line 226 of file refcount.hpp.
#define REF_FORWARD_DECL | ( | obj | ) |
Macro used to forward declared a Refcount type.
Definition at line 223 of file refcount.hpp.
|
inline |
Template function used to hide dynamic_cast The template parameter T represents a type of an object having as a base class U.
t | is a refcount<U> containing the pointer |
Definition at line 237 of file refcount.hpp.
References refcount< T >::get().
|
inline |
Template function used to hide static_cast The template parameter T represents a type of an object having as a base class U.
t | is a refcount<U> containing the pointer |
Definition at line 249 of file refcount.hpp.
References refcount< T >::get().