Ignore:
Timestamp:
Nov 7, 2018, 8:15:20 PM (9 months ago)
Author:
cameron
Message:

Restructuring step: liminate RE:::Vector

File:
1 edited

Legend:

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

    r6138 r6195  
    99
    1010#include <string>
     11#include <util/slab_allocator.h>
     12#include <vector>
    1113#include <re/re_cc.h>
    1214#include <re/re_re.h>
     
    1618namespace re {
    1719
    18 class Seq : public Vector {
     20class Seq : public RE, public std::vector<RE*, ProxyAllocator<RE *>> {
    1921public:
    2022    static inline bool classof(const RE * re) {
     
    2830    friend Seq * makeSeq();
    2931    template<typename iterator> friend RE * makeSeq(const iterator, const iterator);
    30     Seq()
    31     : Vector(ClassTypeId::Seq) {
    32 
    33     }
     32    Seq() : RE(ClassTypeId::Seq), std::vector<RE*, ProxyAllocator<RE *>>(mAllocator) {}
    3433    Seq(iterator begin, iterator end)
    35     : Vector(ClassTypeId::Seq, begin, end) {
    36 
    37     }
     34    : RE(ClassTypeId::Seq), std::vector<RE*, ProxyAllocator<RE *>>(begin, end, mAllocator) { }
    3835};
    3936
Note: See TracChangeset for help on using the changeset viewer.