source: icGREP/icgrep-devel/icgrep/re_rep.cpp @ 4182

Last change on this file since 4182 was 4182, checked in by nmedfort, 5 years ago

RE Parser modification to use ParseFailure? exceptions; removed the list reversal within Alt and Seq constructors and adjusted the functions that relied on it occurring.

File size: 546 bytes
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#include "re_rep.h"
8
9Rep::Rep(RE* re, int lb, int ub)
10{
11    mRE = re;
12    mLB = lb;
13    mUB = ub;
14}
15
16Rep::~Rep()
17{
18    delete mRE;
19}
20
21RE* Rep::getRE() const
22{
23    return mRE;
24}
25
26int Rep::getLB() const
27{
28    return mLB;
29}
30
31void Rep::setLB(int lb)
32{
33    mLB = lb;
34}
35
36int Rep::getUB() const
37{
38    return mUB;
39}
40
41void Rep::setUB(int ub)
42{
43    mUB = ub;
44}
45
46
Note: See TracBrowser for help on using the repository browser.