10 #ifndef IWORKPUSHCOLLECTOR_H_INCLUDED
11 #define IWORKPUSHCOLLECTOR_H_INCLUDED
17 #include <boost/optional.hpp>
24 template<
typename Type,
class Container = std::deque<Type> >
34 template<
class Context,
class State>
37 return std::make_shared<Context>(state,
m_value);
59 #endif // IWORKPUSHCOLLECTOR_H_INCLUDED
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
IWORKXMLContextPtr_t makeContext(State &state)
Definition: IWORKPushCollector.h:35
boost::optional< Type > m_value
Definition: IWORKPushCollector.h:54
bool pending() const
Definition: IWORKPushCollector.h:40
Container & m_collection
Definition: IWORKPushCollector.h:53
Definition: IWORKPushCollector.h:25
void push()
Definition: IWORKPushCollector.h:45
IWORKPushCollector(Container &collection)
Definition: IWORKPushCollector.h:28