Energy Core Library
Energy.Base.Counter Class Reference

Counter class More...

Public Member Functions

 Counter ()
 
 Counter (long minimum)
 
 Counter (long minimum, long maximum)
 
 Counter (long minimum, long maximum, long value)
 
long GetValue ()
 
void SetValue (long value)
 
ulong GetAbsolute ()
 
void SetAbsolute (ulong value)
 
long GetMinimum ()
 
void SetMinimum (long value)
 
long GetMaximum ()
 
void SetMaximum (long value)
 
bool GetOverflow ()
 
void SetOverflow (bool value)
 
void Reset (long value)
 Reset counter with specified value. More...
 
void Reset ()
 Reset counter with initial (Minimum) value. More...
 
override string ToString ()
 
long Decrement ()
 
long Increment ()
 

Static Public Member Functions

static long Increment (ref long value)
 
static ulong Increment (ref ulong value)
 
static int Increment (ref int value)
 
static uint Increment (ref uint value)
 
static void Increment (ref byte value)
 
static void Increment (ref sbyte value)
 
static float Increment (ref float value)
 
static double Increment (ref double value)
 
static decimal Increment (ref decimal value)
 

Properties

long Value [get, set]
 Value More...
 
long Minimum [get, set]
 Minimum More...
 
long Maximum [get, set]
 Maximum More...
 
bool Overflow [get, set]
 Overflow More...
 
ulong Absolute [get, set]
 Value More...
 

Detailed Description

Counter class

Constructor & Destructor Documentation

◆ Counter() [1/4]

Energy.Base.Counter.Counter ( )

◆ Counter() [2/4]

Energy.Base.Counter.Counter ( long  minimum)

◆ Counter() [3/4]

Energy.Base.Counter.Counter ( long  minimum,
long  maximum 
)

◆ Counter() [4/4]

Energy.Base.Counter.Counter ( long  minimum,
long  maximum,
long  value 
)

Member Function Documentation

◆ Decrement()

long Energy.Base.Counter.Decrement ( )

◆ GetAbsolute()

ulong Energy.Base.Counter.GetAbsolute ( )

◆ GetMaximum()

long Energy.Base.Counter.GetMaximum ( )

◆ GetMinimum()

long Energy.Base.Counter.GetMinimum ( )

◆ GetOverflow()

bool Energy.Base.Counter.GetOverflow ( )

◆ GetValue()

long Energy.Base.Counter.GetValue ( )

◆ Increment() [1/10]

long Energy.Base.Counter.Increment ( )

◆ Increment() [2/10]

static long Energy.Base.Counter.Increment ( ref long  value)
static

◆ Increment() [3/10]

static ulong Energy.Base.Counter.Increment ( ref ulong  value)
static

◆ Increment() [4/10]

static int Energy.Base.Counter.Increment ( ref int  value)
static

◆ Increment() [5/10]

static uint Energy.Base.Counter.Increment ( ref uint  value)
static

◆ Increment() [6/10]

static void Energy.Base.Counter.Increment ( ref byte  value)
static

◆ Increment() [7/10]

static void Energy.Base.Counter.Increment ( ref sbyte  value)
static

◆ Increment() [8/10]

static float Energy.Base.Counter.Increment ( ref float  value)
static

◆ Increment() [9/10]

static double Energy.Base.Counter.Increment ( ref double  value)
static

◆ Increment() [10/10]

static decimal Energy.Base.Counter.Increment ( ref decimal  value)
static

◆ Reset() [1/2]

void Energy.Base.Counter.Reset ( long  value)

Reset counter with specified value.

This is a copy of Reset() to avoid locking object twice.

◆ Reset() [2/2]

void Energy.Base.Counter.Reset ( )

Reset counter with initial (Minimum) value.

This is a copy of Reset(T value) to avoid locking object twice.

◆ SetAbsolute()

void Energy.Base.Counter.SetAbsolute ( ulong  value)

◆ SetMaximum()

void Energy.Base.Counter.SetMaximum ( long  value)

◆ SetMinimum()

void Energy.Base.Counter.SetMinimum ( long  value)

◆ SetOverflow()

void Energy.Base.Counter.SetOverflow ( bool  value)

◆ SetValue()

void Energy.Base.Counter.SetValue ( long  value)

◆ ToString()

override string Energy.Base.Counter.ToString ( )

Property Documentation

◆ Absolute

ulong Energy.Base.Counter.Absolute
getset

Value

◆ Maximum

long Energy.Base.Counter.Maximum
getset

Maximum

◆ Minimum

long Energy.Base.Counter.Minimum
getset

Minimum

◆ Overflow

bool Energy.Base.Counter.Overflow
getset

Overflow

◆ Value

long Energy.Base.Counter.Value
getset

Value


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