Public Member Functions | |
def | __init__ |
Constructor of Block. | |
def | append |
Appends new child to this element. | |
def | to_string |
Converts this element to string representation. | |
def | print_tree |
Prints element representation. | |
Public Attributes | |
name | |
Element name. | |
parent | |
Element's parent. | |
value | |
Value of this element. | |
size | |
Size of the value. | |
pos | |
Position. | |
elementType | |
Element type identifier. | |
children | |
Element children list. |
Element that can contain other elements.
def Shark_libs::export_structures::Block::__init__ | ( | self, | ||
name, | ||||
parent, | ||||
value, | ||||
size, | ||||
pos | ||||
) |
def Shark_libs::export_structures::Block::append | ( | self, | ||
child | ||||
) |
Appends new child to this element.
child | Node to be appended as new child. |
def Shark_libs::export_structures::Block::print_tree | ( | self, | ||
level | ||||
) |
Prints element representation.
self | The object pointer. | |
level | Tree node depth. |
Reimplemented from Shark_libs::export_structures::Element.
def Shark_libs::export_structures::Block::to_string | ( | self | ) |
Converts this element to string representation.
self | The object pointer. |
Element children list.
Element type identifier.
Size of the value.
Value of this element.