SyFi  0.3
SyFi::SymbolMapBuilderVisitor Class Reference

List of all members.

Public Member Functions

 SymbolMapBuilderVisitor (GiNaC::exmap &em)
void visit (const symbol &s)

Public Attributes

GiNaC::exmap & symbolmap

Detailed Description

Definition at line 1108 of file ginac_tools.cpp.


Constructor & Destructor Documentation

Definition at line 1113 of file ginac_tools.cpp.

: symbolmap(em) {}

Member Function Documentation

void SyFi::SymbolMapBuilderVisitor::visit ( const symbol &  s) [inline]

Definition at line 1117 of file ginac_tools.cpp.

                {
                        GiNaC::exmap::iterator it = symbolmap.find(s);
                        if(it != symbolmap.end())
                        {
                                it->second++;
                        }
                        else
                        {
                                //GiNaC::exmap::value_type p(ex(s), ex(s));
                                //symbolmap.insert(p);
                                symbolmap[ex(s)] = ex(s);
                        }
                }

Member Data Documentation

Definition at line 1115 of file ginac_tools.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator