HWRF  trunk@4391
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pom.util.counter Class Reference

A simple integer counter class. More...

Detailed Description

A simple integer counter class.

Definition at line 232 of file util.py.

Public Member Functions

def set (self, x)
 Sets the counter value. More...
 
def up (self)
 Increments the counter by 1. More...
 
def down (self)
 Decrements the counter by 1. More...
 

Public Attributes

 value
 

Static Public Attributes

int value = 0
 The current counter value. More...
 

Member Function Documentation

def pom.util.counter.down (   self)

Decrements the counter by 1.

Definition at line 245 of file util.py.

def pom.util.counter.set (   self,
  x 
)

Sets the counter value.

Parameters
xthe new counter value

Definition at line 236 of file util.py.

def pom.util.counter.up (   self)

Increments the counter by 1.

Definition at line 242 of file util.py.

Member Data Documentation

pom.util.counter.value = 0
static

The current counter value.

Definition at line 235 of file util.py.

Referenced by pom.util.counter.down(), pom.util.counter.set(), and pom.util.counter.up().


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