GiNaC 1.8.7
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
GiNaC::class_info< OPT > Class Template Reference

#include <class_info.h>

Classes

struct  tree_node
 

Public Member Functions

 class_info (const OPT &o)
 
class_infoget_parent () const
 Get pointer to class_info of parent class (or nullptr). More...
 

Static Public Member Functions

static const class_infofind (const std::string &class_name)
 Find class_info by name. More...
 
static void dump_hierarchy (bool verbose=false)
 Dump class hierarchy to std::cout. More...
 

Public Attributes

OPT options
 

Static Private Member Functions

static void dump_tree (tree_node *n, const std::string &prefix, bool verbose)
 
static void identify_parents ()
 

Private Attributes

class_infonext
 
class_infoparent
 

Static Private Attributes

static class_infofirst = nullptr
 
static bool parents_identified = false
 

Detailed Description

template<class OPT>
class GiNaC::class_info< OPT >

Definition at line 41 of file class_info.h.

Constructor & Destructor Documentation

◆ class_info()

template<class OPT >
GiNaC::class_info< OPT >::class_info ( const OPT &  o)
inline

Member Function Documentation

◆ get_parent()

template<class OPT >
class_info * GiNaC::class_info< OPT >::get_parent ( ) const
inline

◆ find()

template<class OPT >
const class_info< OPT > * GiNaC::class_info< OPT >::find ( const std::string &  class_name)
static

◆ dump_hierarchy()

template<class OPT >
void GiNaC::class_info< OPT >::dump_hierarchy ( bool  verbose = false)
static

Dump class hierarchy to std::cout.

Definition at line 148 of file class_info.h.

References GiNaC::class_info< OPT >::get_parent(), GiNaC::class_info< OPT >::next, and GiNaC::tree().

◆ dump_tree()

template<class OPT >
void GiNaC::class_info< OPT >::dump_tree ( tree_node n,
const std::string &  prefix,
bool  verbose 
)
staticprivate

Definition at line 111 of file class_info.h.

References n.

◆ identify_parents()

template<class OPT >
void GiNaC::class_info< OPT >::identify_parents
staticprivate

Definition at line 177 of file class_info.h.

References GiNaC::class_info< OPT >::next.

Referenced by GiNaC::class_info< OPT >::get_parent().

Member Data Documentation

◆ options

template<class OPT >
OPT GiNaC::class_info< OPT >::options

◆ first

template<class OPT >
class_info< OPT > * GiNaC::class_info< OPT >::first = nullptr
staticprivate

Definition at line 76 of file class_info.h.

Referenced by GiNaC::class_info< OPT >::class_info().

◆ next

template<class OPT >
class_info* GiNaC::class_info< OPT >::next
private

◆ parent

template<class OPT >
class_info* GiNaC::class_info< OPT >::parent
mutableprivate

Definition at line 78 of file class_info.h.

Referenced by GiNaC::class_info< OPT >::get_parent().

◆ parents_identified

template<class OPT >
bool GiNaC::class_info< OPT >::parents_identified = false
staticprivate

Definition at line 80 of file class_info.h.

Referenced by GiNaC::class_info< OPT >::class_info().


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.