Ignore:
Timestamp:
Oct 5, 2014, 1:42:07 PM (5 years ago)
Author:
nmedfort
Message:

Created internal 'string pool' for Call, CharClass?, Var and Assign pablo classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/ps_assign.h

    r4211 r4213  
    88#define PS_SETMARKER_H
    99
    10 #include "pe_pabloe.h"
    11 #include <string>
     10#include <pablo/pe_pabloe.h>
     11#include <pablo/pe_string.h>
    1212
    1313namespace pablo {
    1414
     15class Var;
     16
    1517class Assign : public PabloE {
    16     friend Assign * makeAssign(const std::string, PabloE *);
     18    friend Assign * makeAssign(const String *, PabloE *);
     19    friend Var * makeVar(const Assign *);
    1720public:
    1821    static inline bool classof(const PabloE * e) {
     
    2730
    2831    inline const std::string & getName() const {
    29         return mName;
     32        return *mName;
    3033    }
    3134
     
    3437    }
    3538protected:
    36     Assign(const std::string name, PabloE * expr)
     39    Assign(const String * name, PabloE * expr)
    3740    : PabloE(ClassTypeId::Assign)
    3841    , mName(name)
     
    4245    }
    4346private:
    44     const std::string   mName;
    45     PabloE * const      mExpr;
     47    const String * const    mName;
     48    PabloE * const          mExpr;
    4649};
    4750
    48 inline Assign * makeAssign(const std::string marker, PabloE * expr) {
     51inline Assign * makeAssign(const String * marker, PabloE * expr) {
    4952    return new Assign(marker, expr);
    5053}
Note: See TracChangeset for help on using the changeset viewer.