+const mp::filter::Base *mp::RouterChain::Pos::move(const char *route)
+{
+ if (it == m_p->m_filter_list.end())
+ return 0;
+ const mp::filter::Base *f = *it;
+ it++;
+ return f;
+}
+
+mp::RoutePos *mp::RouterChain::createpos() const
+{
+ mp::RouterChain::Pos *p = new mp::RouterChain::Pos;
+ p->it = m_p->m_filter_list.begin();
+ p->m_p = m_p.get();
+ return p;
+}
+
+mp::RoutePos *mp::RouterChain::Pos::clone()
+{
+ mp::RouterChain::Pos *p = new mp::RouterChain::Pos;
+ p->it = it;
+ p->m_p = m_p;
+ return p;
+}
+
+
+mp::RouterChain::Pos::~Pos()
+{
+}
+
+mp::RouterChain & mp::RouterChain::append(const filter::Base &filter)
+{
+ m_p->m_filter_list.push_back(&filter);
+ return *this;
+}