8 #ifndef VECTOR_PROP_COPY_HPP_
9 #define VECTOR_PROP_COPY_HPP_
11 #include "for_each_ref.hpp"
12 #include <boost/mpl/range_c.hpp>
13 #include <boost/fusion/include/size.hpp>
26 template<
typename v_src,
typename v_dst,
int... prp>
53 typedef typename boost::mpl::at<typename v_dst::type,typename boost::mpl::int_<T::value>>::type ctype;
55 meta_copy<ctype>(src.template get<boost::mpl::at<v_prp,boost::mpl::int_<T::value>>::type::value>(),dst.template get<T::value>());
71 template<
typename v_src,
typename v_dst,
int... prp>
98 typedef typename boost::mpl::at<typename v_dst::type,typename boost::mpl::int_<T::value>>::type ctype;
100 meta_copy<ctype>(boost::fusion::at_c<boost::mpl::at<v_prp,boost::mpl::int_<T::value>>::type::value>(src.data),boost::fusion::at_c<T::value>(dst.data));
115 template<
typename v_src,
typename v_dst,
int type_copy,
int... prp>
120 std::cerr <<
"Error object_copy: " << __FILE__ <<
" " << __LINE__ <<
"\n";
133 template<
typename v_src,
typename v_dst,
int... prp>
139 boost::mpl::for_each_ref< boost::mpl::range_c<int,0,v_dst::max_prop> >(obj);
145 boost::mpl::for_each_ref< boost::mpl::range_c<int,0,v_dst::max_prop> >(obj);
163 template<
typename v_src,
typename v_dst,
int... prp>
169 boost::mpl::for_each_ref< boost::mpl::range_c<int,0,v_dst::max_prop> >(obj);
175 boost::mpl::for_each_ref< boost::mpl::range_c<int,0,v_dst::max_prop> >(obj);
object_si_d_f(const v_src &src, v_dst &dst)
Constructor.
void operator()(T &t)
It call the functor for each member.
void operator()(T &t)
It call the functor for each member.
this class is a functor for "for_each" algorithm
this class is a functor for "for_each" algorithm
It copy the properties from one object to another.
object_si_d_e(const v_src &src, v_dst &dst)
Constructor.