itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sci_counter.hpp
1 /*xxx
2 * \brief - SCI_COUNTER API
3 * \author maki
4 */
5 
6 #ifndef SCI_COUNTER_HPP
7 #define SCI_COUNTER_HPP
8 
9 #include "sci\_sci_base.hpp"
10 #include "sim\sim_counter.hpp"
11 
12 using namespace itpp;
13 using namespace std;
14 using namespace SIM;
15 
16 namespace SCI
17 {
23 class sci_counter: public sci_base, public SIM::counter
24 {
25 public:
26 
27  sci_counter();
28  ~sci_counter();
29 
30  sci_counter* create(int sci_type)
31  {
32  return (this);
33  };
34 
35  void destroy()
36  {
37  return;
38  };
39 
40  void set(int param, sci_var* p_v);
41  sci_var* get(int param);
42  void exec(int command);
43  sci_var* gen(sci_var* p_v_ce);
44 
45 };
46 
47 
48 }// SCI
49 #endif //SCI_COUNTER_HPP
sci_counter * create(int sci_type)
Definition: sci_counter.hpp:30
binary modulo N up counter Core function SIM::counter.generate()
Definition: sim_counter.hpp:24
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
virtual base class SCI_API API functions
Definition: _sci_base.hpp:40
binary up counter - wrapper for a SIM::counter Core function: SCI::sci_counter.gen() ...
Definition: sci_counter.hpp:23
Definition: _sci_assert.cpp:35
SCI layer implements SCI_API interface as wrappers for SIM layer models.
Definition: _sci_create_sci_var.cpp:8
Abstract base for encapsulation of sci_variables.
Definition: _sci_var.hpp:23
void destroy()
destroy SCI object
Definition: sci_counter.hpp:35