top | up | prev | next

Allocation Class

Definition at line 21 of Memory.cpp

Constructors

Allocation()
Allocation(int serial_, int64_t size_, const char* info_)

Member Functions

bool Disposed() const
const char* Info() const
void Print(const std::string& title) const
int Serial() const
void SetDisposed(bool disposed_)
void SetInfo(const char* info_)
void SetSerial(int serial_)
void SetSize(int64_t size_)
int64_t Size() const

Member Variables

bool disposed
const char* info
int serial
int64_t size

Constructor Details

Allocation Constructor

cmajor::rt::Allocation::Allocation()

Definition at line 42 of Memory.cpp :
 42 : serial(0)size(0)disposed(false)info(nullptr)
 43 {
 44 }


Declaration at line 24 of Memory.cpp


Allocation Constructor

cmajor::rt::Allocation::Allocation(int serial_, int64_t size_, const char * info_)

Definition at line 46 of Memory.cpp :
 46 : serial(serial_)size(size_)disposed(false)info(info_)
 47 {
 48 }


Declaration at line 25 of Memory.cpp


Member Function Details

Disposed Member Function

bool cmajor::rt::Allocation::Disposed() const

Definition at line 31 of Memory.cpp :
 31 { return disposed; }

Called by: cmajor::rt::DebugHeap::Dispose , cmajor::rt::DebugHeap::PrintLeaks


Info Member Function

const char * cmajor::rt::Allocation::Info() const

Definition at line 33 of Memory.cpp :
 33 { return info; }


Print Member Function

void cmajor::rt::Allocation::Print(const std::string& title) const

Definition at line 50 of Memory.cpp
Declaration at line 26 of Memory.cpp

Called by: cmajor::rt::DebugHeap::Dispose , cmajor::rt::DebugHeap::PrintLeaks


Serial Member Function

int cmajor::rt::Allocation::Serial() const

Definition at line 27 of Memory.cpp :
 27 { return serial; }

Called by: cmajor::rt::DebugHeap::Dispose , cmajor::rt::SerialLess::operator()


SetDisposed Member Function

void cmajor::rt::Allocation::SetDisposed(bool disposed_)

Definition at line 32 of Memory.cpp :
 32 { disposed = disposed_; }

Called by: cmajor::rt::DebugHeap::Allocate , cmajor::rt::DebugHeap::Dispose


SetInfo Member Function

void cmajor::rt::Allocation::SetInfo(const char * info_)

Definition at line 34 of Memory.cpp :
 34 { info = info_; }

Called by: cmajor::rt::DebugHeap::Allocate


SetSerial Member Function

void cmajor::rt::Allocation::SetSerial(int serial_)

Definition at line 28 of Memory.cpp :
 28 { serial = serial_; }

Called by: cmajor::rt::DebugHeap::Allocate


SetSize Member Function

void cmajor::rt::Allocation::SetSize(int64_t size_)

Definition at line 30 of Memory.cpp :
 30 { size = size_; }

Called by: cmajor::rt::DebugHeap::Allocate


Size Member Function

int64_t cmajor::rt::Allocation::Size() const

Definition at line 29 of Memory.cpp :
 29 { return size; }


top | up | prev | next