2 #include <mof/stream/Reference.hpp>
3 #include <mof/stream/Offset.hpp>
4 #include <mof/stream/TypeStream.hpp>
11 class ReferenceWrapper
15 typename Reference<T>::Handler makeRef(const typename Manipulator<T>::Handler& body)
17 m_list.push_back(makeReferenceHandler(body));
21 typename Reference<T>::Handler makeRef(const T& body)
23 m_list.push_back(makeReferenceHandler<T>(makeConstantHandler(body)));
28 void replace(int index , const typename Manipulator<T>::Handler& body)
30 m_list[index]->replace(body);
31 //m_list[index]->replace(makeOffsetHandler(body , -1 * (int)m_stream.getCurrentFrameNumber()));
34 void replace(int index , const T& body)
36 m_list[index]->replace(makeConstantHandler(body));
37 //m_list[index]->replace(makeOffsetHandler(makeConstantHandler(body) , -1 * (int)m_stream.getCurrentFrameNumber()));
40 template<typename T, typename K>
41 void replace(int index , const TypeStream<T, K>& stream , const typename Manipulator<T>::Handler& body)
43 m_list[index]->replace(makeOffsetHandler<T>(body , -1 * stream.getCurrentFrameNumber()));
47 typename Reference<T>::Handler getRef(int index) const
53 std::vector<typename Reference<T>::Handler> m_list;