|
GiNaC
1.6.2
|
This class represents a print method for a certain algebraic class and print_context type. More...
#include <print.h>
Public Member Functions | |
| print_functor () | |
| print_functor (const print_functor &other) | |
| print_functor (std::auto_ptr< print_functor_impl > impl_) | |
| template<class T , class C > | |
| print_functor (void f(const T &, const C &, unsigned)) | |
| template<class T , class C > | |
| print_functor (void(T::*f)(const C &, unsigned) const) | |
| print_functor & | operator= (const print_functor &other) |
| void | operator() (const basic &obj, const print_context &c, unsigned level) const |
| bool | is_valid () const |
Private Attributes | |
| std::auto_ptr< print_functor_impl > | impl |
This class represents a print method for a certain algebraic class and print_context type.
Its main purpose is to hide the difference between member functions and nonmember functions behind one unified operator() interface. print_functor has value semantics and acts as a smart pointer (with deep copy) to a class derived from print_functor_impl which implements the actual function call.
| GiNaC::print_functor::print_functor | ( | const print_functor & | other | ) | [inline] |
| GiNaC::print_functor::print_functor | ( | std::auto_ptr< print_functor_impl > | impl_ | ) | [inline] |
| GiNaC::print_functor::print_functor | ( | void | fconst T &, const C &, unsigned | ) | [inline] |
| GiNaC::print_functor::print_functor | ( | void(T::*)(const C &, unsigned) const | f | ) | [inline] |
| print_functor& GiNaC::print_functor::operator= | ( | const print_functor & | other | ) | [inline] |
| void GiNaC::print_functor::operator() | ( | const basic & | obj, |
| const print_context & | c, | ||
| unsigned | level | ||
| ) | const [inline] |
| bool GiNaC::print_functor::is_valid | ( | ) | const [inline] |
std::auto_ptr<print_functor_impl> GiNaC::print_functor::impl [private] |
Definition at line 268 of file print.h.
Referenced by is_valid(), and operator=().