top | up | prev | next

Trace Class

Definition at line 216 of Trace.cpp

Member Functions

void AddEntry(const TraceEntry& entry)
void Done() static
void Init() static
Trace& Instance() static
void Write()

Member Variables

std::vector<TraceEntry> entries
std::unique_ptr<Trace> instance static
std::mutex mtx

Member Function Details

AddEntry Member Function

void soulng::util::Trace::AddEntry(const TraceEntry & entry)

Definition at line 242 of Trace.cpp :
243 {
244     std::lock_guard<std::mutex> lock(mtx);
245     entries.push_back(entry);
246 }


Declaration at line 222 of Trace.cpp


Done Member Function

void soulng::util::Trace::Done() static

Definition at line 237 of Trace.cpp :
238 {
239     instance.reset();
240 }


Declaration at line 220 of Trace.cpp


Init Member Function

void soulng::util::Trace::Init() static

Definition at line 232 of Trace.cpp :
233 {
234     instance.reset(new Trace());
235 }


Declaration at line 219 of Trace.cpp


Instance Member Function

Trace & soulng::util::Trace::Instance() static

Definition at line 221 of Trace.cpp :
221 { return *instance; }


Write Member Function

void soulng::util::Trace::Write()

Definition at line 248 of Trace.cpp
Declaration at line 223 of Trace.cpp

Calls: soulng::util::BinaryWriter::Write , soulng::util::BinaryWriter::Write , soulng::util::BinaryWriter::Write


top | up | prev | next