Wildmeshing Toolkit
AttributeCacheData.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <Eigen/Core>
3 #include <cassert>
4 #include "MapTypes.hpp"
5 
7 template <typename T>
9 {
10 public:
11  template <int D>
14  template <typename Derived>
15  AttributeCacheData(const Eigen::MatrixBase<Derived>& a)
16  : data(a)
17  {}
18  // for WMTK_ONLY_CACHE_WRITES it's annoying to remove all the bool passed in, easiesr to just
19  // let it get elided
20  //
21  AttributeCacheData() = default;
22 
27  template <int D = Eigen::Dynamic>
29  template <int D = Eigen::Dynamic>
31 
33 };
34 } // namespace wmtk::attribute
35 #include "AttributeCacheData.hxx"
AttributeCacheData & operator=(const AttributeCacheData &)=default
typename internal::VectorResult< T, D > VectorD
AttributeCacheData & operator=(AttributeCacheData &&)=default
VectorD< D >::ConstMapType data_as_const_map() const
typename internal::VectorResult< T > Vector
AttributeCacheData(const AttributeCacheData &)=default
AttributeCacheData(AttributeCacheData &&)=default
AttributeCacheData(const Eigen::MatrixBase< Derived > &a)
Eigen::Matrix< T, R, 1, 0,(R==Eigen::Dynamic ? MAX_ATTR_SIZE :R), 1 > VectorResult
Underlying vector type used by attribute is dynamically sized but bounded.
Definition: MapTypes.hpp:15