30 #ifndef TEST_ROSCP_SERIALIZATION_HELPERS_H 31 #define TEST_ROSCP_SERIALIZATION_HELPERS_H 33 #include <boost/shared_array.hpp> 45 uint32_t len = ser::serializationLength(ser_val);
48 ser::serialize(ostream, ser_val);
50 ser::deserialize(istream, deser_val);
109 const_pointer
address(const_reference r)
const 115 return ~size_type(0);
120 return reinterpret_cast<pointer
> (malloc(n *
sizeof(T)));
138 template<
class T1,
class T2>
144 template<
class T1,
class T2>
152 #endif // TEST_ROSCP_SERIALIZATION_HELPERS_H
size_type max_size() const
bool operator!=(const Allocator< T1 > &, const Allocator< T2 > &)
Allocator(const Allocator< U > &u)
ptrdiff_t difference_type
void construct(pointer p, const_reference val)
bool operator==(const Allocator< T1 > &, const Allocator< T2 > &)
void deallocate(pointer p, size_type n)
const T & const_reference
pointer address(reference r) const
Array serializeAndDeserialize(const T &ser_val, T &deser_val)
pointer allocate(size_type n, Allocator< void >::const_pointer hint=0)
boost::shared_array< uint8_t > Array
const_pointer address(const_reference r) const
const void * const_pointer