12 template <
typename T,
int Dim>
33 template <
typename Derived>
34 void try_caching(int64_t index,
const Eigen::MatrixBase<Derived>& value);
38 const T*
get_value(int64_t index,
size_t dim)
const;
This class stores data of type T in a vector.
void try_caching(int64_t index, const Eigen::MatrixBase< Derived > &value)
void apply_to(Attribute< T > &attribute) const
std::vector< T > m_buffer
const std::vector< std::pair< size_t, size_t > > & indices() const
std::vector< std::pair< size_t, size_t > > m_indices
const std::vector< T > & buffer() const
AttributeFlatCache(AttributeFlatCache &&)=default
internal::ConstMapResult< T > ConstMapResult
AttributeFlatCache & operator=(AttributeFlatCache &&)=default
internal::MapResult< T > MapResult
AttributeFlatCache & operator=(const AttributeFlatCache &)=delete
const T * get_value(int64_t index, size_t dim) const
AttributeFlatCache(const AttributeFlatCache &)=delete
typename VectorResult< T, R >::MapType MapResult
the default map type used by attributes is a map of our vector type.
typename VectorResult< T, R >::ConstMapType ConstMapResult