]> www.ginac.de Git - ginac.git/commitdiff
removed the "some_*" and "typeid_*" definitions since we are using our own
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 14 Feb 2001 19:04:18 +0000 (19:04 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 14 Feb 2001 19:04:18 +0000 (19:04 +0000)
RTTI for quite some time now

46 files changed:
ginac/add.cpp
ginac/add.h
ginac/basic.cpp
ginac/basic.h
ginac/clifford.cpp
ginac/clifford.h
ginac/color.cpp
ginac/color.h
ginac/coloridx.cpp
ginac/coloridx.h
ginac/constant.cpp
ginac/constant.h
ginac/expairseq.cpp
ginac/expairseq.h
ginac/fail.cpp
ginac/fail.h
ginac/idx.cpp
ginac/idx.h
ginac/indexed.cpp
ginac/indexed.h
ginac/isospin.cpp
ginac/isospin.h
ginac/lorentzidx.cpp
ginac/lorentzidx.h
ginac/lortensor.cpp
ginac/lortensor.h
ginac/matrix.cpp
ginac/matrix.h
ginac/mul.cpp
ginac/mul.h
ginac/ncmul.cpp
ginac/ncmul.h
ginac/numeric.cpp
ginac/numeric.h
ginac/power.cpp
ginac/power.h
ginac/pseries.cpp
ginac/pseries.h
ginac/relational.cpp
ginac/relational.h
ginac/simp_lor.cpp
ginac/simp_lor.h
ginac/structure.cpp
ginac/structure.h
ginac/symbol.cpp
ginac/symbol.h

index 3e43a4e23e5ce4b7c1790ffbf60755245b3ea51a..74a373283a033687efbb73b55d5693987f2b34be 100644 (file)
@@ -542,18 +542,6 @@ ex add::expand(unsigned options) const
        return (new add(vp,overall_coeff))->setflag(status_flags::expanded | status_flags::dynallocated);
 }
 
        return (new add(vp,overall_coeff))->setflag(status_flags::expanded | status_flags::dynallocated);
 }
 
-//////////
-// new virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
-//////////
-// non-virtual functions in this class
-//////////
-
-// none
-
 //////////
 // static member variables
 //////////
 //////////
 // static member variables
 //////////
@@ -562,13 +550,6 @@ ex add::expand(unsigned options) const
 
 unsigned add::precedence = 40;
 
 
 unsigned add::precedence = 40;
 
-//////////
-// global constants
-//////////
-
-const add some_add;
-const std::type_info & typeid_add = typeid(some_add);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 529f4945cf1b19241f824ccf80e04e912ba2c75d..c30034dfd282fc03eceabf73cc98117f593bf386 100644 (file)
@@ -105,11 +105,6 @@ protected:
        static unsigned precedence;
 };
 
        static unsigned precedence;
 };
 
-// global constants
-
-extern const add some_add;
-extern const std::type_info & typeid_add;
-
 // utility functions
 inline const add &ex_to_add(const ex &e)
 {
 // utility functions
 inline const add &ex_to_add(const ex &e)
 {
index a2b0cdd4fa448a74d4841fc9a6e0caf7ddad3a03..daefabb8461e64e51961dd12d6ff073836af12db 100644 (file)
@@ -533,13 +533,6 @@ void basic::ensure_if_modifiable(void) const
 unsigned basic::precedence = 70;
 unsigned basic::delta_indent = 4;
 
 unsigned basic::precedence = 70;
 unsigned basic::delta_indent = 4;
 
-//////////
-// global constants
-//////////
-
-const basic some_basic;
-const std::type_info & typeid_basic = typeid(some_basic);
-
 //////////
 // global variables
 //////////
 //////////
 // global variables
 //////////
index 97ec96e8ed6b0459046e32f06aceea4eb12ded3e..05ee4f23ab2312cf447c00226b1fddc2f6ab69af 100644 (file)
@@ -187,11 +187,6 @@ private:
        unsigned refcount;
 };
 
        unsigned refcount;
 };
 
-// global constants
-
-extern const basic some_basic;
-extern const std::type_info & typeid_basic;
-
 // global variables
 
 extern int max_recursion_level;
 // global variables
 
 extern int max_recursion_level;
