1 // Internals of Univariate polynomials.
6 #include "cl_univpoly.h"
9 extern cl_heap_univpoly_ring* cl_make_univpoly_ring (const cl_ring& r);
11 struct cl_varname_property : public cl_property {
12 SUBCLASS_cl_property();
16 cl_varname_property (const cl_symbol& k, const cl_symbol& v) : cl_property (k), varname (v) {}
19 // The property list key used to look up the varname.
20 extern cl_symbol cl_univpoly_varname_key;
22 static inline const cl_string get_varname (cl_heap_univpoly_ring* UPR)
24 cl_property* p = UPR->get_property(cl_univpoly_varname_key);
26 return ((cl_varname_property*)p)->varname;
28 return cl_default_print_flags.univpoly_varname;