blob: de04b1955e27cffa4e6a10922082ebd45c80d751 [file] [log] [blame]
Yingdi Yu5e974202014-01-29 16:59:06 -08001/* -*- 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
15namespace ndn
16{
17
18class RegexBackrefMatcher : public RegexMatcher
19{
20public:
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
31protected:
32 virtual void
33 compile();
34
35private:
36 int m_refNum;
37};
38
39}//ndn
40
41#endif
42
43