index 8ab70652551a562ef2ccdba5591223645d68781b..37e1d8df89d43930bc0ca1f7e09e57cf49fa8f82 100644 (file)
@@ -204,24 +204,6 @@ ex clifford::simplify_ncmul(const exvector & v) const
        return simplified_ncmul(v);
 }
 
        return simplified_ncmul(v);
 }
 
-//////////
-// virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
-//////////
-// non-virtual functions in this class
-//////////
-
-// none
-
-//////////
-// static member variables
-//////////
-
-// none
-
 //////////
 // friend functions
 //////////
 //////////
 // friend functions
 //////////
@@ -236,13 +218,6 @@ clifford clifford_gamma(const ex & mu)
        return clifford("gamma", mu);
 }
 
        return clifford("gamma", mu);
 }
 
-//////////
-// global constants
-//////////
-
-const clifford some_clifford;
-const std::type_info & typeid_clifford = typeid(some_clifford);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 4f0bb6b7474756d033819bb264d582db3a2b5273..e7b05f532208c567f24aa10c3017ebb0e326d1c3 100644 (file)
@@ -85,11 +85,6 @@ protected:
        // none
 };
 
        // none
 };
 
-// global constants
-
-extern const clifford some_clifford;
-extern const std::type_info & typeid_clifford;
-
 // global functions
 inline const clifford &ex_to_clifford(const ex &e)
 {
 // global functions
 inline const clifford &ex_to_clifford(const ex &e)
 {
index bb0837de859adb2fb5bc7d95aad9cca570c0e5d1..9f3b3000c321600eddbc1e773310935d29384a44 100644 (file)
@@ -648,29 +648,6 @@ bool color::all_of_type_coloridx(void) const
        return true;
 }
 
        return true;
 }
 
-//////////
-// virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
-//////////
-// non-virtual functions in this class
-//////////
-
-//////////
-// static member variables
-//////////
-
-// none
-
-//////////
-// global constants
-//////////
-
-const color some_color;
-const std::type_info & typeid_color = typeid(some_color);
-
 //////////
 // friend functions
 //////////
 //////////
 // friend functions
 //////////
index f416b633fb98a33d974d99caa22dfadcf5893614..2b607e3c8e9dd41db9db81b9f8edb2a28ee209ee 100644 (file)
@@ -143,11 +143,6 @@ protected:
        unsigned representation_label; /**< Representation label to distiguish independent color matrices coming from separated fermion lines */
 };
 
        unsigned representation_label; /**< Representation label to distiguish independent color matrices coming from separated fermion lines */
 };
 
-// global constants
-
-extern const color some_color;
-extern const std::type_info & typeid_color;
-
 // global functions
 inline const color &ex_to_color(const ex &e)
 {
 // global functions
 inline const color &ex_to_color(const ex &e)
 {
index 368aef08ba6d74707c505f59264ba735fd5d9bdf..b9568a85d376ee422cc9b2e320c3ec2892567a37 100644 (file)
@@ -235,31 +235,6 @@ bool coloridx::info(unsigned inf) const
        return idx::info(inf);
 }
 
        return idx::info(inf);
 }
 
-//////////
-// new virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
-//////////
-// non-virtual functions in this class
-//////////
-
-// none
-
-//////////
-// static member variables
-//////////
-
-// none
-
-//////////
-// global constants
-//////////
-
-const coloridx some_coloridx;
-const std::type_info & typeid_coloridx = typeid(some_coloridx);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index d9424e58c5293331d31cb0f60415f89ba230a66c..4b40a3a7768d806b3039147df6563d0eed1f7a2b 100644 (file)
@@ -82,11 +82,6 @@ public:
        // none
 };
 
        // none
 };
 
