itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
Public Member Functions | List of all members
SCI::sci_int2bin Class Reference

integer to binary converter - wrapper for a SIM::int2bin
Core function: SCI::sci_int2bin.proc() More...

Inheritance diagram for SCI::sci_int2bin:
Inheritance graph
[legend]

Public Member Functions

 sci_int2bin ()
 
 ~sci_int2bin ()
 
sci_int2bincreate (int sci_type)
 
void destroy ()
 destroy SCI object More...
 
void set (int param, sci_var *p_v)
 
sci_varget (int param)
 
void exec (int command)
 
sci_varproc (sci_var *p_v_ce, sci_var *p_v_x)
 
- Public Member Functions inherited from SCI::sci_base
 sci_base ()
 constructor More...
 
virtual ~sci_base ()
 virtual destructor More...
 
sci_basecreate (int sci_type)
 creates SCI object and returns pointer to it More...
 
virtual sci_vargen (sci_var *p_v_ce)
 generate data using a SCI object More...
 
- Public Member Functions inherited from SIM::int2bin
 int2bin ()
 
 ~int2bin ()
 
void set_symbol_size (int W)
 
void set_msb_flag (bool msb)
 
void set_output (const bvec &yout)
 
int get_symbol_size ()
 
bool get_msb_flag ()
 
bvec get_output ()
 
bmat process (const bvec &ce, const ivec &x)
 

Detailed Description

integer to binary converter - wrapper for a SIM::int2bin
Core function: SCI::sci_int2bin.proc()

Constructor & Destructor Documentation

SCI::sci_int2bin::sci_int2bin ( )
SCI::sci_int2bin::~sci_int2bin ( )

Member Function Documentation

sci_int2bin* SCI::sci_int2bin::create ( int  sci_type)
inline
void SCI::sci_int2bin::destroy ( )
inlinevirtual

destroy SCI object

Reimplemented from SCI::sci_base.

void SCI::sci_int2bin::exec ( int  command)
virtual

execute command for an instance of a BIN2INT Supported commands: none

Parameters
[in]command- to be executed

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_int2bin::get ( int  param)
virtual

create new sci_var object and assign its value to a parameter of the INT2BIN

Supported parameters:
SCI_TYPE,          sci_var [int]   
SCI_SYMBOL_SIZE, sci_var [int] size of the symbol in bits
SCI_MSB_FLAG, sci_var [bool] msb flag - x[0]=MSB
SCI_OUTPUT, sci_var [int] output for ce=0
Parameters
[in]param- parameter to get
Returns
- pointer to sci_var object with the value of the parameter

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_int2bin::proc ( sci_var p_v_ce,
sci_var p_v_x 
)
virtual

for active [ce] ticks, convert int x[i] into binary symbol y[i,:]

Parameters
[in]p_v_ce- pointer to ce - sci_var [bvec]
[in]p_v_x- pointer to x - sci_var [ivec]
Returns
- pointer to y - new sci_var [bmat]

Reimplemented from SCI::sci_base.

void SCI::sci_int2bin::set ( int  param,
sci_var p_v 
)
virtual

set parameters of a BIN2INT

Supported parameters:
SCI_SYMBOL_SIZE,   sci_var [int]  size of the symbol in bits
SCI_MSB_FLAG, sci_var [bool] msb flag - x[0]=MSB
SCI_OUTPUT, sci_var [int] output for ce=0
Parameters
[in]param- parameter to set
[in]p_v- pointer to sci_var object with value of the parameter

Reimplemented from SCI::sci_base.


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