#include <uhd/cal/container.hpp>
Public Types | |
typedef std::map< in_type, out_type > | container_t |
typedef boost::archive::text_iarchive | iarchive_type |
typedef boost::archive::text_oarchive | oarchive_type |
Public Types inherited from uhd::cal::base_container | |
typedef std::map< std::string, std::string > | metadata_t |
typedef boost::shared_ptr< base_container > | sptr |
Public Member Functions | |
virtual out_type | get (const in_type &args)=0 |
virtual void | add (const out_type output, const in_type &args)=0 |
virtual void | add_metadata (const metadata_t &data)=0 |
virtual const metadata_t & | get_metadata ()=0 |
Protected Member Functions | |
virtual void | serialize (iarchive_type &ar, const unsigned int)=0 |
virtual void | serialize (oarchive_type &ar, const unsigned int)=0 |
Friends | |
class | boost::serialization::access |
An interface for creating and managing a generic calibration data container.
These containers are used to represent N dimensional data structures in order to accommodate a mapping from multi-variable input to a scalar value (e.g. gain, frequency, temperature -> power level [dBm]).
The container only supports inputs of the same type to be mapped.
typedef std::map<in_type, out_type> uhd::cal::cal_container< in_type, out_type >::container_t |
typedef boost::archive::text_iarchive uhd::cal::cal_container< in_type, out_type >::iarchive_type |
typedef boost::archive::text_oarchive uhd::cal::cal_container< in_type, out_type >::oarchive_type |
|
pure virtual |
Add a data point to the container. This function records a mapping R^n -> R between an input vector and output scalar.
output | the output of the data point mapping |
args | input values |
Implemented in uhd::cal::power_container.
|
pure virtual |
Associate some metadata with the container.
data | a map of metadata (string -> string). |
Implemented in uhd::cal::power_container.
|
pure virtual |
Get the mapping from an input to an output from the calibration container.
args | input values |
uhd::assertion_error | if the dimensions of the input args are incorrect for this container |
Implemented in uhd::cal::power_container.
|
pure virtual |
Retrieve metadata from the container.
Implemented in uhd::cal::power_container.
|
protectedpure virtual |
|
protectedpure virtual |
|
friend |