gem5  v20.1.0.0
Classes | Functions
refcnt.hh File Reference
#include <type_traits>

Go to the source code of this file.

Classes

class  RefCounted
 Derive from RefCounted if you want to enable reference counting of this class. More...
 
class  RefCountingPtr< T >
 If you want a reference counting pointer to a mutable object, create it like this: More...
 

Functions

template<class T >
bool operator== (const RefCountingPtr< T > &l, const RefCountingPtr< T > &r)
 Check for equality of two reference counting pointers. More...
 
template<class T >
bool operator== (const RefCountingPtr< T > &l, const T *r)
 Check for equality of of a reference counting pointers and a regular pointer. More...
 
template<class T >
bool operator== (const T *l, const RefCountingPtr< T > &r)
 Check for equality of of a reference counting pointers and a regular pointer. More...
 
template<class T >
bool operator!= (const RefCountingPtr< T > &l, const RefCountingPtr< T > &r)
 Check for inequality of two reference counting pointers. More...
 
template<class T >
bool operator!= (const RefCountingPtr< T > &l, const T *r)
 Check for inequality of of a reference counting pointers and a regular pointer. More...
 
template<class T >
bool operator!= (const T *l, const RefCountingPtr< T > &r)
 Check for inequality of of a reference counting pointers and a regular pointer. More...
 

Detailed Description

Classes for managing reference counted objects.

Definition in file refcnt.hh.

Function Documentation

◆ operator!=() [1/3]

template<class T >
bool operator!= ( const RefCountingPtr< T > &  l,
const RefCountingPtr< T > &  r 
)
inline

Check for inequality of two reference counting pointers.

Definition at line 272 of file refcnt.hh.

References MipsISA::l, and MipsISA::r.

◆ operator!=() [2/3]

template<class T >
bool operator!= ( const RefCountingPtr< T > &  l,
const T *  r 
)
inline

Check for inequality of of a reference counting pointers and a regular pointer.

Definition at line 278 of file refcnt.hh.

References MipsISA::l, and MipsISA::r.

◆ operator!=() [3/3]

template<class T >
bool operator!= ( const T *  l,
const RefCountingPtr< T > &  r 
)
inline

Check for inequality of of a reference counting pointers and a regular pointer.

Definition at line 284 of file refcnt.hh.

References MipsISA::l, and MipsISA::r.

◆ operator==() [1/3]

template<class T >
bool operator== ( const RefCountingPtr< T > &  l,
const RefCountingPtr< T > &  r 
)
inline

Check for equality of two reference counting pointers.

Definition at line 255 of file refcnt.hh.

References MipsISA::l, and MipsISA::r.

◆ operator==() [2/3]

template<class T >
bool operator== ( const RefCountingPtr< T > &  l,
const T *  r 
)
inline

Check for equality of of a reference counting pointers and a regular pointer.

Definition at line 261 of file refcnt.hh.

References MipsISA::l, and MipsISA::r.

◆ operator==() [3/3]

template<class T >
bool operator== ( const T *  l,
const RefCountingPtr< T > &  r 
)
inline

Check for equality of of a reference counting pointers and a regular pointer.

Definition at line 267 of file refcnt.hh.

References MipsISA::l, and MipsISA::r.


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17