blob: ed17250435a8f28e280afebdfb8f662903a1c665 [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#include "regex-backref-manager.hpp"
9
10namespace ndn
11{
12
13RegexBackrefManager::~RegexBackrefManager()
14{ m_backRefs.clear(); }
15
16int
17RegexBackrefManager::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
25void
26RegexBackrefManager::popRef()
27{ m_backRefs.pop_back(); }
28
29}//ndn