-// global constants
-
-extern const coloridx some_coloridx;
-extern const std::type_info & typeid_coloridx;
-
 // utility functions
 inline const coloridx &ex_to_coloridx(const ex &e)
 {
 // utility functions
 inline const coloridx &ex_to_coloridx(const ex &e)
 {
index 0286b0e9cf2fdcc821b51fe30b8b0a8f42e4dd07..3e6c667de63b79fe27e976c3d3536ff9bb71e389 100644 (file)
@@ -234,14 +234,13 @@ unsigned constant::next_serial=0;
 // global constants
 //////////
 
 // global constants
 //////////
 
-const constant some_constant;
-const std::type_info & typeid_constant = typeid(some_constant);
-
 /**  Pi. (3.14159...)  Diverts straight into CLN for evalf(). */
 const constant Pi("Pi", PiEvalf);
 /**  Pi. (3.14159...)  Diverts straight into CLN for evalf(). */
 const constant Pi("Pi", PiEvalf);
+
 /** Euler's constant. (0.57721...)  Sometimes called Euler-Mascheroni constant.
  *  Diverts straight into CLN for evalf(). */
 const constant Euler("Euler", EulerEvalf);
 /** Euler's constant. (0.57721...)  Sometimes called Euler-Mascheroni constant.
  *  Diverts straight into CLN for evalf(). */
 const constant Euler("Euler", EulerEvalf);
+
 /** Catalan's constant. (0.91597...)  Diverts straight into CLN for evalf(). */
 const constant Catalan("Catalan", CatalanEvalf);
 
 /** Catalan's constant. (0.91597...)  Diverts straight into CLN for evalf(). */
 const constant Catalan("Catalan", CatalanEvalf);
 
index fa67f70e50260b0eebce0bec871fe17bcdd818c5..70b2816e35a2885f58c3c639577af9b94ae60a5b 100644 (file)
@@ -87,11 +87,6 @@ private:
        static unsigned next_serial;
 };
 
        static unsigned next_serial;
 };
 
-// global constants
-
-extern const constant some_constant;
-extern const std::type_info & typeid_constant;
-
 extern const constant Pi;
 extern const constant Catalan;
 extern const constant Euler;
 extern const constant Pi;
 extern const constant Catalan;
 extern const constant Euler;
index d25c8f34afde4c4e23488247cd675cef9059fbc7..3daa4da5fefc7ffa6670c7cb258c4e4d66b4958e 100644 (file)
@@ -1729,13 +1729,6 @@ unsigned expairseq::minhashtabsize=0x1000U;
 unsigned expairseq::hashtabfactor=1;
 #endif // def EXPAIRSEQ_USE_HASHTAB
 
 unsigned expairseq::hashtabfactor=1;
 #endif // def EXPAIRSEQ_USE_HASHTAB
 
-//////////
-// global constants
-//////////
-
-const expairseq some_expairseq;
-const std::type_info & typeid_expairseq = typeid(some_expairseq);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index b6d8a4ed28846a6496023db1835ea428bbbdf883..d9cc0b31140c1bd955686743e307f3d7c4a084c4 100644 (file)
@@ -194,11 +194,6 @@ protected:
 #endif // def EXPAIRSEQ_USE_HASHTAB
 };
 
 #endif // def EXPAIRSEQ_USE_HASHTAB
 };
 
-// global constants
-
-extern const expairseq some_expairseq;
-extern const std::type_info & typeid_expairseq;
-
 // utility functions
 inline const expairseq &ex_to_expairseq(const ex &e)
 {
 // utility functions
 inline const expairseq &ex_to_expairseq(const ex &e)
 {
index bfacd79aa308fdd410b6b63fdc0b77a187331ce3..8a281e8ab97a2c938242c63b3e2c1f9540bf0a09 100644 (file)
@@ -76,13 +76,6 @@ void fail::destroy(bool call_parent)
        if (call_parent) inherited::destroy(call_parent);
 }
 
        if (call_parent) inherited::destroy(call_parent);
 }
 
-
-//////////
-// other constructors
-//////////
-
-// none
-
 //////////
 // archiving
 //////////
 //////////
 // archiving
 //////////
@@ -137,31 +130,6 @@ int fail::compare_same_type(const basic & other) const
        return 0;
 }
 
        return 0;
 }
 
-//////////
-// new virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
-//////////
-// non-virtual functions in this class
-//////////
-
-// none
-
-//////////
-// static member variables
-//////////
-
-// none
-
-//////////
-// global constants
-//////////
-
-const fail some_fail;
-const std::type_info & typeid_fail = typeid(some_fail);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 0e9ac5e6c5edaa822706a8aec7e2d36e0c842b8e..d6bf22d013bf0c36a7aefc4aee9bf39f9be12d75 100644 (file)
@@ -66,11 +66,6 @@ protected:
 // none
 };
 
 // none
 };
 
-// global constants
-
-extern const fail some_fail;
-extern const std::type_info & typeid_fail;
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 0b2c61cbfca0f2c4fc5474a8e8fa8a11cdd27d6d..34d5c854c00f55c47be8b64b4959a8bffdd844f5 100644 (file)
@@ -384,13 +384,6 @@ std::string & idx::autoname_prefix(void)
 
 unsigned idx::next_serial=0;
 
 
 unsigned idx::next_serial=0;
 
