SPH
Classes | Namespaces | Functions
RawPtr.h File Reference

Simple non-owning wrapper of pointer. More...

#include "common/Assert.h"

Go to the source code of this file.

Classes

class  RawPtr< T >
 Non-owning wrapper of pointer. More...
 

Namespaces

 std
 Overload of std::swap for Sph::Array.
 

Functions

template<typename T1 , typename T2 >
INLINE RawPtr< T1 > dynamicCast (RawPtr< T2 > source)
 
template<typename T >
INLINE RawPtr< T > addressOf (T &ref)
 
template<typename T >
INLINE bool operator== (const RawPtr< T > lhs, std::nullptr_t)
 
template<typename T >
INLINE bool operator== (std::nullptr_t, const RawPtr< T > rhs)
 
template<typename T >
INLINE bool operator!= (const RawPtr< T > lhs, std::nullptr_t)
 
template<typename T >
INLINE bool operator!= (std::nullptr_t, const RawPtr< T > rhs)
 
template<typename T1 , typename T2 >
INLINE bool operator== (const RawPtr< T1 > lhs, const RawPtr< T2 > rhs)
 
template<typename T1 , typename T2 >
INLINE bool operator!= (const RawPtr< T1 > lhs, const RawPtr< T2 > rhs)
 
template<typename T >
INLINE bool operator< (const RawPtr< T > &lhs, const RawPtr< T > &rhs)
 
template<typename T >
void std::swap (Sph::RawPtr< T > &p1, Sph::RawPtr< T > &p2)
 

Detailed Description

Simple non-owning wrapper of pointer.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file RawPtr.h.

Function Documentation

◆ addressOf()

template<typename T >
INLINE RawPtr<T> addressOf ( T &  ref)

Definition at line 82 of file RawPtr.h.

◆ dynamicCast()

template<typename T1 , typename T2 >
INLINE RawPtr<T1> dynamicCast ( RawPtr< T2 >  source)

Definition at line 77 of file RawPtr.h.

◆ operator!=() [1/3]

template<typename T >
INLINE bool operator!= ( const RawPtr< T >  lhs,
std::nullptr_t   
)

Definition at line 97 of file RawPtr.h.

◆ operator!=() [2/3]

template<typename T1 , typename T2 >
INLINE bool operator!= ( const RawPtr< T1 >  lhs,
const RawPtr< T2 >  rhs 
)

Definition at line 112 of file RawPtr.h.

◆ operator!=() [3/3]

template<typename T >
INLINE bool operator!= ( std::nullptr_t  ,
const RawPtr< T >  rhs 
)

Definition at line 102 of file RawPtr.h.

◆ operator<()

template<typename T >
INLINE bool operator< ( const RawPtr< T > &  lhs,
const RawPtr< T > &  rhs 
)

Definition at line 117 of file RawPtr.h.

◆ operator==() [1/3]

template<typename T >
INLINE bool operator== ( const RawPtr< T >  lhs,
std::nullptr_t   
)

Definition at line 87 of file RawPtr.h.

◆ operator==() [2/3]

template<typename T1 , typename T2 >
INLINE bool operator== ( const RawPtr< T1 >  lhs,
const RawPtr< T2 >  rhs 
)

Definition at line 107 of file RawPtr.h.

◆ operator==() [3/3]

template<typename T >
INLINE bool operator== ( std::nullptr_t  ,
const RawPtr< T >  rhs 
)

Definition at line 92 of file RawPtr.h.