WARPXM v1.10.0
|
Represents some Xdmf block. More...
Represents some Xdmf block.
Public Member Functions | |
def | __init__ (self, name, attrs=None, data=None, children=None) |
def | append (self, b) |
Add a child block. | |
def | extend (self, bs) |
Add a list of blocks. | |
def | get_data_text (self, indent='') |
def | generate (self, parent=None) |
def | ref (self, root) |
Gets a reference XPath from root to self. | |
def | __remove_special_chars__ (self, text) |
def | __str__ (self) |
pretty output | |
def | __repr__ (self) |
pretty output | |
Public Attributes | |
name | |
attrs | |
data | |
children | |
Protected Member Functions | |
def | _dfs (self, pred, idx=0) |
depth first search from self, returns path to first child matching pred. | |
def warpy.xdmf.generator.block.__init__ | ( | self, | |
name, | |||
attrs = None , |
|||
data = None , |
|||
children = None |
|||
) |
def warpy.xdmf.generator.block.__remove_special_chars__ | ( | self, | |
text | |||
) |
def warpy.xdmf.generator.block.__repr__ | ( | self | ) |
pretty output
Reimplemented in warpy.xdmf.generator.xdmf.
def warpy.xdmf.generator.block.__str__ | ( | self | ) |
pretty output
|
protected |
depth first search from self, returns path to first child matching pred.
pred | unary predicate |
idx |
def warpy.xdmf.generator.block.append | ( | self, | |
b | |||
) |
Add a child block.
def warpy.xdmf.generator.block.extend | ( | self, | |
bs | |||
) |
Add a list of blocks.
def warpy.xdmf.generator.block.generate | ( | self, | |
parent = None |
|||
) |
def warpy.xdmf.generator.block.get_data_text | ( | self, | |
indent = '' |
|||
) |
def warpy.xdmf.generator.block.ref | ( | self, | |
root | |||
) |
Gets a reference XPath from root to self.
warpy.xdmf.generator.block.attrs |
warpy.xdmf.generator.block.children |
warpy.xdmf.generator.block.data |
warpy.xdmf.generator.block.name |