Photon Server API Documentation v5.0RC1

Public Member Functions | Static Public Attributes | Properties | List of all members
ExitGames.Concurrency.Fibers.EmptyCounter Class Reference
Inheritance diagram for ExitGames.Concurrency.Fibers.EmptyCounter:
ExitGames.Diagnostics.Counter.ICounter

Public Member Functions

float GetNextValue ()
 Gets the next value. More...
 
long Increment ()
 Increments the counter by one and returns the new value. More...
 
long IncrementBy (long value)
 Increments the counter by a given value. More...
 
long Decrement ()
 Decrements the counter by one. More...
 

Static Public Attributes

static readonly ICounter Instance = new EmptyCounter()
 

Properties

string Name [get]
 
CounterType CounterType [get]
 
bool IsValid [get]
 
- Properties inherited from ExitGames.Diagnostics.Counter.ICounter
CounterType CounterType [get]
 Gets the type of the counter. More...
 
string Name [get]
 Gets the name of the counter. More...
 
bool IsValid [get]
 Returns whether counter is valid or not For WindowsPerfCounters this method may return value whether counter exists or not More...
 

Member Function Documentation

◆ Decrement()

long ExitGames.Concurrency.Fibers.EmptyCounter.Decrement ( )
inline

Decrements the counter by one.

Returns
The decremented value.

Implements ExitGames.Diagnostics.Counter.ICounter.

◆ GetNextValue()

float ExitGames.Concurrency.Fibers.EmptyCounter.GetNextValue ( )
inline

Gets the next value.

Returns
The get next value.

Implements ExitGames.Diagnostics.Counter.ICounter.

◆ Increment()

long ExitGames.Concurrency.Fibers.EmptyCounter.Increment ( )
inline

Increments the counter by one and returns the new value.

Returns
The incremented value.

Implements ExitGames.Diagnostics.Counter.ICounter.

◆ IncrementBy()

long ExitGames.Concurrency.Fibers.EmptyCounter.IncrementBy ( long  value)
inline

Increments the counter by a given value.

Parameters
valueThe value to be added to the counter.
Returns
The incremented value.

Implements ExitGames.Diagnostics.Counter.ICounter.

Member Data Documentation

◆ Instance

readonly ICounter ExitGames.Concurrency.Fibers.EmptyCounter.Instance = new EmptyCounter()
static

Property Documentation

◆ CounterType

CounterType ExitGames.Concurrency.Fibers.EmptyCounter.CounterType
get

◆ IsValid

bool ExitGames.Concurrency.Fibers.EmptyCounter.IsValid
get

◆ Name

string ExitGames.Concurrency.Fibers.EmptyCounter.Name
get