Arena
1.0
A content management system
|
A counter. More...
Public Member Functions | |
def | __init__ |
Constructor. | |
def | init |
Initializer. | |
def | increment |
Increment the counter by the specified amount. More... | |
def | decrement |
Decrement the counter by the specified amount. More... | |
def | zero |
Zero the counter value. More... | |
def | toString |
Return a string representation of the counter. More... | |
Public Member Functions inherited from Library.Memory.StringTrees.AStringLeaf | |
def | __init__ |
Constructor. | |
def | toString |
Return a string representation of the node. More... | |
def | name |
Retrieve the name of the node. More... | |
Public Member Functions inherited from Library.Memory.BinaryTrees.ABinaryLeaf | |
def | __init__ |
Constructor. | |
def | init |
Initializer. | |
def | writeTo |
Writes the node and its associated subtrees to the stream. More... | |
def | readFrom |
Read an individual node from the specified stream. More... | |
def | toString |
Construct a string representation of the node. More... | |
def | key |
Retrieve the key used to sort the node. More... | |
Public Member Functions inherited from Library.Base.Classwork.AnObject | |
def | init |
Initialize a new object instance. More... | |
def | __init__ |
Construct and initialize a new instance of AnObject. More... | |
def | __del__ |
Destroy the object instance. More... | |
def | displayName |
Construct a "pretty" display name for the class instance, based on the name of its class. More... | |
def | implements |
Determine whether the class instance is related to the specified class. More... | |
def | toString |
Return a string representation of the class, suitable for output to a console or text-based device. More... | |
def | __str__ |
Return a string representation of the class. More... | |
def | classname |
Return the name of the class from which the instance was created. More... | |
def | name |
Return the name of the class. More... | |
Public Member Functions inherited from Library.String.Utilities.IsPrintable | |
def | toString |
Return a string representation of the class conveniently. More... | |
def | __str__ |
Return a string representation of the class. More... | |
def | printTo |
Print a string representation of the class to the specified stream. More... | |
Public Member Functions inherited from Library.IO.Streams.IsStreamable | |
def | writeTo |
Write class instance data to the specified stream. More... | |
def | readFrom |
Read class instance data from the specified stream. More... | |
A counter.
def Library.IO.Logging.Counters.ACounter.decrement | ( | Self, | |
amount = 1 |
|||
) |
Decrement the counter by the specified amount.
This routine will not allow the counter value to be negative.
def Library.IO.Logging.Counters.ACounter.increment | ( | Self, | |
amount = 1 |
|||
) |
Increment the counter by the specified amount.
If the counter limit is greater than zero (0) and the new counter value exceeds that limit, then an exception is raised.
def Library.IO.Logging.Counters.ACounter.toString | ( | Self | ) |
Return a string representation of the counter.
The representation is formatted according to the specification provided in #cStringRepresentation.
def Library.IO.Logging.Counters.ACounter.zero | ( | Self | ) |
Zero the counter value.