Photon Server API Documentation v5.0RC1

Public Member Functions | Protected Member Functions | Properties | List of all members
ExitGames.Diagnostics.Counter.CounterBase Class Referenceabstract

The base class for counters. More...

Inheritance diagram for ExitGames.Diagnostics.Counter.CounterBase:
ExitGames.Diagnostics.Counter.ICounter ExitGames.Diagnostics.Counter.AverageCounter ExitGames.Diagnostics.Counter.CountsPerSecondCounter ExitGames.Diagnostics.Counter.DummyCounter ExitGames.Diagnostics.Counter.NumericCounter

Public Member Functions

abstract RawCounterSample GetNextSample ()
 Gets the next sample. More...
 
abstract long Decrement ()
 Decrements the counter. More...
 
abstract float GetNextValue ()
 Gets the next value. More...
 
abstract long Increment ()
 Increments the counter. More...
 
abstract long IncrementBy (long value)
 Increments the counter by a value. More...
 

Protected Member Functions

 CounterBase ()
 Initializes a new instance of the CounterBase class. More...
 
 CounterBase (string name)
 Initializes a new instance of the CounterBase class. More...
 

Properties

abstract CounterType CounterType [get]
 Gets the type of the counter. More...
 
string Name [get]
 Gets Name. More...
 
bool IsValid [get, protected set]
 
- 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...
 

Detailed Description

The base class for counters.

Constructor & Destructor Documentation

◆ CounterBase() [1/2]

ExitGames.Diagnostics.Counter.CounterBase.CounterBase ( )
inlineprotected

Initializes a new instance of the CounterBase class.

◆ CounterBase() [2/2]

ExitGames.Diagnostics.Counter.CounterBase.CounterBase ( string  name)
inlineprotected

Initializes a new instance of the CounterBase class.

Parameters
nameThe counter name.

Member Function Documentation

◆ Decrement()

abstract long ExitGames.Diagnostics.Counter.CounterBase.Decrement ( )
pure virtual

◆ GetNextSample()

abstract RawCounterSample ExitGames.Diagnostics.Counter.CounterBase.GetNextSample ( )
pure virtual

◆ GetNextValue()

abstract float ExitGames.Diagnostics.Counter.CounterBase.GetNextValue ( )
pure virtual

◆ Increment()

abstract long ExitGames.Diagnostics.Counter.CounterBase.Increment ( )
pure virtual

◆ IncrementBy()

abstract long ExitGames.Diagnostics.Counter.CounterBase.IncrementBy ( long  value)
pure virtual

Property Documentation

◆ CounterType

abstract CounterType ExitGames.Diagnostics.Counter.CounterBase.CounterType
get

Gets the type of the counter.

The type of the counter.

◆ IsValid

bool ExitGames.Diagnostics.Counter.CounterBase.IsValid
getprotected set

◆ Name

string ExitGames.Diagnostics.Counter.CounterBase.Name
get

Gets Name.