| 45 |
|
|
| 46 |
// functions overriding virtual functions from base classes |
// functions overriding virtual functions from base classes |
| 47 |
public: |
public: |
|
void print(const print_context & c, unsigned level = 0) const; |
|
| 48 |
unsigned precedence() const {return 40;} |
unsigned precedence() const {return 40;} |
| 49 |
bool info(unsigned inf) const; |
bool info(unsigned inf) const; |
| 50 |
int degree(const ex & s) const; |
int degree(const ex & s) const; |
| 72 |
const ex & c) const; |
const ex & c) const; |
| 73 |
ex recombine_pair_to_ex(const expair & p) const; |
ex recombine_pair_to_ex(const expair & p) const; |
| 74 |
ex expand(unsigned options=0) const; |
ex expand(unsigned options=0) const; |
| 75 |
|
|
| 76 |
|
// non-virtual functions in this class |
| 77 |
|
protected: |
| 78 |
|
void print_add(const print_context & c, const char *openbrace, const char *closebrace, const char *mul_sym, unsigned level) const; |
| 79 |
|
void do_print(const print_context & c, unsigned level) const; |
| 80 |
|
void do_print_latex(const print_latex & c, unsigned level) const; |
| 81 |
|
void do_print_csrc(const print_csrc & c, unsigned level) const; |
| 82 |
|
void do_print_python_repr(const print_python_repr & c, unsigned level) const; |
| 83 |
}; |
}; |
| 84 |
|
|
| 85 |
// utility functions |
// utility functions |