# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_fosphor_swig')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_fosphor_swig')
    _fosphor_swig = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_fosphor_swig', [dirname(__file__)])
        except ImportError:
            import _fosphor_swig
            return _fosphor_swig
        try:
            _mod = imp.load_module('_fosphor_swig', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _fosphor_swig = swig_import_helper()
    del swig_import_helper
else:
    import _fosphor_swig
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        object.__setattr__(self, name, value)
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr



def high_res_timer_now():
    """high_res_timer_now() -> gr::high_res_timer_type"""
    return _fosphor_swig.high_res_timer_now()

def high_res_timer_now_perfmon():
    """high_res_timer_now_perfmon() -> gr::high_res_timer_type"""
    return _fosphor_swig.high_res_timer_now_perfmon()

def high_res_timer_tps():
    """high_res_timer_tps() -> gr::high_res_timer_type"""
    return _fosphor_swig.high_res_timer_tps()

def high_res_timer_epoch():
    """high_res_timer_epoch() -> gr::high_res_timer_type"""
    return _fosphor_swig.high_res_timer_epoch()
class base_sink_c(object):
    """Base fosphor sink API interface."""

    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    DB_PER_DIV_UP = _fosphor_swig.base_sink_c_DB_PER_DIV_UP
    DB_PER_DIV_DOWN = _fosphor_swig.base_sink_c_DB_PER_DIV_DOWN
    REF_UP = _fosphor_swig.base_sink_c_REF_UP
    REF_DOWN = _fosphor_swig.base_sink_c_REF_DOWN
    ZOOM_TOGGLE = _fosphor_swig.base_sink_c_ZOOM_TOGGLE
    ZOOM_WIDTH_UP = _fosphor_swig.base_sink_c_ZOOM_WIDTH_UP
    ZOOM_WIDTH_DOWN = _fosphor_swig.base_sink_c_ZOOM_WIDTH_DOWN
    ZOOM_CENTER_UP = _fosphor_swig.base_sink_c_ZOOM_CENTER_UP
    ZOOM_CENTER_DOWN = _fosphor_swig.base_sink_c_ZOOM_CENTER_DOWN
    RATIO_UP = _fosphor_swig.base_sink_c_RATIO_UP
    RATIO_DOWN = _fosphor_swig.base_sink_c_RATIO_DOWN
    FREEZE_TOGGLE = _fosphor_swig.base_sink_c_FREEZE_TOGGLE

    def execute_ui_action(self, action):
        """
        execute_ui_action(base_sink_c self, enum gr::fosphor::base_sink_c::ui_action_t action)



        Params: (action)
        """
        return _fosphor_swig.base_sink_c_execute_ui_action(self, action)


    def set_frequency_range(self, center, span):
        """
        set_frequency_range(base_sink_c self, double const center, double const span)



        Params: (center, span)
        """
        return _fosphor_swig.base_sink_c_set_frequency_range(self, center, span)


    def set_frequency_center(self, center):
        """
        set_frequency_center(base_sink_c self, double const center)



        Params: (center)
        """
        return _fosphor_swig.base_sink_c_set_frequency_center(self, center)


    def set_frequency_span(self, span):
        """
        set_frequency_span(base_sink_c self, double const span)



        Params: (span)
        """
        return _fosphor_swig.base_sink_c_set_frequency_span(self, span)


    def set_fft_window(self, win):
        """
        set_fft_window(base_sink_c self, gr::fft::window::win_type const win)



        Params: (win)
        """
        return _fosphor_swig.base_sink_c_set_fft_window(self, win)

    __swig_destroy__ = _fosphor_swig.delete_base_sink_c
    __del__ = lambda self: None
base_sink_c_swigregister = _fosphor_swig.base_sink_c_swigregister
base_sink_c_swigregister(base_sink_c)

class qt_sink_c(base_sink_c):
    """Qt version of fosphor sink."""

    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr

    def make(parent=None):
        """
        make(QWidget * parent=None) -> qt_sink_c_sptr

        Return a shared_ptr to a new instance of fosphor::qt_sink_c.

        To avoid accidental use of raw pointers, fosphor::qt_sink_c's constructor is in a private implementation class. fosphor::qt_sink_c::make is the public interface for creating new instances.

        Params: (parent)
        """
        return _fosphor_swig.qt_sink_c_make(parent)

    make = staticmethod(make)

    def exec_(self):
        """
        exec_(qt_sink_c self)



        Params: (NONE)
        """
        return _fosphor_swig.qt_sink_c_exec_(self)


    def qwidget(self):
        """
        qwidget(qt_sink_c self) -> QWidget *



        Params: (NONE)
        """
        return _fosphor_swig.qt_sink_c_qwidget(self)


    def pyqwidget(self):
        """
        pyqwidget(qt_sink_c self) -> PyObject *



        Params: (NONE)
        """
        return _fosphor_swig.qt_sink_c_pyqwidget(self)

    d_qApplication = _swig_property(_fosphor_swig.qt_sink_c_d_qApplication_get, _fosphor_swig.qt_sink_c_d_qApplication_set)
    __swig_destroy__ = _fosphor_swig.delete_qt_sink_c
    __del__ = lambda self: None
qt_sink_c_swigregister = _fosphor_swig.qt_sink_c_swigregister
qt_sink_c_swigregister(qt_sink_c)

def qt_sink_c_make(parent=None):
    """
    qt_sink_c_make(QWidget * parent=None) -> qt_sink_c_sptr

    Return a shared_ptr to a new instance of fosphor::qt_sink_c.

    To avoid accidental use of raw pointers, fosphor::qt_sink_c's constructor is in a private implementation class. fosphor::qt_sink_c::make is the public interface for creating new instances.

    Params: (parent)
    """
    return _fosphor_swig.qt_sink_c_make(parent)

class qt_sink_c_sptr(object):
    """Proxy of C++ boost::shared_ptr<(gr::fosphor::qt_sink_c)> class."""

    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self, *args):
        """
        __init__(boost::shared_ptr<(gr::fosphor::qt_sink_c)> self) -> qt_sink_c_sptr
        __init__(boost::shared_ptr<(gr::fosphor::qt_sink_c)> self, qt_sink_c p) -> qt_sink_c_sptr
        """
        this = _fosphor_swig.new_qt_sink_c_sptr(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def __deref__(self):
        """__deref__(qt_sink_c_sptr self) -> qt_sink_c"""
        return _fosphor_swig.qt_sink_c_sptr___deref__(self)

    __swig_destroy__ = _fosphor_swig.delete_qt_sink_c_sptr
    __del__ = lambda self: None

    def make(self, parent=None):
        """
        make(qt_sink_c_sptr self, QWidget * parent=None) -> qt_sink_c_sptr

        Return a shared_ptr to a new instance of fosphor::qt_sink_c.

        To avoid accidental use of raw pointers, fosphor::qt_sink_c's constructor is in a private implementation class. fosphor::qt_sink_c::make is the public interface for creating new instances.

        Params: (parent)
        """
        return _fosphor_swig.qt_sink_c_sptr_make(self, parent)


    def exec_(self):
        """
        exec_(qt_sink_c_sptr self)



        Params: (NONE)
        """
        return _fosphor_swig.qt_sink_c_sptr_exec_(self)


    def qwidget(self):
        """
        qwidget(qt_sink_c_sptr self) -> QWidget *



        Params: (NONE)
        """
        return _fosphor_swig.qt_sink_c_sptr_qwidget(self)


    def pyqwidget(self):
        """
        pyqwidget(qt_sink_c_sptr self) -> PyObject *



        Params: (NONE)
        """
        return _fosphor_swig.qt_sink_c_sptr_pyqwidget(self)

    d_qApplication = _swig_property(_fosphor_swig.qt_sink_c_sptr_d_qApplication_get, _fosphor_swig.qt_sink_c_sptr_d_qApplication_set)

    def execute_ui_action(self, action):
        """
        execute_ui_action(qt_sink_c_sptr self, enum gr::fosphor::base_sink_c::ui_action_t action)



        Params: (action)
        """
        return _fosphor_swig.qt_sink_c_sptr_execute_ui_action(self, action)


    def set_frequency_range(self, center, span):
        """
        set_frequency_range(qt_sink_c_sptr self, double const center, double const span)



        Params: (center, span)
        """
        return _fosphor_swig.qt_sink_c_sptr_set_frequency_range(self, center, span)


    def set_frequency_center(self, center):
        """
        set_frequency_center(qt_sink_c_sptr self, double const center)



        Params: (center)
        """
        return _fosphor_swig.qt_sink_c_sptr_set_frequency_center(self, center)


    def set_frequency_span(self, span):
        """
        set_frequency_span(qt_sink_c_sptr self, double const span)



        Params: (span)
        """
        return _fosphor_swig.qt_sink_c_sptr_set_frequency_span(self, span)


    def set_fft_window(self, win):
        """
        set_fft_window(qt_sink_c_sptr self, gr::fft::window::win_type const win)



        Params: (win)
        """
        return _fosphor_swig.qt_sink_c_sptr_set_fft_window(self, win)


    def history(self):
        """history(qt_sink_c_sptr self) -> unsigned int"""
        return _fosphor_swig.qt_sink_c_sptr_history(self)


    def declare_sample_delay(self, *args):
        """
        declare_sample_delay(qt_sink_c_sptr self, int which, int delay)
        declare_sample_delay(qt_sink_c_sptr self, unsigned int delay)
        """
        return _fosphor_swig.qt_sink_c_sptr_declare_sample_delay(self, *args)


    def sample_delay(self, which):
        """sample_delay(qt_sink_c_sptr self, int which) -> unsigned int"""
        return _fosphor_swig.qt_sink_c_sptr_sample_delay(self, which)


    def output_multiple(self):
        """output_multiple(qt_sink_c_sptr self) -> int"""
        return _fosphor_swig.qt_sink_c_sptr_output_multiple(self)


    def relative_rate(self):
        """relative_rate(qt_sink_c_sptr self) -> double"""
        return _fosphor_swig.qt_sink_c_sptr_relative_rate(self)


    def start(self):
        """start(qt_sink_c_sptr self) -> bool"""
        return _fosphor_swig.qt_sink_c_sptr_start(self)


    def stop(self):
        """stop(qt_sink_c_sptr self) -> bool"""
        return _fosphor_swig.qt_sink_c_sptr_stop(self)


    def nitems_read(self, which_input):
        """nitems_read(qt_sink_c_sptr self, unsigned int which_input) -> uint64_t"""
        return _fosphor_swig.qt_sink_c_sptr_nitems_read(self, which_input)


    def nitems_written(self, which_output):
        """nitems_written(qt_sink_c_sptr self, unsigned int which_output) -> uint64_t"""
        return _fosphor_swig.qt_sink_c_sptr_nitems_written(self, which_output)


    def max_noutput_items(self):
        """max_noutput_items(qt_sink_c_sptr self) -> int"""
        return _fosphor_swig.qt_sink_c_sptr_max_noutput_items(self)


    def set_max_noutput_items(self, m):
        """set_max_noutput_items(qt_sink_c_sptr self, int m)"""
        return _fosphor_swig.qt_sink_c_sptr_set_max_noutput_items(self, m)


    def unset_max_noutput_items(self):
        """unset_max_noutput_items(qt_sink_c_sptr self)"""
        return _fosphor_swig.qt_sink_c_sptr_unset_max_noutput_items(self)


    def is_set_max_noutput_items(self):
        """is_set_max_noutput_items(qt_sink_c_sptr self) -> bool"""
        return _fosphor_swig.qt_sink_c_sptr_is_set_max_noutput_items(self)


    def set_min_noutput_items(self, m):
        """set_min_noutput_items(qt_sink_c_sptr self, int m)"""
        return _fosphor_swig.qt_sink_c_sptr_set_min_noutput_items(self, m)


    def min_noutput_items(self):
        """min_noutput_items(qt_sink_c_sptr self) -> int"""
        return _fosphor_swig.qt_sink_c_sptr_min_noutput_items(self)


    def max_output_buffer(self, i):
        """max_output_buffer(qt_sink_c_sptr self, int i) -> long"""
        return _fosphor_swig.qt_sink_c_sptr_max_output_buffer(self, i)


    def set_max_output_buffer(self, *args):
        """
        set_max_output_buffer(qt_sink_c_sptr self, long max_output_buffer)
        set_max_output_buffer(qt_sink_c_sptr self, int port, long max_output_buffer)
        """
        return _fosphor_swig.qt_sink_c_sptr_set_max_output_buffer(self, *args)


    def min_output_buffer(self, i):
        """min_output_buffer(qt_sink_c_sptr self, int i) -> long"""
        return _fosphor_swig.qt_sink_c_sptr_min_output_buffer(self, i)


    def set_min_output_buffer(self, *args):
        """
        set_min_output_buffer(qt_sink_c_sptr self, long min_output_buffer)
        set_min_output_buffer(qt_sink_c_sptr self, int port, long min_output_buffer)
        """
        return _fosphor_swig.qt_sink_c_sptr_set_min_output_buffer(self, *args)


    def pc_noutput_items(self):
        """pc_noutput_items(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_noutput_items(self)


    def pc_noutput_items_avg(self):
        """pc_noutput_items_avg(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_noutput_items_avg(self)


    def pc_noutput_items_var(self):
        """pc_noutput_items_var(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_noutput_items_var(self)


    def pc_nproduced(self):
        """pc_nproduced(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_nproduced(self)


    def pc_nproduced_avg(self):
        """pc_nproduced_avg(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_nproduced_avg(self)


    def pc_nproduced_var(self):
        """pc_nproduced_var(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_nproduced_var(self)


    def pc_input_buffers_full(self, *args):
        """
        pc_input_buffers_full(qt_sink_c_sptr self, int which) -> float
        pc_input_buffers_full(qt_sink_c_sptr self) -> pmt_vector_float
        """
        return _fosphor_swig.qt_sink_c_sptr_pc_input_buffers_full(self, *args)


    def pc_input_buffers_full_avg(self, *args):
        """
        pc_input_buffers_full_avg(qt_sink_c_sptr self, int which) -> float
        pc_input_buffers_full_avg(qt_sink_c_sptr self) -> pmt_vector_float
        """
        return _fosphor_swig.qt_sink_c_sptr_pc_input_buffers_full_avg(self, *args)


    def pc_input_buffers_full_var(self, *args):
        """
        pc_input_buffers_full_var(qt_sink_c_sptr self, int which) -> float
        pc_input_buffers_full_var(qt_sink_c_sptr self) -> pmt_vector_float
        """
        return _fosphor_swig.qt_sink_c_sptr_pc_input_buffers_full_var(self, *args)


    def pc_output_buffers_full(self, *args):
        """
        pc_output_buffers_full(qt_sink_c_sptr self, int which) -> float
        pc_output_buffers_full(qt_sink_c_sptr self) -> pmt_vector_float
        """
        return _fosphor_swig.qt_sink_c_sptr_pc_output_buffers_full(self, *args)


    def pc_output_buffers_full_avg(self, *args):
        """
        pc_output_buffers_full_avg(qt_sink_c_sptr self, int which) -> float
        pc_output_buffers_full_avg(qt_sink_c_sptr self) -> pmt_vector_float
        """
        return _fosphor_swig.qt_sink_c_sptr_pc_output_buffers_full_avg(self, *args)


    def pc_output_buffers_full_var(self, *args):
        """
        pc_output_buffers_full_var(qt_sink_c_sptr self, int which) -> float
        pc_output_buffers_full_var(qt_sink_c_sptr self) -> pmt_vector_float
        """
        return _fosphor_swig.qt_sink_c_sptr_pc_output_buffers_full_var(self, *args)


    def pc_work_time(self):
        """pc_work_time(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_work_time(self)


    def pc_work_time_avg(self):
        """pc_work_time_avg(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_work_time_avg(self)


    def pc_work_time_var(self):
        """pc_work_time_var(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_work_time_var(self)


    def pc_work_time_total(self):
        """pc_work_time_total(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_work_time_total(self)


    def pc_throughput_avg(self):
        """pc_throughput_avg(qt_sink_c_sptr self) -> float"""
        return _fosphor_swig.qt_sink_c_sptr_pc_throughput_avg(self)


    def set_processor_affinity(self, mask):
        """set_processor_affinity(qt_sink_c_sptr self, std::vector< int,std::allocator< int > > const & mask)"""
        return _fosphor_swig.qt_sink_c_sptr_set_processor_affinity(self, mask)


    def unset_processor_affinity(self):
        """unset_processor_affinity(qt_sink_c_sptr self)"""
        return _fosphor_swig.qt_sink_c_sptr_unset_processor_affinity(self)


    def processor_affinity(self):
        """processor_affinity(qt_sink_c_sptr self) -> std::vector< int,std::allocator< int > >"""
        return _fosphor_swig.qt_sink_c_sptr_processor_affinity(self)


    def active_thread_priority(self):
        """active_thread_priority(qt_sink_c_sptr self) -> int"""
        return _fosphor_swig.qt_sink_c_sptr_active_thread_priority(self)


    def thread_priority(self):
        """thread_priority(qt_sink_c_sptr self) -> int"""
        return _fosphor_swig.qt_sink_c_sptr_thread_priority(self)


    def set_thread_priority(self, priority):
        """set_thread_priority(qt_sink_c_sptr self, int priority) -> int"""
        return _fosphor_swig.qt_sink_c_sptr_set_thread_priority(self, priority)


    def name(self):
        """name(qt_sink_c_sptr self) -> std::string"""
        return _fosphor_swig.qt_sink_c_sptr_name(self)


    def symbol_name(self):
        """symbol_name(qt_sink_c_sptr self) -> std::string"""
        return _fosphor_swig.qt_sink_c_sptr_symbol_name(self)


    def input_signature(self):
        """input_signature(qt_sink_c_sptr self) -> io_signature_sptr"""
        return _fosphor_swig.qt_sink_c_sptr_input_signature(self)


    def output_signature(self):
        """output_signature(qt_sink_c_sptr self) -> io_signature_sptr"""
        return _fosphor_swig.qt_sink_c_sptr_output_signature(self)


    def unique_id(self):
        """unique_id(qt_sink_c_sptr self) -> long"""
        return _fosphor_swig.qt_sink_c_sptr_unique_id(self)


    def to_basic_block(self):
        """to_basic_block(qt_sink_c_sptr self) -> basic_block_sptr"""
        return _fosphor_swig.qt_sink_c_sptr_to_basic_block(self)


    def check_topology(self, ninputs, noutputs):
        """check_topology(qt_sink_c_sptr self, int ninputs, int noutputs) -> bool"""
        return _fosphor_swig.qt_sink_c_sptr_check_topology(self, ninputs, noutputs)


    def alias(self):
        """alias(qt_sink_c_sptr self) -> std::string"""
        return _fosphor_swig.qt_sink_c_sptr_alias(self)


    def set_block_alias(self, name):
        """set_block_alias(qt_sink_c_sptr self, std::string name)"""
        return _fosphor_swig.qt_sink_c_sptr_set_block_alias(self, name)


    def _post(self, which_port, msg):
        """_post(qt_sink_c_sptr self, swig_int_ptr which_port, swig_int_ptr msg)"""
        return _fosphor_swig.qt_sink_c_sptr__post(self, which_port, msg)


    def message_ports_in(self):
        """message_ports_in(qt_sink_c_sptr self) -> swig_int_ptr"""
        return _fosphor_swig.qt_sink_c_sptr_message_ports_in(self)


    def message_ports_out(self):
        """message_ports_out(qt_sink_c_sptr self) -> swig_int_ptr"""
        return _fosphor_swig.qt_sink_c_sptr_message_ports_out(self)


    def message_subscribers(self, which_port):
        """message_subscribers(qt_sink_c_sptr self, swig_int_ptr which_port) -> swig_int_ptr"""
        return _fosphor_swig.qt_sink_c_sptr_message_subscribers(self, which_port)

qt_sink_c_sptr_swigregister = _fosphor_swig.qt_sink_c_sptr_swigregister
qt_sink_c_sptr_swigregister(qt_sink_c_sptr)


qt_sink_c_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id())
qt_sink_c = qt_sink_c.make;



