gnuradio::gr::hier_block::hier_block Class Reference

Simple concrete class for building hierarchical blocks. More...

Inheritance diagram for gnuradio::gr::hier_block::hier_block:

Inheritance graph
[legend]
Collaboration diagram for gnuradio::gr::hier_block::hier_block:

Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def input_signature
def output_signature
def resolve_input_port
def resolve_output_port

Public Attributes

 head
 tail


Detailed Description

Simple concrete class for building hierarchical blocks.

This class assumes that there is at most a single block at the head of the chain and a single block at the end of the chain. Either head or tail may be None indicating a sink or source respectively.

If you needs something more elaborate than this, derive a new class from hier_block_base.


Member Function Documentation

def gnuradio::gr::hier_block::hier_block::__init__ (   self,
  fg,
  head_block,
  tail_block 
)

Parameters:
fg,: The flow graph that contains this hierarchical block. fg: flow_graph
head_block,: the first block in the signal processing chain. head_block: None or subclass of gr.block or gr.hier_block_base
tail_block,: the last block in the signal processing chain. tail_block: None or subclass of gr.block or gr.hier_block_base

def gnuradio::gr::hier_block::hier_block::input_signature (   self  ) 

Returns:
input signature of hierarchical block. gr.io_signature

Reimplemented from gnuradio::gr::hier_block::hier_block_base.

def gnuradio::gr::hier_block::hier_block::output_signature (   self  ) 

Returns:
output signature of hierarchical block. gr.io_signature

Reimplemented from gnuradio::gr::hier_block::hier_block_base.

def gnuradio::gr::hier_block::hier_block::resolve_input_port (   self,
  port_number 
)

Parameters:
port_number,: which input port number to resolve to an endpoint. port_number: int
Returns:
: sequence of endpoints : sequence of endpoint
Note that an input port can resolve to more than one endpoint.

Reimplemented from gnuradio::gr::hier_block::hier_block_base.

def gnuradio::gr::hier_block::hier_block::resolve_output_port (   self,
  port_number 
)

Parameters:
port_number,: which output port number to resolve to an endpoint. port_number: int
Returns:
: endpoint : endpoint
Output ports resolve to a single endpoint.

Reimplemented from gnuradio::gr::hier_block::hier_block_base.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Thu Mar 5 09:03:57 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8