ememory Namespace Reference

Classes

class  Counter
 
class  EnableSharedFromThis
 
class  EnableSharedFromThisBase
 
class  SharedPtr
 
class  WeakPtr
 

Typedefs

using deleterCall = std::function< void(void *_data)>
 

Functions

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr< EMEMORY_TYPE_CAST > dynamicPointerCast (ememory::SharedPtr< EMEMORY_TYPE > &_obj)
 
template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
const ememory::SharedPtr< EMEMORY_TYPE_CAST > dynamicPointerCast (const ememory::SharedPtr< EMEMORY_TYPE > &_obj)
 
template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr< EMEMORY_TYPE_CAST > staticPointerCast (ememory::SharedPtr< EMEMORY_TYPE > &_obj)
 
template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
const ememory::SharedPtr< EMEMORY_TYPE_CAST > staticPointerCast (const ememory::SharedPtr< EMEMORY_TYPE > &_obj)
 
template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr< EMEMORY_TYPE_CAST > reinterpretPointerCast (ememory::SharedPtr< EMEMORY_TYPE > &_obj)
 
template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
const ememory::SharedPtr< EMEMORY_TYPE_CAST > reinterpretPointerCast (const ememory::SharedPtr< EMEMORY_TYPE > &_obj)
 
template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr< EMEMORY_TYPE_CAST > constPointerCast (const ememory::SharedPtr< EMEMORY_TYPE > &_obj)
 

Detailed Description

Ememory is a namespace to represent the.

#include <memory>

part ==> simple memory access abstraction

Function Documentation

§ constPointerCast()

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr<EMEMORY_TYPE_CAST> ememory::constPointerCast ( const ememory::SharedPtr< EMEMORY_TYPE > &  _obj)
inline

Cast in const the input SharedPtr into an other type like const_cast on pointer (remove constness)

Parameters
[in]_objObject To cast
Returns
Casted Object

§ dynamicPointerCast() [1/2]

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr<EMEMORY_TYPE_CAST> ememory::dynamicPointerCast ( ememory::SharedPtr< EMEMORY_TYPE > &  _obj)
inline

Cast in Dynamic the input SharedPtr into an other type like dynamic_cast on pointer.

Parameters
[in]_objObject To cast
Returns
Casted Object

§ dynamicPointerCast() [2/2]

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
const ememory::SharedPtr<EMEMORY_TYPE_CAST> ememory::dynamicPointerCast ( const ememory::SharedPtr< EMEMORY_TYPE > &  _obj)
inline

CONST Cast in Dynamic the input SharedPtr into an other type like dynamic_cast on pointer.

Parameters
[in]_objObject To cast
Returns
Casted Object

§ reinterpretPointerCast() [1/2]

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr<EMEMORY_TYPE_CAST> ememory::reinterpretPointerCast ( ememory::SharedPtr< EMEMORY_TYPE > &  _obj)
inline

Cast in reinterpret the input SharedPtr into an other type like reinterpret_cast on pointer.

Parameters
[in]_objObject To cast
Returns
Casted Object

§ reinterpretPointerCast() [2/2]

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
const ememory::SharedPtr<EMEMORY_TYPE_CAST> ememory::reinterpretPointerCast ( const ememory::SharedPtr< EMEMORY_TYPE > &  _obj)
inline

CONST Cast in reinterpret the input SharedPtr into an other type like reinterpret_cast on pointer.

Parameters
[in]_objObject To cast
Returns
Casted Object

§ staticPointerCast() [1/2]

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
ememory::SharedPtr<EMEMORY_TYPE_CAST> ememory::staticPointerCast ( ememory::SharedPtr< EMEMORY_TYPE > &  _obj)
inline

Cast in static the input SharedPtr into an other type like static_cast on pointer.

Parameters
[in]_objObject To cast
Returns
Casted Object

§ staticPointerCast() [2/2]

template<class EMEMORY_TYPE_CAST , class EMEMORY_TYPE >
const ememory::SharedPtr<EMEMORY_TYPE_CAST> ememory::staticPointerCast ( const ememory::SharedPtr< EMEMORY_TYPE > &  _obj)
inline

CONST Cast in static the input SharedPtr into an other type like static_cast on pointer.

Parameters
[in]_objObject To cast
Returns
Casted Object