5 #ifndef __pinocchio_container_aligned_vector_hpp__ 6 #define __pinocchio_container_aligned_vector_hpp__ 9 #include <Eigen/StdVector> 11 #define PINOCCHIO_ALIGNED_STD_VECTOR(Type) \ 12 ::pinocchio::container::aligned_vector<Type> 28 typedef ::std::vector<T, Eigen::aligned_allocator<T> >
vector_base;
35 typedef typename vector_base::iterator
iterator;
38 template<
typename InputIterator>
40 : vector_base(first, last,
a) {}
43 : vector_base(num, val) {}
46 { vector_base::operator=(x);
return *
this; }
48 vector_base &
base() {
return *
static_cast<vector_base*
>(
this); }
49 const vector_base &
base()
const {
return *
static_cast<const vector_base*
>(
this); }
63 #endif // ifndef __pinocchio_container_aligned_vector_hpp__ ::std::vector< T, Eigen::aligned_allocator< T > > vector_base
vector_base::size_type size_type
aligned_vector(InputIterator first, InputIterator last, const allocator_type &a=allocator_type())
Specialization of an std::vector with an aligned allocator. This specialization might be used when th...
aligned_vector(iterator start, iterator end)
const vector_base & const_vector_base_ref
vector_base & vector_base_ref
vector_base::iterator iterator
const vector_base & base() const
bool operator==(const aligned_vector< T > &lhs, const aligned_vector< T > &rhs)
Main pinocchio namespace.
aligned_vector(const aligned_vector &c)
aligned_vector(const allocator_type &a=allocator_type())
aligned_vector(size_type num, const value_type &val=value_type())
vector_base::allocator_type allocator_type
aligned_vector & operator=(const aligned_vector &x)