10 #ifndef IWORKCONTAINERCONTEXT_H_INCLUDED 11 #define IWORKCONTAINERCONTEXT_H_INCLUDED 16 #include <boost/optional.hpp> 25 template<
typename Type,
class NestedParser,
template<
typename T,
class C>
class Collector,
unsigned Id,
unsigned RefId = 0>
28 typedef std::unordered_map<ID_t, Type>
Dict_t;
57 else if ((RefId != 0) && (name == RefId))
75 const typename Dict_t::const_iterator it =
m_dict->find(
get(
m_ref));
91 #endif // IWORKCONTAINERCONTEXT_H_INCLUDED Definition: IWORKBezierElement.cpp:18
Collector< Type, std::deque< Type > > m_collector
Definition: IWORKContainerContext.h:86
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
std::deque< Type > & m_elements
Definition: IWORKContainerContext.h:85
Definition: KEY1Token.h:49
std::unordered_map< ID_t, Type > Dict_t
Definition: IWORKContainerContext.h:28
IWORKXMLContextPtr_t element(const int name) override
Definition: IWORKContainerContext.h:48
Dict_t *const m_dict
Definition: IWORKContainerContext.h:83
IWORKContainerContext(IWORKXMLParserState &state, std::deque< Type > &elements)
Definition: IWORKContainerContext.h:31
State & getState()
Definition: IWORKXMLContextBase.h:43
const char * name
Definition: IWORKToken.cpp:43
void handleRef()
Definition: IWORKContainerContext.h:71
Definition: IWORKContainerContext.h:26
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:30
boost::optional< ID_t > m_ref
Definition: IWORKContainerContext.h:84
IWORKContainerContext(IWORKXMLParserState &state, Dict_t &dict, std::deque< Type > &elements)
Definition: IWORKContainerContext.h:39
void endOfElement() override
Definition: IWORKContainerContext.h:62