mn::pointer::basic_any_ptr< T > Class Template Reference
#include <mn_any_ptr.hpp>
Public Types | |
using | element_type = T |
using | size_type = size_t |
using | pointer = T * |
using | const_pointer = const T * |
using | self_type = basic_any_ptr< T > |
Public Member Functions | |
basic_any_ptr () | |
Construct a new basic any ptr object. More... | |
basic_any_ptr (const_pointer pObject) | |
Construct a new basic any ptr object. More... | |
basic_any_ptr (const basic_any_ptr &other) | |
Construct a new basic any ptr object from a copy. More... | |
template<typename U > | |
basic_any_ptr (const basic_any_ptr< U > &other) | |
Construct a new basic any ptr object from a copy. More... | |
const self_type & | operator= (const self_type &other) |
Assignment Operator. More... | |
template<class U > | |
const self_type & | operator= (const basic_any_ptr< U > &other) |
Assignment Operator. More... | |
template<class U > | |
const self_type & | operator= (const U *pObject) |
Assign from object pointer. More... | |
operator const_pointer () | |
template<class U > | |
operator const U * () | |
Implicit cast to non-const object pointer. More... | |
bool | is_null () |
Is the pointer null. More... | |
Private Attributes | |
const_pointer | m_pObject |
Member Typedef Documentation
◆ const_pointer
template<typename T >
using mn::pointer::basic_any_ptr< T >::const_pointer = const T* |
◆ element_type
template<typename T >
using mn::pointer::basic_any_ptr< T >::element_type = T |
◆ pointer
template<typename T >
using mn::pointer::basic_any_ptr< T >::pointer = T* |
◆ self_type
template<typename T >
using mn::pointer::basic_any_ptr< T >::self_type = basic_any_ptr<T> |
◆ size_type
template<typename T >
using mn::pointer::basic_any_ptr< T >::size_type = size_t |
Constructor & Destructor Documentation
◆ basic_any_ptr() [1/4]
template<typename T >
|
inline |
Construct a new basic any ptr object.
◆ basic_any_ptr() [2/4]
template<typename T >
|
inline |
Construct a new basic any ptr object.
◆ basic_any_ptr() [3/4]
template<typename T >
|
inline |
Construct a new basic any ptr object from a copy.
◆ basic_any_ptr() [4/4]
template<typename T >
template<typename U >
|
inline |
Construct a new basic any ptr object from a copy.
- Template Parameters
-
U The type of the other any_ptr type
- Parameters
-
other The copy
Member Function Documentation
◆ is_null()
template<typename T >
|
inline |
Is the pointer null.
- Returns
- true The pointer hold a null pointer
- false The pointer is set
◆ operator const U *()
template<typename T >
template<class U >
|
inline |
Implicit cast to non-const object pointer.
◆ operator const_pointer()
template<typename T >
|
inline |
◆ operator=() [1/3]
template<typename T >
template<class U >
|
inline |
Assignment Operator.
- Template Parameters
-
U The type of the other any_ptr type
- Parameters
-
other The assignment object
- Returns
- self
◆ operator=() [2/3]
template<typename T >
|
inline |
Assignment Operator.
- Parameters
-
other The assignment object
- Returns
- self
◆ operator=() [3/3]
template<typename T >
template<class U >
|
inline |
Assign from object pointer.
Member Data Documentation
◆ m_pObject
template<typename T >
|
private |
The documentation for this class was generated from the following file: