testing
[gnucap-felix.git] / modules / d_rcd_sym.h
blobe9d45beeb9ce6ecaebd06b6b21fb0eda1a115374
1 /*
3 * (c)2010 felix salfelder
4 * nonGPL ?
5 */
8 #ifndef D_RCD_SYM_H_INCLUDED
9 #define D_RCD_SYM_H_INCLUDED
11 #include "d_rcd.h"
13 class DEV_BUILT_IN_RCD;
14 // obsolete base class
15 class MODEL_BUILT_IN_RCD_SYM : public MODEL_BUILT_IN_RCD {
16 // friend class DEV_BUILT_IN_RCD;
17 protected:
18 explicit MODEL_BUILT_IN_RCD_SYM(const MODEL_BUILT_IN_RCD_SYM& p);
19 public:
20 explicit MODEL_BUILT_IN_RCD_SYM(const BASE_SUBCKT* p);
21 // ~MODEL_BUILT_IN_RCD_SYM() : ~MODEL_BUILT_IN_RCD {}
22 bool use_net() const { return(0); }
23 virtual void do_tt_prepare(COMPONENT*)const;
24 void do_stress_apply( COMPONENT* d ) const;
25 void do_tr_stress( const COMPONENT*) const;
26 std::string dev_type()const ;
28 void set_dev_type(const std::string& nt )
30 assert(&nt);
31 trace0(("MODEL_BUILT_IN_RCD_SYM::set_dev_type() " + nt).c_str());
33 virtual CARD* clone()const {return new MODEL_BUILT_IN_RCD_SYM(*this);}
34 void do_expand( COMPONENT*) const;
35 // ADP_NODE_RCD* new_adp_node(const COMPONENT*) const;
36 // region_t region(const COMPONENT*) const;
37 int tt_region(const COMPONENT*) const;
38 virtual double P(const COMPONENT*) const;
39 virtual double do_tr_error_last( double, const COMMON_COMPONENT* ) const {unreachable(); return 0;}
40 private:
41 // template <class T>
42 // T __Edu(T,T, const COMMON_COMPONENT* )const {return 0;}
43 protected:
44 // virtual long double __step(long double, long double, double, const COMMON_COMPONENT* ) const { assert(false); }
45 double __E(double s, const COMMON_COMPONENT* c ) const ;
46 long double __Re(long double, const COMMON_COMPONENT*)const { assert(false); return 0; }
47 double __Re(double, const COMMON_COMPONENT*)const { assert(false); return 0; }
49 /*--------------------------------------------------------------------------*/
50 class DEV_BUILT_IN_RCD_SYM : public DEV_BUILT_IN_RCD {
51 explicit DEV_BUILT_IN_RCD_SYM(const DEV_BUILT_IN_RCD_SYM& p);
52 public:
53 explicit DEV_BUILT_IN_RCD_SYM();
54 private:
55 TIME_PAIR tr_review(){ return BASE_SUBCKT::tr_review();}
56 void expand();
57 void tr_stress();
58 public:
60 /*--------------------------------------------------------------------------*/
61 #endif
62 // vim:ts=8:sw=2:et: