Ignore:
Timestamp:
Oct 28, 2014, 12:17:38 PM (5 years ago)
Author:
nmedfort
Message:

Implemented slab allocator based on the original Parabix StringPool?; intergrated it with RE and Pablo AST nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_cc.h

    r4255 r4272  
    109109
    110110protected:
    111 
     111    friend CC * makeCC();
     112    friend CC * makeCC(const CodePointType codepoint);
     113    friend CC * makeCC(const CodePointType lo, const CodePointType hi);
     114    friend CC * makeCC(const CC * cc1, const CC * cc2);
     115    void* operator new (std::size_t size) noexcept {
     116        return mAllocator.allocate(size);
     117    }
    112118    inline CC()
    113119    : RE(ClassTypeId::CC) {
     
    123129        insert_range(lo_codepoint, hi_codepoint);
    124130    }
    125 
    126131    CC(const CC * cc1, const CC * cc2);
    127 
    128     friend CC * makeCC();
    129     friend CC * makeCC(const CodePointType codepoint);
    130     friend CC * makeCC(const CodePointType lo, const CodePointType hi);
    131     friend CC * makeCC(const CC * cc1, const CC * cc2);
    132 
    133132private:   
    134133    CharSetVector mSparseCharSet;
Note: See TracChangeset for help on using the changeset viewer.