Trees | Index | Help |
---|
Package tables :: Module Leaf :: Class Leaf |
|
object
--+
|
Leaf
Table
A class to place common functionality of all Leaf objects. A Leaf object is all the nodes that can hang directly from a Group, but that are not groups nor attributes. Right now this set is composed by Table and Array objects. Leaf objects (like Table or Array) will inherit the next methods and variables using the mix-in technique. Methods: close() flush() rename(newname) remove() getAttr(attrname) setAttr(attrname, attrvalue) delAttr(attrname) Instance variables: name -- the leaf node name hdf5name -- the HDF5 leaf node name objectID -- the HDF5 object ID of the Leaf node title -- the leaf title (actually a property) shape -- the leaf shape byteorder -- the byteorder of the leaf filters -- information for active filters attrs -- The associated AttributeSet instance _v_parent -- the parent Group instance _v_rootgroup -- always point to the root group object _v_file -- the associated File object _v_depth -- the depth level in tree for this leaf
Method Summary | |
---|---|
Useful for dealing with Leaf objects as sequences | |
The string reprsentation choosed for this object is its pathname in the HDF5 object tree. | |
Flush the buffers and close this object on tree | |
Copy this leaf to other location where -- the group where the leaf will be copied. | |
Delete a leaf attribute as a string | |
Save whatever remaining data in buffer | |
Get a leaf attribute as a string | |
Remove a leaf | |
Rename a leaf | |
Set a leaf attribute as a string | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
attrs : Attrs of this object | |
title : Title of this object |
Method Details |
---|
__len__(self)
Useful for dealing with Leaf objects as sequences
|
__str__(self)
The string reprsentation choosed for this object is its pathname in
the HDF5 object tree.
|
close(self, flush=1)Flush the buffers and close this object on tree |
copy(self, where, name, title=None, filters=None, copyuserattrs=1, start=0, stop=None, step=1, overwrite=0)Copy this leaf to other location where -- the group where the leaf will be copied. name -- the name of the new leaf. title -- the new title for destination. If None, the original title is kept. filters -- An instance of the Filters class. A None value means that the source properties are copied as is. copyuserattrs -- Whether copy the user attributes of the source leaf to the destination or not. The default is copy them. start -- the row to start copying. stop -- the row to cease copying. None means last row. step -- the increment of the row number during the copy overwrite -- whether the destination should be overwritten or not. |
delAttr(self, attrname)Delete a leaf attribute as a string |
flush(self)Save whatever remaining data in buffer |
getAttr(self, attrname)Get a leaf attribute as a string |
remove(self)Remove a leaf |
rename(self, newname)Rename a leaf |
setAttr(self, attrname, attrvalue)Set a leaf attribute as a string |
Property Details |
---|
attrsAttrs of this object |
titleTitle of this object |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Apr 21 13:11:50 2005 | http://epydoc.sf.net |