LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Static Private Attributes | List of all members
lsst.daf.persistence.readProxy.ReadProxy Class Reference
Inheritance diagram for lsst.daf.persistence.readProxy.ReadProxy:

Public Member Functions

def __init__
 
def __getattribute__
 
def __setattr__
 
def __delattr__
 
def __nonzero__
 
def __getitem__
 
def __setitem__
 
def __delitem__
 
def __getslice__
 
def __setslice__
 
def __delslice__
 
def __contains__
 
def __rdivmod__
 
def __pow__
 
def __ipow__
 
def __rpow__
 

Static Private Attributes

tuple __slots__ = ('__cache__', '__callback__', '__subject__')
 

Detailed Description

ReadProxy provides a lazy-loading object that is initialized by a
callback function set in ReadProxy's constructor.  Adapted from
peak.util.proxies.LazyProxy, which was written by Phillip J. Eby
(peak@eby-sarna.com).

Definition at line 29 of file readProxy.py.

Constructor & Destructor Documentation

def lsst.daf.persistence.readProxy.ReadProxy.__init__ (   self,
  func 
)

Definition at line 37 of file readProxy.py.

37 
38  def __init__(self, func):
39  set_callback(self, func)

Member Function Documentation

def lsst.daf.persistence.readProxy.ReadProxy.__contains__ (   self,
  ob 
)

Definition at line 73 of file readProxy.py.

73 
74  def __contains__(self, ob):
75  return ob in self.__subject__
def lsst.daf.persistence.readProxy.ReadProxy.__delattr__ (   self,
  attr 
)

Definition at line 49 of file readProxy.py.

49 
50  def __delattr__(self, attr):
51  delattr(self.__subject__, attr)
def lsst.daf.persistence.readProxy.ReadProxy.__delitem__ (   self,
  arg 
)

Definition at line 61 of file readProxy.py.

61 
62  def __delitem__(self, arg):
63  del self.__subject__[arg]
def lsst.daf.persistence.readProxy.ReadProxy.__delslice__ (   self,
  i,
  j 
)

Definition at line 70 of file readProxy.py.

70 
71  def __delslice__(self, i, j):
72  del self.__subject__[i:j]
def lsst.daf.persistence.readProxy.ReadProxy.__getattribute__ (   self,
  attr,
  oga = object.__getattribute__ 
)

Definition at line 40 of file readProxy.py.

40 
41  def __getattribute__(self, attr, oga=object.__getattribute__):
42  subject = oga(self, '__subject__')
43  if attr == '__subject__':
44  return subject
45  return getattr(subject, attr)
def lsst.daf.persistence.readProxy.ReadProxy.__getitem__ (   self,
  arg 
)

Definition at line 55 of file readProxy.py.

55 
56  def __getitem__(self, arg):
57  return self.__subject__[arg]
def lsst.daf.persistence.readProxy.ReadProxy.__getslice__ (   self,
  i,
  j 
)

Definition at line 64 of file readProxy.py.

64 
65  def __getslice__(self, i, j):
66  return self.__subject__[i:j]
def lsst.daf.persistence.readProxy.ReadProxy.__ipow__ (   self,
  ob 
)

Definition at line 120 of file readProxy.py.

121  def __ipow__(self,ob):
122  self.__subject__ **= ob
123  return self
def lsst.daf.persistence.readProxy.ReadProxy.__nonzero__ (   self)

Definition at line 52 of file readProxy.py.

52 
53  def __nonzero__(self):
54  return bool(self.__subject__)
def lsst.daf.persistence.readProxy.ReadProxy.__pow__ (   self,
  args 
)

Definition at line 117 of file readProxy.py.

118  def __pow__(self, *args):
119  return pow(self.__subject__, *args)
def lsst.daf.persistence.readProxy.ReadProxy.__rdivmod__ (   self,
  ob 
)

Definition at line 114 of file readProxy.py.

115  def __rdivmod__(self, ob):
116  return divmod(ob, self.__subject__)
def lsst.daf.persistence.readProxy.ReadProxy.__rpow__ (   self,
  ob 
)

Definition at line 124 of file readProxy.py.

125  def __rpow__(self,ob):
126  return pow(ob, self.__subject__)
def lsst.daf.persistence.readProxy.ReadProxy.__setattr__ (   self,
  attr,
  val 
)

Definition at line 46 of file readProxy.py.

46 
47  def __setattr__(self, attr, val):
48  setattr(self.__subject__, attr, val)
def lsst.daf.persistence.readProxy.ReadProxy.__setitem__ (   self,
  arg,
  val 
)

Definition at line 58 of file readProxy.py.

58 
59  def __setitem__(self, arg, val):
60  self.__subject__[arg] = val
def lsst.daf.persistence.readProxy.ReadProxy.__setslice__ (   self,
  i,
  j,
  val 
)

Definition at line 67 of file readProxy.py.

67 
68  def __setslice__(self, i, j, val):
69  self.__subject__[i:j] = val

Member Data Documentation

tuple lsst.daf.persistence.readProxy.ReadProxy.__slots__ = ('__cache__', '__callback__', '__subject__')
staticprivate

Definition at line 35 of file readProxy.py.


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