libcopp  1.1.0
Static Public Member Functions
cotask::core::standard_new_allocator Class Reference

#include <standard_new_allocator.h>

Collaboration diagram for cotask::core::standard_new_allocator:
Collaboration graph

Static Public Member Functions

template<typename Ty >
static std::shared_ptr< Ty > allocate (Ty *)
 allocate a object with 0 parameter(s). More...
 
template<typename Ty , typename TARG0 >
static std::shared_ptr< Ty > allocate (Ty *, TARG0 COPP_MACRO_RV_REF arg0)
 allocate a object with 1 parameter(s). More...
 
template<typename Ty , typename TARG0 , typename TARG1 >
static std::shared_ptr< Ty > allocate (Ty *, TARG0 COPP_MACRO_RV_REF arg0, TARG1 COPP_MACRO_RV_REF arg1)
 allocate a object with 2 parameter(s). More...
 
template<typename Ty , typename TARG0 , typename TARG1 , typename TARG2 >
static std::shared_ptr< Ty > allocate (Ty *, TARG0 COPP_MACRO_RV_REF arg0, TARG1 COPP_MACRO_RV_REF arg1, TARG2 COPP_MACRO_RV_REF arg2)
 allocate a object with 3 parameter(s). More...
 
template<typename Ty , typename TARG0 , typename TARG1 , typename TARG2 , typename TARG3 >
static std::shared_ptr< Ty > allocate (Ty *, TARG0 COPP_MACRO_RV_REF arg0, TARG1 COPP_MACRO_RV_REF arg1, TARG2 COPP_MACRO_RV_REF arg2, TARG3 COPP_MACRO_RV_REF arg3)
 allocate a object with 4 parameter(s). More...
 
template<typename Ty , typename TARG0 , typename TARG1 , typename TARG2 , typename TARG3 , typename TARG4 >
static std::shared_ptr< Ty > allocate (Ty *, TARG0 COPP_MACRO_RV_REF arg0, TARG1 COPP_MACRO_RV_REF arg1, TARG2 COPP_MACRO_RV_REF arg2, TARG3 COPP_MACRO_RV_REF arg3, TARG4 COPP_MACRO_RV_REF arg4)
 allocate a object with 5 parameter(s). More...
 
template<typename Ty >
static void deallocate (std::shared_ptr< Ty > &)
 

Detailed Description

Definition at line 20 of file standard_new_allocator.h.

Member Function Documentation

template<typename Ty >
static std::shared_ptr<Ty> cotask::core::standard_new_allocator::allocate ( Ty *  )
inlinestatic

allocate a object with 0 parameter(s).

Returns
pointer of new object

Definition at line 39 of file standard_new_allocator.h.

References COPP_MACRO_STD_MOVE.

template<typename Ty , typename TARG0 >
static std::shared_ptr<Ty> cotask::core::standard_new_allocator::allocate ( Ty *  ,
TARG0 COPP_MACRO_RV_REF  arg0 
)
inlinestatic

allocate a object with 1 parameter(s).

Parameters
arg0parameter 0
Returns
pointer of new object

Definition at line 49 of file standard_new_allocator.h.

References COPP_MACRO_STD_FORWARD, and COPP_MACRO_STD_MOVE.

template<typename Ty , typename TARG0 , typename TARG1 >
static std::shared_ptr<Ty> cotask::core::standard_new_allocator::allocate ( Ty *  ,
TARG0 COPP_MACRO_RV_REF  arg0,
TARG1 COPP_MACRO_RV_REF  arg1 
)
inlinestatic

allocate a object with 2 parameter(s).

Parameters
arg0parameter 0
arg1parameter 1
Returns
pointer of new object

Definition at line 60 of file standard_new_allocator.h.

References COPP_MACRO_STD_FORWARD, and COPP_MACRO_STD_MOVE.

template<typename Ty , typename TARG0 , typename TARG1 , typename TARG2 >
static std::shared_ptr<Ty> cotask::core::standard_new_allocator::allocate ( Ty *  ,
TARG0 COPP_MACRO_RV_REF  arg0,
TARG1 COPP_MACRO_RV_REF  arg1,
TARG2 COPP_MACRO_RV_REF  arg2 
)
inlinestatic

allocate a object with 3 parameter(s).

Parameters
arg0parameter 0
arg1parameter 1
arg2parameter 2
Returns
pointer of new object

Definition at line 72 of file standard_new_allocator.h.

References COPP_MACRO_STD_FORWARD, and COPP_MACRO_STD_MOVE.

template<typename Ty , typename TARG0 , typename TARG1 , typename TARG2 , typename TARG3 >
static std::shared_ptr<Ty> cotask::core::standard_new_allocator::allocate ( Ty *  ,
TARG0 COPP_MACRO_RV_REF  arg0,
TARG1 COPP_MACRO_RV_REF  arg1,
TARG2 COPP_MACRO_RV_REF  arg2,
TARG3 COPP_MACRO_RV_REF  arg3 
)
inlinestatic

allocate a object with 4 parameter(s).

Parameters
arg0parameter 0
arg1parameter 1
arg2parameter 2
arg3parameter 3
Returns
pointer of new object

Definition at line 87 of file standard_new_allocator.h.

References COPP_MACRO_STD_FORWARD, and COPP_MACRO_STD_MOVE.

template<typename Ty , typename TARG0 , typename TARG1 , typename TARG2 , typename TARG3 , typename TARG4 >
static std::shared_ptr<Ty> cotask::core::standard_new_allocator::allocate ( Ty *  ,
TARG0 COPP_MACRO_RV_REF  arg0,
TARG1 COPP_MACRO_RV_REF  arg1,
TARG2 COPP_MACRO_RV_REF  arg2,
TARG3 COPP_MACRO_RV_REF  arg3,
TARG4 COPP_MACRO_RV_REF  arg4 
)
inlinestatic

allocate a object with 5 parameter(s).

Parameters
arg0parameter 0
arg1parameter 1
arg2parameter 2
arg3parameter 3
arg4parameter 4
Returns
pointer of new object

Definition at line 103 of file standard_new_allocator.h.

References COPP_MACRO_STD_FORWARD, and COPP_MACRO_STD_MOVE.

template<typename Ty >
static void cotask::core::standard_new_allocator::deallocate ( std::shared_ptr< Ty > &  )
inlinestatic

Definition at line 112 of file standard_new_allocator.h.


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