-//////////
-// global constants
-//////////
-
-const idx some_idx;
-const std::type_info & typeid_idx = typeid(some_idx);
-
 //////////
 // other functions
 //////////
 //////////
 // other functions
 //////////
index 88492c08e31adfca4adcf29ff8a13574a7e5a510..8b991ac1ffad1ef843863c14c2e153ad432a2915 100644 (file)
@@ -102,11 +102,6 @@ protected:
        bool covariant;   /**< x_mu, default is contravariant: x~mu */
 };
 
        bool covariant;   /**< x_mu, default is contravariant: x~mu */
 };
 
-// global constants
-
-extern const idx some_idx;
-extern const std::type_info & typeid_idx;
-
 // utility functions
 inline const idx &ex_to_idx(const ex &e)
 {
 // utility functions
 inline const idx &ex_to_idx(const ex &e)
 {
index 5dbbf8be38550854c7d31fab6f397487abe1bbf3..8e05dbf22a7d534cf0a1e6e8f4ccd1be82d85b2a 100644 (file)
@@ -338,19 +338,6 @@ bool indexed::all_of_type_idx(void) const
        return true;
 }
 
        return true;
 }
 
-//////////
-// static member variables
-//////////
-
-// none
-
-//////////
-// global constants
-//////////
-
-const indexed some_indexed;
-const std::type_info & typeid_indexed = typeid(some_indexed);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 2ff8c3a126bbfe1ed7f657a7c4906e07fd068fd2..c43d4aded9c61f2169ecdfa27c8790bfa820007f 100644 (file)
@@ -92,11 +92,6 @@ protected:
        // none
 };
 
        // none
 };
 
-// global constants
-
-extern const indexed some_indexed;
-extern const std::type_info & typeid_indexed;
-
 // utility functions
 inline const indexed &ex_to_indexed(const ex &e)
 {
 // utility functions
 inline const indexed &ex_to_indexed(const ex &e)
 {
index cd6d45cadd47d6b6abcb80880000bf10987e22a3..911c86f4e7c4a1ff1d8169a6949435fea65ac112 100644 (file)
@@ -244,13 +244,6 @@ std::string & isospin::autoname_prefix(void)
 
 unsigned isospin::next_serial=0;
 
 
 unsigned isospin::next_serial=0;
 
-//////////
-// global constants
-//////////
-
-const isospin some_isospin;
-const std::type_info & typeid_isospin = typeid(some_isospin);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 7ce9c5ef036f3d0e4195cf91c785ef330015be79..313c1309c02880ad12466c1c561d98a140cab5d2 100644 (file)
@@ -82,11 +82,6 @@ private:
        static unsigned next_serial;
 };
 
        static unsigned next_serial;
 };
 
-// global constants
-
-extern const isospin some_isospin;
-extern const std::type_info & typeid_isospin;
-
 // utility functions
 inline const isospin &ex_to_isospin(const ex &e)
 {
 // utility functions
 inline const isospin &ex_to_isospin(const ex &e)
 {
index ed6da8a2c65b47364bbd09efa0f3e8d82e0adef1..67e5576b8730979d6cf42874f6965488f771c987 100644 (file)
@@ -282,12 +282,6 @@ bool lorentzidx::info(unsigned inf) const
        return inherited::info(inf);
 }
 
        return inherited::info(inf);
 }
 
-//////////
-// new virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
 //////////
 // non-virtual functions in this class
 //////////
 //////////
 // non-virtual functions in this class
 //////////
@@ -307,12 +301,6 @@ lorentzidx lorentzidx::create_anonymous_representative(void) const
        return i_copy;
 }
 
        return i_copy;
 }
 
-//////////
-// static member variables
-//////////
-
-// none
-
 //////////
 // global functions
 //////////
 //////////
 // global functions
 //////////
@@ -324,13 +312,6 @@ ex Dim(void)
        return *d;
 }
 
        return *d;
 }
 
