GiNaC 1.8.7
|
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::unique_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::unique_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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 277 of file print.h.
Referenced by is_valid(), and operator=().