|
Hymn to Beauty
C++ 3D Engine
|
A thread containing events. More...
#include <Thread.hpp>
Public Member Functions | |
| Thread (const std::string &name) | |
| Create new thread. More... | |
| Event * | AddEvent (const std::string &name) |
| Create new event. More... | |
| Json::Value | ToJson () const |
| Save thread to json value. More... | |
| void | FromJson (const Json::Value &value) |
| Load thread from json value. More... | |
Public Attributes | |
| std::string | name |
| The name of the thread. More... | |
| std::list< Event > | events |
| Events. More... | |
A thread containing events.
|
explicit |
Create new thread.
| name | The name of the new thread. |
| Event * Profiling::Thread::AddEvent | ( | const std::string & | name | ) |
Create new event.
| name | The name of the event. |
| void Profiling::Thread::FromJson | ( | const Json::Value & | value | ) |
Load thread from json value.
| value | The json value to load from. |
| Json::Value Profiling::Thread::ToJson | ( | ) | const |
Save thread to json value.
| std::list<Event> Profiling::Thread::events |
Events.
| std::string Profiling::Thread::name |
The name of the thread.