top | up | prev | next

rt Namespace

Classes

class Allocation
struct AssertionResult
class CallStack
class ClassIdMap
class CmdbSessionServer
class DebugHeap
struct Destruction
class DirectoryIterationTable
class ErrorTable
struct FunctionProfileData
struct Iteration
class MT
class Profiler
struct SerialLess
struct SourceLocation
class StaticInitTable
class StringTable
class ThreadPool
class UnitTestEngine

Functions

void AllocateMutexes(const std::vector<boost::uuids::uuid>& staticClassIds)
void DisposeError(int32_t errorId)
void DisposeString(int32_t stringHandle)
void DoneClasses()
void DoneCmdbSession()
void DoneDirectory()
void DoneError()
void DoneMemory()
void DoneProfiler()
void DoneScreen()
void DoneStatics()
void DoneString()
void DoneThread()
bool DynamicInitVmtsAndCompare(void* vmt1, void* vmt2)
void ExecuteDestructors()
void ExecuteThreadFunction(ThreadFunction threadFunction, int32_t threadId)
void ExecuteThreadFunctionWithParam(ThreadFunctionWithParam threadFunction, void* param, int32_t threadId)
void ExecuteThreadMethod(ThreadMethod threadMethod, void* object, int32_t threadId)
void ExecuteThreadMethodWithParam(ThreadMethodWithParam threadMethod, void* object, void* param, int32_t threadId)
boost::multiprecision::uint128_t GetClassId(const boost::uuids::uuid& typeId)
const char* GetError(int32_t errorId)
const char* GetString(int32_t stringHandle)
void InitClasses(int64_t numberOfPolymorphicClassIds, const uint64_t* polymorphicClassIdArray, int64_t numberOfStaticClassIds, const uint64_t* staticClassIdArray)
void InitCmdbSession()
void InitDirectory()
void InitError()
void InitMemory()
void InitMt(uint32_t seed)
void InitProfiler()
void InitScreen()
void InitStatics()
void InitString()
void InitThread()
int32_t InstallError(const std::string& errorMessage)
int32_t InstallString(const std::string& str)
bool IsCmdbSessionOpen()
uint32_t Random()
uint64_t Random64()
int64_t ReadBytesFromCmdbSession(uint8_t* buffer, int64_t bufferSize)
void SetDebugAllocation(int debugSerial)
void SetDebugHeap()
void StartCmdbSession()
void WriteBytesToCmdbSession(int fileHandle, const uint8_t* buffer, int64_t count)

Enumerations

enum class TimePointKind

Variables

const int assertionResulFailed
const int assertionResultEmpty
const int assertionResultPassed
CallStack* callStack
void* currentException
Destruction* destructionList
std::mutex dynamicInitVmtMutex
std::vector<FunctionProfileData>* functionProfileData
std::unordered_map<int, int> keyMap
MT* mt
std::mutex mtx
const std::int64_t sessionTimeoutSecs
std::string* stackTrace

Function Details

AllocateMutexes Function

void cmajor::rt::AllocateMutexes(const std::vector<boost::uuids::uuid>& staticClassIds)

Definition at line 89 of Statics.cpp :
 90 {
 91     StaticInitTable::Instance().AllocateMutexes(staticClassIds);
 92 }


Declaration at line 19 of Statics.hpp

Calls: cmajor::rt::StaticInitTable::AllocateMutexes , cmajor::rt::StaticInitTable::Instance


DisposeError Function

void cmajor::rt::DisposeError(int32_t errorId)

Definition at line 90 of Error.cpp :
 91 {
 92     ErrorTable::Instance().DisposeError(-errorId);
 93 }


Declaration at line 38 of Error.hpp

Calls: cmajor::rt::ErrorTable::DisposeError , cmajor::rt::ErrorTable::Instance


DisposeString Function

void cmajor::rt::DisposeString(int32_t stringHandle)

Definition at line 64 of String.cpp :
65 {
66     StringTable::Instance().DisposeString(stringHandle);
67 }


Declaration at line 34 of String.hpp

Calls: cmajor::rt::StringTable::DisposeString , cmajor::rt::StringTable::Instance


