Photon Server API
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]
 
- 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...
 

Member Function Documentation

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

Decrements the counter by one.

Returns
The decremented value.

Implements ExitGames.Diagnostics.Counter.ICounter.

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

Gets the next value.

Returns
The get next value.

Implements ExitGames.Diagnostics.Counter.ICounter.

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.

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

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

Property Documentation

CounterType ExitGames.Concurrency.Fibers.EmptyCounter.CounterType
get
string ExitGames.Concurrency.Fibers.EmptyCounter.Name
get