MIRA
Public Member Functions | List of all members
TypedVoidConstPtr Class Reference

Same as TypedVoidPtr but const. More...

#include <utils/TypedVoidPtr.h>

Public Member Functions

 TypedVoidConstPtr ()
 Creates nullptr. More...
 
template<typename T >
 TypedVoidConstPtr (const T *ptr)
 Creates a typed void pointer from the given pointer. More...
 
bool isNull () const
 Return if underlying pointer is NULL. More...
 
template<typename T >
 operator const T * () const
 Safely casts to const T*,. More...
 
template<typename T >
const T * cast () const
 Safely casts the object pointer that is stored to const T*. More...
 

Detailed Description

Same as TypedVoidPtr but const.

Constructor & Destructor Documentation

◆ TypedVoidConstPtr() [1/2]

TypedVoidConstPtr ( )
inline

Creates nullptr.

◆ TypedVoidConstPtr() [2/2]

TypedVoidConstPtr ( const T *  ptr)
inline

Creates a typed void pointer from the given pointer.

Member Function Documentation

◆ isNull()

bool isNull ( ) const
inline

Return if underlying pointer is NULL.

◆ operator const T *()

operator const T * ( ) const
inline

Safely casts to const T*,.

Exceptions
XBadCast,ifthe stored void pointer is not of type T.

◆ cast()

const T* cast ( ) const
inline

Safely casts the object pointer that is stored to const T*.

Exceptions
XBadCast,ifthe stored void pointer is not of type T.

The documentation for this class was generated from the following file: