Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
samurai::ContainerManager Struct Reference

#include <containerManager.h>

Collaboration diagram for samurai::ContainerManager:
Collaboration graph

Public Member Functions

containerId_t createContainer (samurai::ContainerInformation containerInformation, samurai::LoadedDll &loadedDll, samurai::LogManager &logManager, samurai::samuraiImgui::ImGuiIdsManager &imguiIDsManager, std::string &cmd, size_t memoryPos=0)
 
containerId_t createContainer (std::string containerName, samurai::LoadedDll &loadedDll, samurai::LogManager &logManager, samurai::samuraiImgui::ImGuiIdsManager &imguiIDsManager, std::string &cmd, size_t memoryPos=0)
 
void * allocateContainerMemory (samurai::RuntimeContainer &container, samurai::ContainerInformation containerInformation, void *memPos=0)
 
void allocateContainerMemoryAtBuffer (samurai::RuntimeContainer &container, samurai::ContainerInformation containerInformation, void *buffer)
 
void freeContainerStuff (samurai::RuntimeContainer &container)
 
void init ()
 
void update (samurai::LoadedDll &loadedDll, samurai::Window &window, samurai::LogManager &logs, samurai::samuraiImgui::ImGuiIdsManager &imguiIdManager)
 
void reloadDll (samurai::LoadedDll &loadedDll, samurai::Window &window, samurai::LogManager &logs)
 
bool destroyContainer (containerId_t id, samurai::LoadedDll &loadedDll, samurai::LogManager &logManager)
 
bool forceTerminateContainer (containerId_t id, samurai::LoadedDll &loadedDll, samurai::LogManager &logManager)
 
void destroyAllContainers (samurai::LoadedDll &loadedDll, samurai::LogManager &logManager)
 
void * allocateOSMemory (size_t size, void *baseAdress=0)
 
void deallocateOSMemory (void *baseAdress)
 

Public Attributes

std::unordered_map< containerId_t, samurai::RuntimeContainerrunningContainers
 
containerId_t idCounter = 0
 

Detailed Description

Definition at line 16 of file containerManager.h.

Member Function Documentation

◆ allocateContainerMemory()

void * samurai::ContainerManager::allocateContainerMemory ( samurai::RuntimeContainer & container,
samurai::ContainerInformation containerInformation,
void * memPos = 0 )

Definition at line 35 of file containerManager.cpp.

Here is the call graph for this function:

◆ allocateContainerMemoryAtBuffer()

void samurai::ContainerManager::allocateContainerMemoryAtBuffer ( samurai::RuntimeContainer & container,
samurai::ContainerInformation containerInformation,
void * buffer )

Definition at line 51 of file containerManager.cpp.

Here is the call graph for this function:

◆ allocateOSMemory()

void * samurai::ContainerManager::allocateOSMemory ( size_t size,
void * baseAdress = 0 )

Definition at line 648 of file containerManager.cpp.

◆ createContainer() [1/2]

samurai::containerId_t samurai::ContainerManager::createContainer ( samurai::ContainerInformation containerInformation,
samurai::LoadedDll & loadedDll,
samurai::LogManager & logManager,
samurai::samuraiImgui::ImGuiIdsManager & imguiIDsManager,
std::string & cmd,
size_t memoryPos = 0 )

Definition at line 96 of file containerManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createContainer() [2/2]

samurai::containerId_t samurai::ContainerManager::createContainer ( std::string containerName,
samurai::LoadedDll & loadedDll,
samurai::LogManager & logManager,
samurai::samuraiImgui::ImGuiIdsManager & imguiIDsManager,
std::string & cmd,
size_t memoryPos = 0 )

Definition at line 13 of file containerManager.cpp.

Here is the call graph for this function:

◆ deallocateOSMemory()

void samurai::ContainerManager::deallocateOSMemory ( void * baseAdress)

Definition at line 653 of file containerManager.cpp.

◆ destroyAllContainers()

void samurai::ContainerManager::destroyAllContainers ( samurai::LoadedDll & loadedDll,
samurai::LogManager & logManager )

Definition at line 613 of file containerManager.cpp.

Here is the caller graph for this function:

◆ destroyContainer()

bool samurai::ContainerManager::destroyContainer ( containerId_t id,
samurai::LoadedDll & loadedDll,
samurai::LogManager & logManager )

Definition at line 549 of file containerManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ forceTerminateContainer()

bool samurai::ContainerManager::forceTerminateContainer ( containerId_t id,
samurai::LoadedDll & loadedDll,
samurai::LogManager & logManager )

Definition at line 586 of file containerManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ freeContainerStuff()

void samurai::ContainerManager::freeContainerStuff ( samurai::RuntimeContainer & container)

Definition at line 83 of file containerManager.cpp.

◆ init()

void samurai::ContainerManager::init ( )

Definition at line 209 of file containerManager.cpp.

Here is the caller graph for this function:

◆ reloadDll()

void samurai::ContainerManager::reloadDll ( samurai::LoadedDll & loadedDll,
samurai::Window & window,
samurai::LogManager & logs )

Definition at line 396 of file containerManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void samurai::ContainerManager::update ( samurai::LoadedDll & loadedDll,
samurai::Window & window,
samurai::LogManager & logs,
samurai::samuraiImgui::ImGuiIdsManager & imguiIdManager )

Definition at line 213 of file containerManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ idCounter

containerId_t samurai::ContainerManager::idCounter = 0

Definition at line 63 of file containerManager.h.

◆ runningContainers

std::unordered_map<containerId_t, samurai::RuntimeContainer> samurai::ContainerManager::runningContainers

Definition at line 19 of file containerManager.h.


The documentation for this struct was generated from the following files: