Package imagizer :: Module imagecache :: Class ImageCache
[hide private]
[frames] | no frames]

Class ImageCache

source code

object --+    
         |    
      dict --+
             |
            ImageCache

this class is a Borg : always returns the same values regardless to the instance of the object it is used as data storage for bitmaps ... with a limit of max_len

Instance Methods [hide private]
new empty dictionary

__init__(self, maxSize=1000000)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__setitem__(x, i, y)
x[i]=y
source code
 
__getitem__(x, y)
x[y]
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  __shared_state = {'imageDict': {}, 'maxSize': 500000000, 'orde...
  __data_initialized = True
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, maxSize=1000000)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__setitem__(x, i, y)
(Index assignment operator)

source code 

x[i]=y

Overrides: dict.__setitem__

__getitem__(x, y)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__

Class Variable Details [hide private]

__shared_state

Value:
{'imageDict': {}, 'maxSize': 500000000, 'ordered': [], 'size': 0}