GNU Radio 3.7.1 C++ API
gr::digital::map_bb Class Reference

output[i] = map[input[i]] More...

#include <map_bb.h>

Inheritance diagram for gr::digital::map_bb:

List of all members.

Public Types

typedef boost::shared_ptr< map_bbsptr

Public Member Functions

virtual void set_map (const std::vector< int > &map)=0
virtual std::vector< int > map () const =0

Static Public Member Functions

static sptr make (const std::vector< int > &map)

Detailed Description

output[i] = map[input[i]]

This block maps an incoming signal to the value in the map. The block expects that the incoming signal has a maximum value of len(map)-1.

-> output[i] = map[input[i]]


Member Typedef Documentation


Member Function Documentation

static sptr gr::digital::map_bb::make ( const std::vector< int > &  map) [static]

Make a map block.

Parameters:
mapa vector of integers that maps x to map[x].
virtual std::vector<int> gr::digital::map_bb::map ( ) const [pure virtual]
virtual void gr::digital::map_bb::set_map ( const std::vector< int > &  map) [pure virtual]

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