GiNaC 1.8.7
Public Member Functions | Private Attributes | List of all members
GiNaC::registered_class_options Class Reference

This class stores information about a registered GiNaC class. More...

#include <registrar.h>

Public Member Functions

 registered_class_options (const char *n, const char *p, const std::type_info &ti)
 
const char * get_name () const
 
const char * get_parent_name () const
 
std::type_info const * get_id () const
 
const std::vector< print_functor > & get_print_dispatch_table () const
 
template<class Ctx , class T , class C >
registered_class_optionsprint_func (void f(const T &, const C &c, unsigned))
 
template<class Ctx , class T , class C >
registered_class_optionsprint_func (void(T::*f)(const C &, unsigned))
 
template<class Ctx >
registered_class_optionsprint_func (const print_functor &f)
 
void set_print_func (unsigned id, const print_functor &f)
 

Private Attributes

const char * name
 Class name. More...
 
const char * parent_name
 Name of superclass. More...
 
std::type_info const * tinfo_key
 Type information key. More...
 
std::vector< print_functorprint_dispatch_table
 Method table for print() dispatch. More...
 

Detailed Description

This class stores information about a registered GiNaC class.

Definition at line 80 of file registrar.h.

Constructor & Destructor Documentation

◆ registered_class_options()

GiNaC::registered_class_options::registered_class_options ( const char *  n,
const char *  p,
const std::type_info &  ti 
)
inline

Definition at line 82 of file registrar.h.

Member Function Documentation

◆ get_name()

const char * GiNaC::registered_class_options::get_name ( ) const
inline

Definition at line 86 of file registrar.h.

References name.

◆ get_parent_name()

const char * GiNaC::registered_class_options::get_parent_name ( ) const
inline

Definition at line 87 of file registrar.h.

References parent_name.

◆ get_id()

std::type_info const * GiNaC::registered_class_options::get_id ( ) const
inline

Definition at line 88 of file registrar.h.

References tinfo_key.

◆ get_print_dispatch_table()

const std::vector< print_functor > & GiNaC::registered_class_options::get_print_dispatch_table ( ) const
inline

Definition at line 89 of file registrar.h.

References print_dispatch_table.

◆ print_func() [1/3]

template<class Ctx , class T , class C >
registered_class_options & GiNaC::registered_class_options::print_func ( void   fconst T &, const C &c, unsigned)
inline

Definition at line 92 of file registrar.h.

References options, and set_print_func().

◆ print_func() [2/3]

template<class Ctx , class T , class C >
registered_class_options & GiNaC::registered_class_options::print_func ( void(T::*)(const C &, unsigned)  f)
inline

Definition at line 99 of file registrar.h.

References options, and set_print_func().

◆ print_func() [3/3]

template<class Ctx >
registered_class_options & GiNaC::registered_class_options::print_func ( const print_functor f)
inline

Definition at line 106 of file registrar.h.

References options, and set_print_func().

◆ set_print_func()

void GiNaC::registered_class_options::set_print_func ( unsigned  id,
const print_functor f 
)
inline

Definition at line 112 of file registrar.h.

References print_dispatch_table.

Referenced by print_func().

Member Data Documentation

◆ name

const char* GiNaC::registered_class_options::name
private

Class name.

Definition at line 120 of file registrar.h.

Referenced by get_name().

◆ parent_name

const char* GiNaC::registered_class_options::parent_name
private

Name of superclass.

Definition at line 121 of file registrar.h.

Referenced by get_parent_name().

◆ tinfo_key

std::type_info const* GiNaC::registered_class_options::tinfo_key
private

Type information key.

Definition at line 122 of file registrar.h.

Referenced by get_id().

◆ print_dispatch_table

std::vector<print_functor> GiNaC::registered_class_options::print_dispatch_table
private

Method table for print() dispatch.

Definition at line 123 of file registrar.h.

Referenced by get_print_dispatch_table(), and set_print_func().


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.