DoneClasses Function

void cmajor::rt::DoneClasses()

Definition at line 151 of Classes.cpp :
152 {
153     ClassIdMap::Done();
154 }


Declaration at line 14 of Classes.hpp

Calls: cmajor::rt::ClassIdMap::Done


DoneCmdbSession Function

void cmajor::rt::DoneCmdbSession()

Definition at line 416 of Debug.cpp :
417 {
418     CmdbSessionServer::Done();
419 }


Declaration at line 17 of Debug.hpp

Calls: cmajor::rt::CmdbSessionServer::Done


DoneDirectory Function

void cmajor::rt::DoneDirectory()

Definition at line 131 of Directory.cpp :
132 {
133     DirectoryIterationTable::Done();
134 }


Declaration at line 14 of Directory.hpp

Calls: cmajor::rt::DirectoryIterationTable::Done


DoneError Function

void cmajor::rt::DoneError()

Definition at line 112 of Error.cpp :
113 {
114     ErrorTable::Done();
115 }


Declaration at line 40 of Error.hpp

Calls: cmajor::rt::ErrorTable::Done


DoneMemory Function

void cmajor::rt::DoneMemory()

Definition at line 225 of Memory.cpp :
226 {
227     DebugHeap::Done();
228 }


Declaration at line 23 of Memory.hpp

Calls: cmajor::rt::DebugHeap::Done


DoneProfiler Function

void cmajor::rt::DoneProfiler()

Definition at line 123 of Profile.cpp :
124 {
125     Profiler::Instance().WriteData();
126     Profiler::Done();
127 }


Calls: cmajor::rt::Profiler::Done , cmajor::rt::Profiler::Instance , cmajor::rt::Profiler::WriteData


DoneScreen Function

void cmajor::rt::DoneScreen()

Definition at line 126 of Screen.cpp :
127 {
128 }


Declaration at line 165 of Screen.hpp


DoneStatics Function

void cmajor::rt::DoneStatics()

Definition at line 125 of Statics.cpp :
126 {
127     ExecuteDestructors();
128     StaticInitTable::Done();
129 }


Declaration at line 22 of Statics.hpp

Calls: cmajor::rt::StaticInitTable::Done


DoneString Function

void cmajor::rt::DoneString()

Definition at line 74 of String.cpp :
75 {
76     StringTable::Done();
77 }


Declaration at line 37 of String.hpp

Calls: cmajor::rt::StringTable::Done


DoneThread Function

void cmajor::rt::DoneThread()

Definition at line 263 of Thread.cpp :
264 {
265     ThreadPool::Done();
266 }


Declaration at line 22 of Thread.hpp

Calls: cmajor::rt::ThreadPool::Done


DynamicInitVmtsAndCompare Function

bool cmajor::rt::DynamicInitVmtsAndCompare(void * vmt1, void * vmt2)

Definition at line 121 of Classes.cpp
Declaration at line 15 of Classes.hpp

Calls: cmajor::rt::ClassIdMap::GetClassId , cmajor::rt::ClassIdMap::Instance


ExecuteDestructors Function

void cmajor::rt::ExecuteDestructors()

Definition at line 108 of Statics.cpp :
109 {
110     Destruction* destruction = destructionList;
111     while (destruction)
112     {
113         destructionList = destructionList->next;
114         destruction->destructor(destruction->arg);
115         delete destruction;
116         destruction = destructionList;
117     }
118 }



ExecuteThreadFunction Function

void cmajor::rt::ExecuteThreadFunction(ThreadFunction threadFunction, int32_t threadId)

Definition at line 26 of Thread.cpp


ExecuteThreadFunctionWithParam Function

void cmajor::rt::ExecuteThreadFunctionWithParam(ThreadFunctionWithParam threadFunction, void * param, int32_t threadId)

Definition at line 44 of Thread.cpp


ExecuteThreadMethod Function

void cmajor::rt::ExecuteThreadMethod(ThreadMethod threadMethod, void * object, int32_t threadId)

Definition at line 62 of Thread.cpp


ExecuteThreadMethodWithParam Function

