commit 2025-09-03 13:56 edit ZCChars::Init() in ZCppMain/ZtCMainChars.H
This commit is contained in:
@ -2966,12 +2966,15 @@ namespace ZNsMain
|
||||
|
||||
//////////////////////////////////////////////////////////////////*/
|
||||
|
||||
template<typename TType> class ZtCObjPtr
|
||||
template
|
||||
<typename TType, typename TTypeArg=const TType&>
|
||||
class ZtCObjPtr
|
||||
{
|
||||
public :
|
||||
typedef TType TypeData ;
|
||||
typedef TType TypeData ;
|
||||
typedef TTypeArg TypeArg ;
|
||||
protected:
|
||||
TypeData& mr_TypeData ;
|
||||
TypeData& mr_TypeData;
|
||||
public :
|
||||
|
||||
ZtCObjPtr(TType& AR_CData) : mr_TypeData(AR_CData){}
|
||||
@ -2980,6 +2983,20 @@ namespace ZNsMain
|
||||
TypeData& operator* (){return mr_TypeData;}
|
||||
operator TypeData& (){return mr_TypeData;}
|
||||
|
||||
ZtCObjPtr& operator=(const ZtCObjPtr& rhs)
|
||||
{
|
||||
if(this==&rhs) return *this;
|
||||
|
||||
mr_TypeData = rhs.mr_TypeData; return *this;
|
||||
}/*
|
||||
ZtCObjPtr& operator=(const ZtCObjPtr& rhs)*/
|
||||
|
||||
ZtCObjPtr& operator=(TTypeArg AO_ArguData)
|
||||
{
|
||||
mr_TypeData = AO_ArguData; return *this;
|
||||
}/*
|
||||
ZtCObjPtr& operator=(TTypeArg AO_ArguData)*/
|
||||
|
||||
public :
|
||||
};/*
|
||||
template<typename TType> class ZtCObjPtr */
|
||||
@ -2990,7 +3007,7 @@ namespace ZNsMain
|
||||
■ object 를 heap 에 생성하고, 참조 카운트를 이용하여 관리.
|
||||
|
||||
-- 2014-07-20 04:49:00
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////*/
|
||||
|
||||
template< typename TType, typename TAllocClass=ZCAllocClass
|
||||
|
Reference in New Issue
Block a user