Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Classes | Functions
desaxe::PRIVATE Namespace Reference

Classes

class  VarPtr
class  Patch
struct  Patch1
struct  Patch2

Functions

template<class ObjType >
VarPtr mkcell (ObjType *obj)
template<class ObjType >
void chkcell (const VarPtr &cell, std::vector< VarPtr > *stack=NULL)
void runPatches (Patch *&list, VarPtr link)
void deletePatches (std::map< Xml_string, Patch * > &patches)

Class Documentation

class desaxe::PRIVATE::VarPtr

Definition at line 36 of file digester.h.

Collaboration diagram for desaxe::PRIVATE::VarPtr:
Class Members
void * ptr
string type

Function Documentation

template<class ObjType >
void desaxe::PRIVATE::chkcell ( const VarPtr &  cell,
std::vector< VarPtr > *  stack = NULL 
) [inline]

Definition at line 57 of file digester.h.

       {
              ObjType* dummy = NULL;
              if( cell.type != typeid(dummy).name() )
              {
                     std::cerr << "requested type '" << typeid(dummy).name() << "' doesnt match cell type '" << cell.type << "'\n";
                     if (stack)
                     {
                            int i=0;
                            std::vector<VarPtr>::iterator it;
                            for (it = stack->begin(); it != stack->end(); ++it)
                            {
                                   std::cerr << i++ << "\t" << (*it).type << "\t" << (*it).ptr << "\n";
                            }
                     }
                     assert (false);
              }
       }
void desaxe::PRIVATE::deletePatches ( std::map< Xml_string, Patch * > &  patches) [inline]

Definition at line 311 of file digester.h.

       {
              std::map<Xml_string, Patch*>::iterator it;
              for (it = patches.begin(); it != patches.end(); ++it)
              {
                     Patch* list = it->second;
                     while (list)
                     {
                            Patch* nxt = list->next;
                            delete list;
                            list = nxt;
                     }
              }
              patches.clear();
       }

Here is the caller graph for this function:

template<class ObjType >
VarPtr desaxe::PRIVATE::mkcell ( ObjType *  obj) [inline]

Definition at line 46 of file digester.h.

       {
              VarPtr result;
              result.ptr = obj;//  result.ptr = const_cast<void*>(static_cast<const void*>(obj)); //??
              result.type = typeid(obj).name();
              return result;
       }

Here is the caller graph for this function:

void desaxe::PRIVATE::runPatches ( Patch *&  list,
VarPtr  link 
) [inline]

Definition at line 299 of file digester.h.

       {
              while (list)
              {
                     Patch* nxt = list->next;
                     list->run(link);
                     delete list;
                     list = nxt;
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function: