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

virtual base class SCI_API API functions More...

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

Public Member Functions

 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 void destroy ()
 destroy SCI object More...
 
virtual void set (int param, sci_var *p_v)
 set parameters of the SCI object More...
 
virtual sci_varget (int param)
 get parameters of the SCI object More...
 
virtual void exec (int command)
 execute command for a SCI object More...
 
virtual sci_vargen (sci_var *p_v_ce)
 generate data using a SCI object More...
 
virtual sci_varproc (sci_var *p_v_ce, sci_var *p_v_x)
 process data using a SCI object More...
 

Detailed Description

virtual base class SCI_API API functions

sci_create()
sci_set()
sci_get()
sci_exec()
sci_gen()
sci_proc()
sci_destroy()

Virtual functions are for getting functions of derived class through the pointers of the base class
input parameters are defined by pointer to sci_var objects
returned pointers to sci_var objects points to newly created sci_var objects

Note
when function returns a pointer - this indicates that an new() object was created,
and it should be deleted at some point by application to avoid memory leaks

Constructor & Destructor Documentation

SCI::sci_base::sci_base ( )
inline

constructor

virtual SCI::sci_base::~sci_base ( )
inlinevirtual

virtual destructor

Member Function Documentation

sci_base * sci_base::create ( int  sci_type)

creates SCI object and returns pointer to it

virtual void SCI::sci_base::destroy ( )
inlinevirtual
virtual void SCI::sci_base::exec ( int  command)
inlinevirtual
virtual sci_var* SCI::sci_base::gen ( sci_var p_v_ce)
inlinevirtual

generate data using a SCI object

Parameters
p_v_ce- pointer to sci_var with ce[] clock enable signal
Returns
- pointer to sci_var object with generated values

Reimplemented in SCI::sci_wgn, SCI::sci_circbuff, SCI::sci_lfsr, SCI::sci_circbuff_x, SCI::sci_binbuff, SCI::sci_counter, and SCI::sci_wgn_x.

virtual sci_var* SCI::sci_base::get ( int  param)
inlinevirtual
virtual sci_var* SCI::sci_base::proc ( sci_var p_v_ce,
sci_var p_v_x 
)
inlinevirtual
virtual void SCI::sci_base::set ( int  param,
sci_var p_v 
)
inlinevirtual

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