Singleton Class Reference

Singleton class conforms to singleton design pattern. More...

Inheritance diagram for Singleton:

EmploymentCenter GlobalVars GraphManager _HashTable KeyStone Records

List of all members.

Public Member Functions

def __new__
 sets class attributs _default_instance and _instance_map if not set.
def __init__
 should not be called by subclasses
def __new_instance__
 to be initialize class instead of __init__
def __del_instance__
 delete the instance 'name'
def __clean__


Detailed Description

Singleton class conforms to singleton design pattern.

Definition at line 33 of file Singleton.py.


Member Function Documentation

def __new__ (   cls,
  p 
)

sets class attributs _default_instance and _instance_map if not set.

and checks that no subclass overloads the __init__ method.

Definition at line 42 of file Singleton.py.

def __init__ (   self,
  p 
)

should not be called by subclasses

Definition at line 77 of file Singleton.py.

def __new_instance__ (   self,
  name 
)

to be initialize class instead of __init__

Reimplemented in EmploymentCenter, GraphManager, _HashTable, and KeyStone.

Definition at line 98 of file Singleton.py.

def __del_instance__ (   cls,
  name 
)

delete the instance 'name'

Definition at line 106 of file Singleton.py.

def __clean__ (   self  ) 

Reimplemented in GraphManager, and _HashTable.

Definition at line 110 of file Singleton.py.


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

Generated on Sun Aug 10 09:11:12 2008 for SLIMpy by  doxygen 1.5.6