logog
logger optimized for games
Statics Class Reference

#include <statics.hpp>

Public Member Functions

 Statics ()
 
 ~Statics ()
 
void Reset ()
 

Public Attributes

void *(* s_pfMalloc )(size_t)
 
void(* s_pfFree )(void *)
 
void * s_pAllNodes
 
void * s_pAllSubscriberNodes
 
void * s_pAllFilterNodes
 
void * s_pAllTargets
 
void * s_pDefaultFilter
 
Timers_pTimer
 
void * s_pStringSearchMutex
 
Mutexs_pMessageCreationMutex
 
Formatters_pDefaultFormatter
 
int s_nSockets
 
Staticss_pSelf
 

Constructor & Destructor Documentation

Statics ( )
~Statics ( )

Member Function Documentation

void Reset ( )

Resets all statics to startup values. Releases memory allocated by statics.

Member Data Documentation

int s_nSockets

The number of sockets created.

void* s_pAllFilterNodes

Pointers to only those nodes that are capable of subscribing and publishing.

void* s_pAllNodes

Pointers to all the currently existing nodes in the network.

void* s_pAllSubscriberNodes

Pointers to only those nodes that are capable of subscribing.

void* s_pAllTargets

Pointers to the group of all valid targets.

void* s_pDefaultFilter

Pointer to the default filter, if any.

Formatter* s_pDefaultFormatter

The default Formatter for all targets. Targets may use their individual formatters as well if preferred.

void(* s_pfFree) (void *)

A pointer to the free() compatible function used by logog. See logog::Initialize() for more details.

void*(* s_pfMalloc) (size_t)

A pointer to the malloc() compatible function used by logog. See logog::Initialize() for more details.

Mutex* s_pMessageCreationMutex

A lock for creating messages. Prevents dual message creation from multiple threads.

Statics* s_pSelf

A pointer to this object; used for final destruction.

void* s_pStringSearchMutex

A lock on the KMP search for all strings. Prevents mutex explosions.

Timer* s_pTimer

The default global shared timer. All events are generally in reference to this timer, though yoy may create your own timers.


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