-//////////
-// global constants
-//////////
-
-const lorentzidx some_lorentzidx;
-const std::type_info & typeid_lorentzidx = typeid(some_lorentzidx);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index c10d2366202dfe3afc9e3c11951fba3a111cd8c1..3d5355b7ec3dbb53ac0896f09f2b5853dc717df1 100644 (file)
@@ -94,11 +94,6 @@ protected:
        unsigned dim_parallel_space; /**< Dimension of parallel space */
 };
 
        unsigned dim_parallel_space; /**< Dimension of parallel space */
 };
 
-// global constants
-
-extern const lorentzidx some_lorentzidx;
-extern const std::type_info & typeid_lorentzidx;
-
 // utility functions
 inline const lorentzidx &ex_to_lorentzidx(const ex &e)
 {
 // utility functions
 inline const lorentzidx &ex_to_lorentzidx(const ex &e)
 {
index 5d841366d8cbd8a44b98b87ffcea667d0d187b41..0238adcb629a8f4ad3b98ff59ab98e727123c3e8 100644 (file)
@@ -600,13 +600,6 @@ ex simplify_lortensor(const ex & e)
        return e_expanded;
 }
 
        return e_expanded;
 }
 
-//////////
-// global constants
-//////////
-
-const lortensor some_lortensor;
-const std::type_info & typeid_lortensor = typeid(some_lortensor);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 95af02412abccc2d9898403de87c6592304260f6..977be9840c13fd9e147858d55f822ef466f7444d 100644 (file)
@@ -126,11 +126,6 @@ private:
        static unsigned next_serial;
 };
 
        static unsigned next_serial;
 };
 
-// global constants
-
-extern const lortensor some_lortensor;
-extern const std::type_info & typeid_lortensor;
-
 // utility functions
        
 inline const lortensor & ex_to_lortensor(const ex &e)
 // utility functions
        
 inline const lortensor & ex_to_lortensor(const ex &e)
index d66567c92d5fb2d5345d96350e63a8d7d3907d8a..ec7ee2c8e004415bd04eb4e8df44acc9d3fa7294 100644 (file)
@@ -1220,13 +1220,6 @@ ex lst_to_matrix(const ex &l)
        return m;
 }
 
        return m;
 }
 
-//////////
-// global constants
-//////////
-
-const matrix some_matrix;
-const std::type_info & typeid_matrix = typeid(some_matrix);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 00dee531e0ff0b48e058e35e63f7e7cc123eef42..279ddfc12ad1402abceffff59088076d19414682 100644 (file)
@@ -109,11 +109,6 @@ protected:
 };
 
 
 };
 
 
-// global constants
-extern const matrix some_matrix;
-extern const std::type_info & typeid_matrix;
-
-
 // wrapper functions around member functions
 
 inline unsigned nops(const matrix & m)
 // wrapper functions around member functions
 
 inline unsigned nops(const matrix & m)
index f3fa44179beef1df7e82bc8bd9b860e34dbe70da..23927729895d3dfc5e9f0321044f8e42babb0b25 100644 (file)
@@ -770,14 +770,6 @@ epvector * mul::expandchildren(unsigned options) const
 
 unsigned mul::precedence = 50;
 
 
 unsigned mul::precedence = 50;
 
-
-//////////
-// global constants
-//////////
-
-const mul some_mul;
-const std::type_info & typeid_mul = typeid(some_mul);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index af6826f9c0b1af7eeef466156090101a90137aae..78954963711ca18c521078b7329b4cb646cc1935 100644 (file)
@@ -112,11 +112,6 @@ protected:
        static unsigned precedence;
 };
 
        static unsigned precedence;
 };
 
-// global constants
-
-extern const mul some_mul;
-extern const std::type_info & typeid_mul;
-
 // utility functions
 inline const mul &ex_to_mul(const ex &e)
 {
 // utility functions
 inline const mul &ex_to_mul(const ex &e)
 {
index 1318b3879a6b54db26db517ed1cedd4b8bd459eb..8964d6b7ddf2f946fa417be53ab5c7587f8ffb48 100644 (file)
@@ -626,14 +626,6 @@ const exvector & ncmul::get_factors(void) const
 
 unsigned ncmul::precedence=50;
 
 
 unsigned ncmul::precedence=50;
 
-
-//////////
-// global constants
-//////////
-
-const ncmul some_ncmul;
-const std::type_info & typeid_ncmul = typeid(some_ncmul);
-
 //////////
 // friend functions
 //////////
 //////////
 // friend functions
 //////////
index 9445d75044b26526adcdd805451ffb06bc37a5e4..a604eead140b3ee536e76622cc181955dedc8e7d 100644 (file)
@@ -102,11 +102,6 @@ protected:
        static unsigned precedence;
 };
 
        static unsigned precedence;
 };
 
