blob: 7604b4275b8c36c0cdbc1963f250dcb4f983ff06 [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_MANAGER_HPP
9#define NDN_REGEX_BACKREF_MANAGER_HPP
10
11#include <vector>
12#include "../../common.hpp"
13
14namespace ndn
15{
16
17class RegexMatcher;
18
19class RegexBackrefManager
20{
21public:
22 RegexBackrefManager(){}
23
24 virtual ~RegexBackrefManager();
25
26 int
27 pushRef(ptr_lib::shared_ptr<RegexMatcher> matcher);
28
29 void
30 popRef();
31
32 int
33 size()
34 { return m_backRefs.size(); }
35
36 ptr_lib::shared_ptr<RegexMatcher>
37 getBackRef(int i)
38 { return m_backRefs[i]; }
39
40private:
41 std::vector<ptr_lib::shared_ptr<RegexMatcher> > m_backRefs;
42};
43
44}//ndn
45
46#endif