Yingdi Yu | 5e97420 | 2014-01-29 16:59:06 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2013 Regents of the University of California. |
| 4 | * @author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 5 | * See COPYING for copyright and distribution information. |
| 6 | */ |
| 7 | |
| 8 | #ifndef NDN_REGEX_BACKREF_MATCHER_HPP |
| 9 | #define NDN_REGEX_BACKREF_MATCHER_HPP |
| 10 | |
| 11 | #include "regex-matcher.hpp" |
| 12 | |
| 13 | #include <boost/enable_shared_from_this.hpp> |
| 14 | |
| 15 | namespace ndn |
| 16 | { |
| 17 | |
| 18 | class RegexBackrefMatcher : public RegexMatcher |
| 19 | { |
| 20 | public: |
| 21 | RegexBackrefMatcher(const std::string expr, ptr_lib::shared_ptr<RegexBackrefManager> backRefManager); |
| 22 | |
| 23 | virtual ~RegexBackrefMatcher(){} |
| 24 | |
| 25 | void |
| 26 | lateCompile() |
| 27 | { |
| 28 | compile(); |
| 29 | } |
| 30 | |
| 31 | protected: |
| 32 | virtual void |
| 33 | compile(); |
| 34 | |
| 35 | private: |
| 36 | int m_refNum; |
| 37 | }; |
| 38 | |
| 39 | }//ndn |
| 40 | |
| 41 | #endif |
| 42 | |
| 43 | |