-// global constants
-
-extern const ncmul some_ncmul;
-extern const std::type_info & typeid_ncmul;
-
 // friend funtions 
 
 ex nonsimplified_ncmul(const exvector & v);
 // friend funtions 
 
 ex nonsimplified_ncmul(const exvector & v);
index 024a846a6e6bc0264037b8675baa84c0a33477c9..32bb7fb2295b376e8b362aa4020b8c2923a51d73 100644 (file)
@@ -1250,8 +1250,6 @@ unsigned numeric::precedence = 30;
 // global constants
 //////////
 
 // global constants
 //////////
 
-const numeric some_numeric;
-const std::type_info & typeid_numeric = typeid(some_numeric);
 /** Imaginary unit.  This is not a constant but a numeric since we are
  *  natively handing complex numbers anyways. */
 const numeric I = numeric(cln::complex(cln::cl_I(0),cln::cl_I(1)));
 /** Imaginary unit.  This is not a constant but a numeric since we are
  *  natively handing complex numbers anyways. */
 const numeric I = numeric(cln::complex(cln::cl_I(0),cln::cl_I(1)));
index c519eccbda6921f2d5b240574da6adf46fe33e28..247951aa750c284dce9aaf11d7cad55c43d5ee11 100644 (file)
@@ -186,9 +186,7 @@ protected:
 
 // global constants
 
 
 // global constants
 
-extern const numeric some_numeric;
 extern const numeric I;
 extern const numeric I;
-extern const std::type_info & typeid_numeric;
 extern _numeric_digits Digits;
 
 //#define is_a_numeric_hash(x) ((x)==HASHVALUE_NUMERIC)
 extern _numeric_digits Digits;
 
 //#define is_a_numeric_hash(x) ((x)==HASHVALUE_NUMERIC)
index efddc39338b3f4d88276e6ba7a78d979829bab3b..9d224d1b2f07726fa2c28d8f1d8cfc8c7c715fe6 100644 (file)
@@ -887,13 +887,6 @@ ex power::expand_noncommutative(const ex & basis, const numeric & exponent,
 
 unsigned power::precedence = 60;
 
 
 unsigned power::precedence = 60;
 
-//////////
-// global constants
-//////////
-
-const power some_power;
-const std::type_info & typeid_power=typeid(some_power);
-
 // helper function
 
 ex sqrt(const ex & a)
 // helper function
 
 ex sqrt(const ex & a)
index fe562a3c208ff47524d883dd4a4f038a35a6adf5..6bdafa00048167d5975f3765a76e4d13189a81d8 100644 (file)
@@ -105,11 +105,6 @@ protected:
        static unsigned precedence;
 };
 
        static unsigned precedence;
 };
 
-// global constants
-
-extern const power some_power;
-extern const std::type_info & typeid_power;
-
 // utility functions
 inline const power &ex_to_power(const ex &e)
 {
 // utility functions
 inline const power &ex_to_power(const ex &e)
 {
index de0e45cc785f054ba1dbbbf718884936f8c584b8..36fb4429294928b79dea975abb05f397e2931b3c 100644 (file)
@@ -901,13 +901,6 @@ ex ex::series(const ex & r, int order, unsigned options) const
 
 unsigned pseries::precedence = 38;  // for clarity just below add::precedence
 
 
 unsigned pseries::precedence = 38;  // for clarity just below add::precedence
 
-//////////
-// global constants
-//////////
-
-const pseries some_pseries;
-const std::type_info & typeid_pseries = typeid(some_pseries);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index fbff5135720fcbc84622b7fb1216695da8428cc1..0b0d92f1fb7466cc6a0840879e9bb93a25e1db5b 100644 (file)
@@ -98,10 +98,6 @@ protected:
        static unsigned precedence;
 };
 
        static unsigned precedence;
 };
 
