GiNaC  1.6.2
Public Member Functions | Private Attributes
GiNaC::print_functor Class Reference

This class represents a print method for a certain algebraic class and print_context type. More...

#include <print.h>

List of all members.

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_functoroperator= (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_implimpl

Detailed Description

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.

Definition at line 239 of file print.h.


Constructor & Destructor Documentation

GiNaC::print_functor::print_functor ( ) [inline]

Definition at line 241 of file print.h.

GiNaC::print_functor::print_functor ( const print_functor other) [inline]

Definition at line 242 of file print.h.

GiNaC::print_functor::print_functor ( std::auto_ptr< print_functor_impl impl_) [inline]

Definition at line 243 of file print.h.

template<class T , class C >
GiNaC::print_functor::print_functor ( void   fconst T &, const C &, unsigned) [inline]

Definition at line 246 of file print.h.

template<class T , class C >
GiNaC::print_functor::print_functor ( void(T::*)(const C &, unsigned) const  f) [inline]

Definition at line 249 of file print.h.


Member Function Documentation

print_functor& GiNaC::print_functor::operator= ( const print_functor other) [inline]

Definition at line 251 of file print.h.

References impl.

void GiNaC::print_functor::operator() ( const basic obj,
const print_context c,
unsigned  level 
) const [inline]

Definition at line 260 of file print.h.

References c.

bool GiNaC::print_functor::is_valid ( ) const [inline]

Definition at line 265 of file print.h.

References impl.


Member Data Documentation

Definition at line 268 of file print.h.

Referenced by is_valid(), and operator=().


The documentation for this class was generated from the following file:

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.