Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Classes | Public Types | Public Member Functions | Public Attributes
FunctionParser::Data Struct Reference
Collaboration diagram for FunctionParser::Data:
Collaboration graph
[legend]

List of all members.

Classes

struct  FuncPtrData

Public Types

typedef std::map< std::string,
unsigned > 
VarMap_t
typedef std::map< std::string,
double > 
ConstMap_t

Public Member Functions

 Data ()
 ~Data ()
 Data (const Data &)
Dataoperator= (const Data &)

Public Attributes

unsigned referenceCounter
int varAmount
bool useDegreeConversion
VarMap_t Variables
ConstMap_t Constants
VarMap_t FuncPtrNames
std::vector< FuncPtrDataFuncPtrs
VarMap_t FuncParserNames
std::vector< FunctionParser * > FuncParsers
unsigned * ByteCode
unsigned ByteCodeSize
double * Immed
unsigned ImmedSize
double * Stack
unsigned StackSize

Detailed Description

Definition at line 82 of file fparser.h.


Member Typedef Documentation

typedef std::map<std::string, double> FunctionParser::Data::ConstMap_t

Definition at line 92 of file fparser.h.

typedef std::map<std::string, unsigned> FunctionParser::Data::VarMap_t

Definition at line 89 of file fparser.h.


Constructor & Destructor Documentation

Definition at line 130 of file fparser.cpp.

Definition at line 137 of file fparser.cpp.

{
    if(ByteCode) { delete[] ByteCode; ByteCode=0; }
    if(Immed) { delete[] Immed; Immed=0; }
    if(Stack) { delete[] Stack; Stack=0; }
}
FunctionParser::Data::Data ( const Data cpy)

Definition at line 145 of file fparser.cpp.

                                       :
    varAmount(cpy.varAmount), useDegreeConversion(cpy.useDegreeConversion),
    Variables(cpy.Variables), Constants(cpy.Constants),
    FuncPtrNames(cpy.FuncPtrNames), FuncPtrs(cpy.FuncPtrs),
    FuncParserNames(cpy.FuncParserNames), FuncParsers(cpy.FuncParsers),
    ByteCode(0), ByteCodeSize(cpy.ByteCodeSize),
    Immed(0), ImmedSize(cpy.ImmedSize),
    Stack(0), StackSize(cpy.StackSize)
{
    if(ByteCodeSize) ByteCode = new unsigned[ByteCodeSize];
    if(ImmedSize) Immed = new double[ImmedSize];
    if(StackSize) Stack = new double[StackSize];

    for(unsigned i=0; i<ByteCodeSize; ++i) ByteCode[i] = cpy.ByteCode[i];
    for(unsigned i=0; i<ImmedSize; ++i) Immed[i] = cpy.Immed[i];

    // No need to copy the stack contents because it's obsolete outside Eval()
}

Member Function Documentation

Data& FunctionParser::Data::operator= ( const Data )

Member Data Documentation

Definition at line 106 of file fparser.h.

Definition at line 107 of file fparser.h.

Definition at line 93 of file fparser.h.

Definition at line 103 of file fparser.h.

Definition at line 104 of file fparser.h.

Definition at line 95 of file fparser.h.

Definition at line 101 of file fparser.h.

Definition at line 108 of file fparser.h.

Definition at line 109 of file fparser.h.

Definition at line 84 of file fparser.h.

Definition at line 110 of file fparser.h.

Definition at line 111 of file fparser.h.

Definition at line 87 of file fparser.h.

Definition at line 86 of file fparser.h.

Definition at line 90 of file fparser.h.


The documentation for this struct was generated from the following files: