Package dap :: Module dtypes :: Class StructureType
[hide private]
[frames] | no frames]

Class StructureType

source code

        object --+        
                 |        
              dict --+    
                     |    
util.ordereddict.odict --+
                         |
                        StructureType
Known Subclasses:
DatasetType, SequenceType

Structure contructor.

A structure is a dict-like object, which can hold other DAP variables. Structures have a 'data' attribute that combines the data from the stored variables when read, and propagates the data to the variables when set.

This behaviour can be bypassed by setting the '_data' attribute; in this case, no data is propagated, and further reads do not combine the data from the stored variables.

Instance Methods [hide private]
  __init__(self, name='', attributes=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __iter__(self)
iter(x)
  walk(self)
iter(x)
  __getattr__(self, attr)
  __setitem__(self, key, item)
x[i]=y
  _get_data(self)
  _set_data(self, data)
  _get_id(self)
  _set_id(self, parent=None)
  _get_filters(self)
  _set_filters(self, f)
  __copy__(self)
  __deepcopy__(self, memo=None, _nil=[])

Inherited from util.ordereddict.odict: __contains__, __delitem__, __getitem__, __len__, __repr__, __str__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from dict: __cmp__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __le__, __lt__, __ne__, __new__

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__


Properties [hide private]
  data
  id
  filters

Inherited from object: __class__


Method Details [hide private]

__init__(self, name='', attributes=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: util.ordereddict.odict.__init__

__iter__(self)

source code 
iter(x)
Overrides: util.ordereddict.odict.__iter__

walk(self)

source code 
iter(x)

__getattr__(self, attr)
(Qualification operator)

source code 
None

__setitem__(self, key, item)
(Index assignment operator)

source code 
x[i]=y
Overrides: util.ordereddict.odict.__setitem__

_get_data(self)

source code 
None

_set_data(self, data)

source code 
None

_get_id(self)

source code 
None

_set_id(self, parent=None)

source code 
None

_get_filters(self)

source code 
None

_set_filters(self, f)

source code 
None

__copy__(self)

source code 
None
Overrides: util.ordereddict.odict.__copy__

__deepcopy__(self, memo=None, _nil=[])

source code 
None
Overrides: util.ordereddict.odict.__deepcopy__

Property Details [hide private]

data

None
Get Method:
dap.dtypes.StructureType._get_data(self)
Set Method:
dap.dtypes.StructureType._set_data(self, data)
Delete Method:
None                                                                  

id

None
Get Method:
dap.dtypes.StructureType._get_id(self)
Set Method:
None                                                                  
Delete Method:
None                                                                  

filters

None
Get Method:
dap.dtypes.StructureType._get_filters(self)
Set Method:
dap.dtypes.StructureType._set_filters(self, f)
Delete Method:
None