39 #ifndef ORO_CARRAY_HPP_ 40 #define ORO_CARRAY_HPP_ 42 #include <boost/version.hpp> 43 #if BOOST_VERSION >= 106400 47 # include <boost/serialization/array_wrapper.hpp> 49 # include <boost/serialization/array.hpp> 51 #include <boost/array.hpp> 88 carray(value_type* t, std::size_t s) :
107 #if BOOST_VERSION >= 106100 108 carray( boost::serialization::array_wrapper<T>
const& orig)
110 carray( boost::serialization::array<T>
const& orig)
123 template<std::
size_t N>
133 void init(value_type* t, std::size_t s) {
161 template <
class OtherT>
164 for(std::size_t i = 0; i != orig.
count() && i !=
count(); ++i)
176 template <
class OtherT>
177 #if BOOST_VERSION >= 106100 178 const carray<T>&
operator=( boost::serialization::array_wrapper<OtherT>
const& orig ) {
182 if (orig.address() !=
m_t)
183 for(std::size_t i = 0; i != orig.count() && i !=
count(); ++i)
184 m_t[i] = orig.address()[i];
195 template <
class OtherT, std::
size_t OtherN>
197 if (orig.data() !=
m_t)
198 for(std::size_t i = 0; i != orig.size() && i !=
count(); ++i)
const carray< T > & operator=(boost::serialization::array< OtherT > const &orig)
carray(boost::serialization::array< T > const &orig)
void init(value_type *t, std::size_t s)
value_type * address() const
std::size_t count() const
std::size_t m_element_count
const carray< T > & operator=(const carray< OtherT > &orig)
carray(boost::array< T, N > &orig)
carray(value_type *t, std::size_t s)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
const carray< T > & operator=(const boost::array< OtherT, OtherN > &orig)