void cmajor::rt::ExecuteThreadMethodWithParam(ThreadMethodWithParam threadMethod, void * object, void * param, int32_t threadId)

Definition at line 80 of Thread.cpp


GetClassId Function

boost::multiprecision::uint128_t cmajor::rt::GetClassId(const boost::uuids::uuid& typeId)

Definition at line 76 of Classes.cpp :
 77 {
 78     return ClassIdMap::Instance().GetClassId(typeId);
 79 }


Declaration at line 16 of Classes.hpp

Calls: cmajor::rt::ClassIdMap::GetClassId , cmajor::rt::ClassIdMap::Instance


GetError Function

const char * cmajor::rt::GetError(int32_t errorId)

Definition at line 85 of Error.cpp :
 86 {
 87     return ErrorTable::Instance().GetError(-errorId);
 88 }


Declaration at line 37 of Error.hpp

Calls: cmajor::rt::ErrorTable::GetError , cmajor::rt::ErrorTable::Instance


GetString Function

const char * cmajor::rt::GetString(int32_t stringHandle)

Definition at line 59 of String.cpp :
60 {
61     return StringTable::Instance().GetString(stringHandle);
62 }


Declaration at line 33 of String.hpp

Calls: cmajor::rt::StringTable::GetString , cmajor::rt::StringTable::Instance


InitClasses Function

void cmajor::rt::InitClasses(int64_t numberOfPolymorphicClassIds, const uint64_t* polymorphicClassIdArray, int64_t numberOfStaticClassIds, const uint64_t* staticClassIdArray)

Definition at line 81 of Classes.cpp
Declaration at line 13 of Classes.hpp

Calls: cmajor::rt::ClassIdMap::Init , cmajor::rt::ClassIdMap::Instance , cmajor::rt::ClassIdMap::SetClassId


InitCmdbSession Function

void cmajor::rt::InitCmdbSession()

Definition at line 411 of Debug.cpp :
412 {
413     CmdbSessionServer::Init();
414 }


Declaration at line 16 of Debug.hpp

Calls: cmajor::rt::CmdbSessionServer::Init


InitDirectory Function

void cmajor::rt::InitDirectory()

Definition at line 126 of Directory.cpp :
127 {
128     DirectoryIterationTable::Init();
129 }


Declaration at line 13 of Directory.hpp

Calls: cmajor::rt::DirectoryIterationTable::Init


InitError Function

void cmajor::rt::InitError()

Definition at line 107 of Error.cpp :
108 {
109     ErrorTable::Init();
110 }


Declaration at line 39 of Error.hpp

Calls: cmajor::rt::ErrorTable::Init


InitMemory Function

void cmajor::rt::InitMemory()

Definition at line 220 of Memory.cpp :
221 {
222     DebugHeap::Init();
223 }


Declaration at line 22 of Memory.hpp

Calls: cmajor::rt::DebugHeap::Init


InitMt Function

void cmajor::rt::InitMt(uint32_t seed)

Definition at line 137 of Random.cpp :
138 {
139     if (mt == nullptr)
140     {
141         mt = new MT();
142     }
143     mt->Init(seed);
144 }


Calls: cmajor::rt::MT::Init


InitProfiler Function

void cmajor::rt::InitProfiler()

Definition at line 118 of Profile.cpp :
119 {
120     Profiler::Init();
121 }


Calls: cmajor::rt::Profiler::Init


InitScreen Function

void cmajor::rt::InitScreen()

Definition at line 74 of Screen.cpp
Declaration at line 164 of Screen.hpp


InitStatics Function

void cmajor::rt::InitStatics()

Definition at line 120 of Statics.cpp :
121 {
122     StaticInitTable::Init();
123 }


Declaration at line 21 of Statics.hpp

Calls: cmajor::rt::StaticInitTable::Init


InitString Function

void cmajor::rt::InitString()

Definition at line 69 of String.cpp :
70 {
71     StringTable::Init();
72 }


Declaration at line 36 of String.hpp

Calls: cmajor::rt::StringTable::Init


InitThread Function

void cmajor::rt::InitThread()

