CodePorting::Translator::Cs2Cpp::MemoryManagement::PostponedHolders Class Reference

Keeps ObjectHolder's in Weak state and after the switch, it to Shared remove it from a local collection. More...

Public Member Functions

 PostponedHolders (const System::SharedPtr< System::Object > &key)
 
 ~PostponedHolders ()
 
void switchToShared ()
 Switch ObjectsHolder pointer's collection to Shared mode and clean postponed holders list. More...
 

Friends

template<typename T , typename TObject >
System::SmartPtr< typename T::Pointee_ > MemoryManagement::ExtendLifetimeAsWeakPostponed (const System::SharedPtr< System::Object > &, const T &, const TObject &)
 

Detailed Description

Keeps ObjectHolder's in Weak state and after the switch, it to Shared remove it from a local collection.

Constructor & Destructor Documentation

◆ PostponedHolders()

CodePorting::Translator::Cs2Cpp::MemoryManagement::PostponedHolders::PostponedHolders ( const System::SharedPtr< System::Object > &  key)
inline

◆ ~PostponedHolders()

CodePorting::Translator::Cs2Cpp::MemoryManagement::PostponedHolders::~PostponedHolders ( )
inline

Member Function Documentation

◆ switchToShared()

void CodePorting::Translator::Cs2Cpp::MemoryManagement::PostponedHolders::switchToShared ( )
inline

Switch ObjectsHolder pointer's collection to Shared mode and clean postponed holders list.

Friends And Related Function Documentation

◆ MemoryManagement::ExtendLifetimeAsWeakPostponed

template<typename T , typename TObject >
System::SmartPtr<typename T::Pointee_> MemoryManagement::ExtendLifetimeAsWeakPostponed ( const System::SharedPtr< System::Object > &  ,
const T &  ,
const TObject &   
)
friend