-// global constants
-extern const pseries some_pseries;
-extern const std::type_info & typeid_pseries;
-
 /** Return a reference to the pseries object embedded in an expression.
  *  The result is undefined if the expression does not contain a pseries
  *  object at its top level.
 /** Return a reference to the pseries object embedded in an expression.
  *  The result is undefined if the expression does not contain a pseries
  *  object at its top level.
index e540c214ec35103715266248183afca47b627146..7ed651c90c74ccbfc0949bfc0b2843afa7f9ed89 100644 (file)
@@ -396,13 +396,6 @@ relational::operator bool() const
 
 unsigned relational::precedence=20;
 
 
 unsigned relational::precedence=20;
 
-//////////
-// global constants
-//////////
-
-const relational some_relational;
-const std::type_info & typeid_relational = typeid(some_relational);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 6d8039d341b538afb83948380eb390f91644fee7..85d9db1dc40c024edade64f8daca588e35c4c87b 100644 (file)
@@ -99,11 +99,6 @@ protected:
        static unsigned precedence;
 };
 
        static unsigned precedence;
 };
 
-// global constants
-
-extern const relational some_relational;
-extern const std::type_info & typeid_relational;
-
 // utility functions
 inline const relational &ex_to_relational(const ex &e)
 {
 // utility functions
 inline const relational &ex_to_relational(const ex &e)
 {
index 0850a3adc42da46915619f26a3d787848be5d481..06e79da182fd38bdf575fb6613f4de61f64543e0 100644 (file)
@@ -308,13 +308,6 @@ bool simp_lor::all_of_type_lorentzidx(void) const
 
 // none
 
 
 // none
 
-//////////
-// global constants
-//////////
-
-const simp_lor some_simp_lor;
-const std::type_info & typeid_simp_lor = typeid(some_simp_lor);
-
 //////////
 // friend functions
 //////////
 //////////
 // friend functions
 //////////
index 277f0aa66d924ab7a54349db23b7b0d0b57e4161..8a62621705dd5ee81654b35f4f82bdc91c4277b7 100644 (file)
@@ -138,11 +138,6 @@ protected:
        std::string name;
 };
 
        std::string name;
 };
 
-// global constants
-
-extern const simp_lor some_simp_lor;
-extern const std::type_info & typeid_simp_lor;
-
 // utility functions
 inline const simp_lor &ex_to_simp_lor(const ex &e)
 {
 // utility functions
 inline const simp_lor &ex_to_simp_lor(const ex &e)
 {
index 34b24f34b7e671e34a908ae55db3be6b6373eb9f..ddd953dffc5424c28aabe0b0e70d014404db10e6 100644 (file)
@@ -165,19 +165,6 @@ unsigned structure::register_new(const char * nm)
        return registered_structures().size()-1;
 }
 
        return registered_structures().size()-1;
 }
 
-//////////
-// static member variables
-//////////
-
-// none
-
-//////////
-// global constants
-//////////
-
-const structure some_structure;
-const std::type_info & typeid_structure = typeid(some_structure);
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index 0ec0b6cdf3355627d0d17d4ed7df8ff6340ba802..28abe6adaf8c40f9f390fdf18f87b00ac6fdde14 100644 (file)
@@ -81,11 +81,6 @@ public:
 
 };
 
 
 };
 
-// global constants
-
-extern const structure some_structure;
-extern const std::type_info & typeid_structure;
-
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
 #endif // ndef NO_NAMESPACE_GINAC
index edc2704663842a4401791a82d60a5c25bf7f1139..7ff75ec74bb41ea904e35847af9b2ef245eafc18 100644 (file)
@@ -352,13 +352,6 @@ unsigned symbol::next_serial=0;
 
 // std::string const symbol::autoname_prefix="symbol";
 
 
 // std::string const symbol::autoname_prefix="symbol";
 
-//////////
-// global constants
-//////////
-
-const symbol some_symbol;
-const std::type_info & typeid_symbol = typeid(some_symbol);
-
 //////////
 // subclass assigned_ex_info
 //////////
 //////////
 // subclass assigned_ex_info
 //////////
index 927e0b534d66a6761ed13cb9463789595430a9b6..20c5468b0b19c6becb5b568d29075590bb743aa2 100644 (file)
@@ -112,11 +112,6 @@ private:
        static unsigned next_serial;
 };
 
        static unsigned next_serial;
 };
 
-// global constants
-
-extern const symbol some_symbol;
-extern const std::type_info & typeid_symbol;
-
 // utility functions
 inline const symbol &ex_to_symbol(const ex &e)
 {
 // utility functions
 inline const symbol &ex_to_symbol(const ex &e)
 {