GiNaC  1.6.2
Classes | Namespaces | Defines | Typedefs | Functions
print.h File Reference

Definition of helper classes for expression output. More...

#include "class_info.h"
#include <iosfwd>
#include <memory>
#include <string>

Go to the source code of this file.

Classes

class  GiNaC::print_context_options
 This class stores information about a registered print_context class. More...
class  GiNaC::print_options
 Flags to control the behavior of a print_context. More...
class  GiNaC::print_context
 Base class for print_contexts. More...
class  GiNaC::print_dflt
 Context for default (ginsh-parsable) output. More...
class  GiNaC::print_latex
 Context for latex-parsable output. More...
class  GiNaC::print_python
 Context for python pretty-print output. More...
class  GiNaC::print_python_repr
 Context for python-parsable output. More...
class  GiNaC::print_tree
 Context for tree-like output for debugging. More...
class  GiNaC::print_csrc
 Base context for C source output. More...
class  GiNaC::print_csrc_float
 Context for C source output using float precision. More...
class  GiNaC::print_csrc_double
 Context for C source output using double precision. More...
class  GiNaC::print_csrc_cl_N
 Context for C source output using CLN numbers. More...
class  GiNaC::print_functor_impl
 Base class for print_functor handlers. More...
class  GiNaC::print_ptrfun_handler< T, C >
 print_functor handler for pointer-to-functions of class T, context type C More...
class  GiNaC::print_memfun_handler< T, C >
 print_functor handler for member functions of class T, context type C More...
class  GiNaC::print_functor
 This class represents a print method for a certain algebraic class and print_context type. More...

Namespaces

namespace  GiNaC
 

CRC32 hash function.


Defines

#define GINAC_DECLARE_PRINT_CONTEXT(classname, supername)
 Macro for inclusion in the declaration of a print_context class.
#define GINAC_IMPLEMENT_PRINT_CONTEXT(classname, supername)
 Macro for inclusion in the implementation of each print_context class.

Typedefs

typedef class_info
< print_context_options > 
GiNaC::print_context_class_info

Functions

template<class T >
bool GiNaC::is_a (const print_context &obj)
 Check if obj is a T, including base classes.

Detailed Description

Definition of helper classes for expression output.

Definition in file print.h.


Define Documentation

#define GINAC_DECLARE_PRINT_CONTEXT (   classname,
  supername 
)
Value:
public: \
    typedef supername inherited; \
    friend class function_options; \
    friend class registered_class_options; \
public: \
    static const GiNaC::print_context_class_info &get_class_info_static(); \
    virtual const GiNaC::print_context_class_info &get_class_info() const { return classname::get_class_info_static(); } \
    virtual const char *class_name() const { return classname::get_class_info_static().options.get_name(); } \
    \
    classname(); \
    virtual classname * duplicate() const { return new classname(*this); } \
private:

Macro for inclusion in the declaration of a print_context class.

It declares some functions that are common to all classes derived from 'print_context' as well as all required stuff for the GiNaC registry.

Definition at line 66 of file print.h.

#define GINAC_IMPLEMENT_PRINT_CONTEXT (   classname,
  supername 
)
Value:
const GiNaC::print_context_class_info &classname::get_class_info_static() \
{ \
    static GiNaC::print_context_class_info reg_info = GiNaC::print_context_class_info(GiNaC::print_context_options(#classname, #supername, GiNaC::next_print_context_id++)); \
    return reg_info; \
}

Macro for inclusion in the implementation of each print_context class.

Definition at line 81 of file print.h.


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