CodePorting.Translator.Cs2Cpp.Framework
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...

#include <memory_management.h>

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...
 

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.