summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJosh Blum2012-11-02 01:24:50 -0700
committerJosh Blum2012-11-02 01:24:50 -0700
commit22ea214ab3b0f397bf57f3a14c58e555028284bc (patch)
tree7ecc6a03b8f6cb27a94a27c29d90d9be245ee35f /python
parentb22c63e756d50723188fdd25983868ea1f67bd05 (diff)
downloadsandhi-22ea214ab3b0f397bf57f3a14c58e555028284bc.tar.gz
sandhi-22ea214ab3b0f397bf57f3a14c58e555028284bc.tar.bz2
sandhi-22ea214ab3b0f397bf57f3a14c58e555028284bc.zip
mostly python tweaks, mostly happy QA
Diffstat (limited to 'python')
-rw-r--r--python/gras/GRAS_HierBlock.i32
1 files changed, 28 insertions, 4 deletions
diff --git a/python/gras/GRAS_HierBlock.i b/python/gras/GRAS_HierBlock.i
index 413ee2a..5a26203 100644
--- a/python/gras/GRAS_HierBlock.i
+++ b/python/gras/GRAS_HierBlock.i
@@ -85,6 +85,32 @@ struct TopBlockPython : TopBlock
return ret;
}
};
+
+struct HierBlockPython : HierBlock
+{
+ HierBlockPython(void)
+ {
+ //NOP
+ }
+
+ HierBlockPython(const std::string &name):
+ HierBlock(name)
+ {
+ //NOP
+ }
+
+ HierBlockPython(
+ const std::string &name,
+ const IOSignature &input_signature,
+ const IOSignature &output_signature
+ ):
+ HierBlock(name)
+ {
+ this->set_input_signature(input_signature);
+ this->set_output_signature(output_signature);
+ }
+};
+
}
%}
@@ -122,16 +148,14 @@ class TopBlock(TopBlockPython):
def disconnect(self, *args):
return internal_connect__(TopBlockPython.disconnect, self, *args)
-HierBlockPython = HierBlock
-
class HierBlock(HierBlockPython):
def __init__(self, *args, **kwargs):
HierBlockPython.__init__(self, *args, **kwargs)
def connect(self, *args):
- return internal_connect__(HierBlock.connect, self, *args)
+ return internal_connect__(HierBlockPython.connect, self, *args)
def disconnect(self, *args):
- return internal_connect__(HierBlock.disconnect, self, *args)
+ return internal_connect__(HierBlockPython.disconnect, self, *args)
%}