Re: [ng-spice] Readline Response


To ng-spice@ieee.ing.uniroma1.it
From Paolo Nenzi <pnenzi@ieee.ing.uniroma1.it>
Date Fri, 27 Aug 1999 17:02:05 +0200 (CEST)
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
In-Reply-To <37C67817.D540CF7E@v-ms.com >
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice@ieee.ing.uniroma1.it



On Fri, 27 Aug 1999, Kev wrote:

> You can then pass a pointer to either the base or derived class
> to a routine and get different behavior:
I have seen something similar in spice: spice builds up tables for
analyses and devices. Each device has a load function, a delete function
and so on. May be we can create a class called "device" and then derive a
diode, a bjt, etc. ? Spice has a similar structure, data between functions
are passed after a cast to void and casted back to an "expected" type when
needed.


> Hope this helps.

Thank you,
Paolo


Partial thread listing: