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 | #include "regex-backref-manager.hpp" |
| 9 | |
| 10 | namespace ndn |
| 11 | { |
| 12 | |
| 13 | RegexBackrefManager::~RegexBackrefManager() |
| 14 | { m_backRefs.clear(); } |
| 15 | |
| 16 | int |
| 17 | RegexBackrefManager::pushRef(ptr_lib::shared_ptr<RegexMatcher> matcher) |
| 18 | { |
| 19 | int last = m_backRefs.size(); |
| 20 | m_backRefs.push_back(matcher); |
| 21 | |
| 22 | return last; |
| 23 | } |
| 24 | |
| 25 | void |
| 26 | RegexBackrefManager::popRef() |
| 27 | { m_backRefs.pop_back(); } |
| 28 | |
| 29 | }//ndn |