24 #ifndef NDN_UTIL_REGEX_REGEX_BACKREF_MANAGER_HPP 25 #define NDN_UTIL_REGEX_REGEX_BACKREF_MANAGER_HPP 27 #include "../../common.hpp" 39 pushRef(
const shared_ptr<RegexMatcher>& matcher);
47 shared_ptr<RegexMatcher>
51 std::vector<weak_ptr<RegexMatcher>> m_backrefs;
58 size_t last = m_backrefs.size();
59 m_backrefs.push_back(matcher);
67 m_backrefs.pop_back();
73 return m_backrefs.size();
76 inline shared_ptr<RegexMatcher>
79 auto backref = m_backrefs[i].lock();
80 BOOST_ASSERT(backref !=
nullptr);
86 #endif // NDN_UTIL_REGEX_REGEX_BACKREF_MANAGER_HPP Copyright (c) 2013-2017 Regents of the University of California.
shared_ptr< RegexMatcher > getBackref(size_t i) const
size_t pushRef(const shared_ptr< RegexMatcher > &matcher)