Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Memory Class Referencefinal

Custom memory allocator for managed pointers. More...

#include <memory.h>

Inheritance diagram for Antares::Memory:

Classes

struct  Stored
 

Public Member Functions

Constructor & Destructor
 Memory ()=default
 Default Constructor.
 
 ~Memory ()=default
 Destructor.
 
bool initializeTemporaryFolder ()
 
const Yuni::String & cacheFolder () const
 \nane Cache Folder
 
void cacheFolder (const AnyString &folder)
 
uint64_t processID () const
 Get the process ID of the application.
 

Static Public Member Functions

template<class U >
static U * RawPointer (U *array)
 
template<class U >
static void Zero (uint count, U *array)
 
template<class U >
static void Assign (uint count, U *array, const U &value)
 
template<class T >
static void Allocate (T *&out, size_t size)
 
template<class T >
static bool Null (const T *out)
 
template<class T >
static bool StrictNull (const T *out)
 
template<class T >
static void Release (T *&pointer)
 Release a raw pointer.
 

Informations

template<class T >
class Array
 
void displayInfo () const
 Display infos into the logs.
 

Detailed Description

Custom memory allocator for managed pointers.

Member Function Documentation

◆ processID()

uint64_t Antares::Memory::processID ( ) const
inline

Get the process ID of the application.

This value is cached and detected at the creation of the instance.


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