Package SCons :: Module Memoize :: Class CountValue
[hide private]
[frames] | no frames]

Class CountValue

source code

object --+    
   Counter --+

A counter class for simple, atomic memoized values.

A CountValue object should be instantiated in a decorator for each of the class's methods that memoizes its return value by simply storing the return value in its _memo dictionary.

Instance Methods [hide private]
count(self, *args, **kw)
Counts whether the memoized value has already been set (a hit) or not (a miss).
source code

Inherited from Counter: __cmp__, __init__, display, key

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__