Definition at line 258 of Thread.cpp :
259 {
260     ThreadPool::Init();
261 }


Declaration at line 21 of Thread.hpp

Calls: cmajor::rt::ThreadPool::Init


InstallError Function

int32_t cmajor::rt::InstallError(const std::string& errorMessage)

Definition at line 80 of Error.cpp :
 81 {
 82     return -ErrorTable::Instance().InstallError(errorMessage);
 83 }


Declaration at line 36 of Error.hpp

Calls: cmajor::rt::ErrorTable::InstallError , cmajor::rt::ErrorTable::Instance


InstallString Function

int32_t cmajor::rt::InstallString(const std::string& str)

Definition at line 54 of String.cpp :
55 {
56     return StringTable::Instance().InstallString(str);
57 }


Declaration at line 32 of String.hpp

Calls: cmajor::rt::StringTable::InstallString , cmajor::rt::StringTable::Instance


IsCmdbSessionOpen Function

bool cmajor::rt::IsCmdbSessionOpen()

Definition at line 391 of Debug.cpp :
392 {
393     return CmdbSessionServer::Instance().IsSessionOpen();
394 }


Declaration at line 13 of Debug.hpp

Calls: cmajor::rt::CmdbSessionServer::Instance , cmajor::rt::CmdbSessionServer::IsSessionOpen


Random Function

uint32_t cmajor::rt::Random()

Definition at line 146 of Random.cpp

Calls: cmajor::rt::MT::GenRand , cmajor::rt::MT::InitWithRandomSeed , cmajor::rt::MT::Initialized


Random64 Function

uint64_t cmajor::rt::Random64()

Definition at line 159 of Random.cpp :
160 {
161     return static_cast<uint64_t>(Random()) << 32 | static_cast<uint64_t>(Random());
162 }



ReadBytesFromCmdbSession Function

int64_t cmajor::rt::ReadBytesFromCmdbSession(uint8_t* buffer, int64_t bufferSize)

Definition at line 406 of Debug.cpp :
407 {
408     return CmdbSessionServer::Instance().ReceiveInput(bufferbufferSize);
409 }


Declaration at line 15 of Debug.hpp

Calls: cmajor::rt::CmdbSessionServer::Instance , cmajor::rt::CmdbSessionServer::ReceiveInput


SetDebugAllocation Function

void cmajor::rt::SetDebugAllocation(int debugSerial)

Definition at line 215 of Memory.cpp :
216 {
217     DebugHeap::Instance().SetDebugSerial(debugSerial);
218 }


Declaration at line 20 of Memory.hpp

Calls: cmajor::rt::DebugHeap::Instance , cmajor::rt::DebugHeap::SetDebugSerial


SetDebugHeap Function

void cmajor::rt::SetDebugHeap()

Definition at line 210 of Memory.cpp :
211 {
212     DebugHeap::Instance().SetDebugHeap();
213 }


Declaration at line 19 of Memory.hpp

Calls: cmajor::rt::DebugHeap::Instance , cmajor::rt::DebugHeap::SetDebugHeap


StartCmdbSession Function

void cmajor::rt::StartCmdbSession()

Definition at line 265 of Debug.cpp
Declaration at line 12 of Debug.hpp

Calls: cmajor::rt::CmdbSessionServer::Instance , cmajor::rt::CmdbSessionServer::Start , sngxml::dom::Element::GetAttribute , sngxml::dom::Node::GetNodeType , soulng::util::Path::ChangeExtension


WriteBytesToCmdbSession Function

void cmajor::rt::WriteBytesToCmdbSession(int fileHandle, const uint8_t* buffer, int64_t count)

Definition at line 396 of Debug.cpp :
397 {
398     std::string output;
399     for (int64_t i = 0; i < count; ++i)
400     {
401         output.append(ToHexString(buffer[i]));
402     }
403     CmdbSessionServer::Instance().SendOutput(fileHandleoutput);
404 }


Declaration at line 14 of Debug.hpp

Calls: cmajor::rt::CmdbSessionServer::Instance , cmajor::rt::CmdbSessionServer::SendOutput


top | up | prev | next