Hymn to Beauty
C++ 3D Engine
Profiling::Thread Class Reference

A thread containing events. More...

#include <Thread.hpp>

Public Member Functions

 Thread (const std::string &name)
 Create new thread. More...
 
EventAddEvent (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< Eventevents
 Events. More...
 

Detailed Description

A thread containing events.

Constructor & Destructor Documentation

◆ Thread()

Profiling::Thread::Thread ( const std::string &  name)
explicit

Create new thread.

Parameters
nameThe name of the new thread.

Member Function Documentation

◆ AddEvent()

Event * Profiling::Thread::AddEvent ( const std::string &  name)

Create new event.

Parameters
nameThe name of the event.
Returns
The event.

◆ FromJson()

void Profiling::Thread::FromJson ( const Json::Value &  value)

Load thread from json value.

Parameters
valueThe json value to load from.

◆ ToJson()

Json::Value Profiling::Thread::ToJson ( ) const

Save thread to json value.

Returns
Json representation of the thread.

Member Data Documentation

◆ events

std::list<Event> Profiling::Thread::events

Events.

◆ name

std::string Profiling::Thread::name

The name of the thread.


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