Wildmeshing Toolkit
|
#include <AttributeFlatCache.hpp>
Public Types | |
using | Data = AttributeCacheData< T > |
using | MapResult = internal::MapResult< T > |
using | ConstMapResult = internal::ConstMapResult< T > |
Public Member Functions | |
AttributeFlatCache () | |
~AttributeFlatCache () | |
AttributeFlatCache (const AttributeFlatCache &)=delete | |
AttributeFlatCache & | operator= (const AttributeFlatCache &)=delete |
AttributeFlatCache (AttributeFlatCache &&)=default | |
AttributeFlatCache & | operator= (AttributeFlatCache &&)=default |
template<typename Derived > | |
void | try_caching (int64_t index, const Eigen::MatrixBase< Derived > &value) |
void | try_caching (int64_t index, const T &value) |
const T * | get_value (int64_t index, size_t dim) const |
void | clear () |
size_t | size () const |
void | apply_to (Attribute< T > &attribute) const |
void | apply_to (AttributeFlatCache< T > &other) const |
void | apply_to (const Attribute< T > &attribute, std::vector< T > &other) const |
const std::vector< T > & | buffer () const |
const std::vector< std::pair< size_t, size_t > > & | indices () const |
Protected Attributes | |
std::vector< T > | m_buffer |
std::vector< std::pair< size_t, size_t > > | m_indices |
Definition at line 16 of file AttributeFlatCache.hpp.
using wmtk::attribute::internal::AttributeFlatCache< T >::ConstMapResult = internal::ConstMapResult<T> |
Definition at line 22 of file AttributeFlatCache.hpp.
using wmtk::attribute::internal::AttributeFlatCache< T >::Data = AttributeCacheData<T> |
Definition at line 19 of file AttributeFlatCache.hpp.
using wmtk::attribute::internal::AttributeFlatCache< T >::MapResult = internal::MapResult<T> |
Definition at line 21 of file AttributeFlatCache.hpp.
|
inline |
Definition at line 10 of file AttributeFlatCache.hxx.
|
inlinedefault |
|
delete |
|
default |
|
inline |
Definition at line 59 of file AttributeFlatCache.hxx.
References wmtk::attribute::Attribute< T >::const_vector_attribute_from_start(), and wmtk::attribute::Attribute< T >::vector_attribute().
Referenced by wmtk::attribute::AttributeScope< T >::apply().
|
inline |
Definition at line 69 of file AttributeFlatCache.hxx.
References wmtk::attribute::internal::AttributeFlatCache< T >::m_buffer, and wmtk::attribute::internal::AttributeFlatCache< T >::m_indices.
|
inline |
Definition at line 84 of file AttributeFlatCache.hxx.
References wmtk::attribute::Attribute< T >::const_vector_attribute_from_start(), and wmtk::attribute::Attribute< T >::vector_attribute().
|
inline |
Definition at line 49 of file AttributeFlatCache.hpp.
References wmtk::attribute::internal::AttributeFlatCache< T >::m_buffer.
|
inline |
Definition at line 19 of file AttributeFlatCache.hxx.
|
inline |
Definition at line 96 of file AttributeFlatCache.hxx.
|
inline |
Definition at line 50 of file AttributeFlatCache.hpp.
References wmtk::attribute::internal::AttributeFlatCache< T >::m_indices.
|
default |
|
delete |
|
inline |
Definition at line 41 of file AttributeFlatCache.hpp.
References wmtk::attribute::internal::AttributeFlatCache< T >::m_indices.
|
inline |
Definition at line 28 of file AttributeFlatCache.hxx.
|
inline |
Definition at line 49 of file AttributeFlatCache.hxx.
|
protected |
Definition at line 53 of file AttributeFlatCache.hpp.
Referenced by wmtk::attribute::internal::AttributeFlatCache< T >::apply_to(), and wmtk::attribute::internal::AttributeFlatCache< T >::buffer().
|
protected |
Definition at line 54 of file AttributeFlatCache.hpp.
Referenced by wmtk::attribute::internal::AttributeFlatCache< T >::apply_to(), wmtk::attribute::internal::AttributeFlatCache< T >::indices(), and wmtk::attribute::internal::AttributeFlatCache< T >::size().