- debugmsg("constant default constructor",LOGLEVEL_CONSTRUCT);
-}
-
-constant::~constant()
-{
- debugmsg("constant destructor",LOGLEVEL_DESTRUCT);
- destroy(0);
-}
-
-constant::constant(const constant & other)
-{
- debugmsg("constant copy constructor",LOGLEVEL_CONSTRUCT);
- copy(other);
-}
-
-// protected
-
-void constant::copy(const constant & other)
-{
- basic::copy(other);
- name=other.name;
- serial=other.serial;
- ef=other.ef;
- if (other.number != 0) {
- number = new numeric(*other.number);
- } else {
- number = 0;
- }
- // fct_assigned=other.fct_assigned;
-}
-
-void constant::destroy(bool call_parent)
-{
- delete number;
- if (call_parent)
- basic::destroy(call_parent);