Project OpenGeode
class VariableAttribute
Read and write interface for boolean variable attribute storage. This class removes the custom storage use by the STL for std::vector of bool.
cpp
Inherits from ReadOnlyAttribute<_Bool>Inherits from ReadOnlyAttribute<_Bool>Functions
VariableAttribute
cpp
public void VariableAttribute(bool default_value, AttributeProperties properties, PassKey )public void VariableAttribute(bool default_value, AttributeProperties properties, PassKey )value
cpp
public const bool & value(index_t element)public const bool & value(index_t element)set_value
cpp
public void set_value(index_t element, bool value)public void set_value(index_t element, bool value)default_value
cpp
public bool default_value()public bool default_value()modify_value
cpp
public void modify_value(index_t element, Modifier && modifier)public void modify_value(index_t element, Modifier && modifier)size
cpp
public index_t size()public index_t size()compute_value
cpp
public void compute_value(index_t from_element, index_t to_element, PassKey )public void compute_value(index_t from_element, index_t to_element, PassKey )compute_value
cpp
public void compute_value(const AttributeLinearInterpolation & interpolation, index_t to_element, PassKey )public void compute_value(const AttributeLinearInterpolation & interpolation, index_t to_element, PassKey )VariableAttribute
cpp
protected void VariableAttribute(bool default_value, AttributeProperties properties)protected void VariableAttribute(bool default_value, AttributeProperties properties)VariableAttribute
cpp
protected void VariableAttribute()protected void VariableAttribute()serialize
cpp
protected void serialize(Archive & archive)protected void serialize(Archive & archive)resize
cpp
protected void resize(index_t size, PassKey )protected void resize(index_t size, PassKey )reserve
cpp
protected void reserve(index_t capacity, PassKey )protected void reserve(index_t capacity, PassKey )delete_elements
cpp
protected void delete_elements(const std::vector<bool> & to_delete, PassKey )protected void delete_elements(const std::vector<bool> & to_delete, PassKey )permute_elements
cpp
protected void permute_elements(Span permutation, PassKey )protected void permute_elements(Span permutation, PassKey )clone
cpp
protected shared_ptr clone(PassKey )protected shared_ptr clone(PassKey )copy
cpp
protected void copy(const AttributeBase & attribute, index_t nb_elements, PassKey )protected void copy(const AttributeBase & attribute, index_t nb_elements, PassKey )extract
cpp
protected shared_ptr extract(Span old2new, index_t nb_elements, PassKey )protected shared_ptr extract(Span old2new, index_t nb_elements, PassKey )extract
cpp
protected shared_ptr extract(const GenericMapping<index_t> & old2new_mapping, index_t nb_elements, PassKey )protected shared_ptr extract(const GenericMapping<index_t> & old2new_mapping, index_t nb_elements, PassKey )class VariableAttribute
Read and write interface for variable attribute storage
cpp
Inherits from ReadOnlyAttribute<T>Inherits from ReadOnlyAttribute<T>Functions
VariableAttribute
cpp
public void VariableAttribute<T>(T default_value, AttributeProperties properties, PassKey )public void VariableAttribute<T>(T default_value, AttributeProperties properties, PassKey )value
cpp
public const T & value(index_t element)public const T & value(index_t element)set_value
cpp
public void set_value(index_t element, T value)public void set_value(index_t element, T value)default_value
cpp
public const T & default_value()public const T & default_value()modify_value
cpp
public void modify_value(index_t element, Modifier && modifier)public void modify_value(index_t element, Modifier && modifier)size
cpp
public index_t size()public index_t size()compute_value
cpp
public void compute_value(index_t from_element, index_t to_element, PassKey )public void compute_value(index_t from_element, index_t to_element, PassKey )compute_value
cpp
public void compute_value(const AttributeLinearInterpolation & interpolation, index_t to_element, PassKey )public void compute_value(const AttributeLinearInterpolation & interpolation, index_t to_element, PassKey )VariableAttribute
cpp
protected void VariableAttribute<T>(T default_value, AttributeProperties properties)protected void VariableAttribute<T>(T default_value, AttributeProperties properties)VariableAttribute
cpp
protected void VariableAttribute<T>()protected void VariableAttribute<T>()serialize
cpp
protected void serialize(Archive & archive)protected void serialize(Archive & archive)resize
cpp
protected void resize(index_t size, PassKey )protected void resize(index_t size, PassKey )reserve
cpp
protected void reserve(index_t capacity, PassKey )protected void reserve(index_t capacity, PassKey )delete_elements
cpp
protected void delete_elements(const std::vector<bool> & to_delete, PassKey )protected void delete_elements(const std::vector<bool> & to_delete, PassKey )permute_elements
cpp
protected void permute_elements(Span permutation, PassKey )protected void permute_elements(Span permutation, PassKey )clone
cpp
protected shared_ptr clone(PassKey )protected shared_ptr clone(PassKey )copy
cpp
protected void copy(const AttributeBase & attribute, index_t nb_elements, PassKey )protected void copy(const AttributeBase & attribute, index_t nb_elements, PassKey )extract
cpp
protected shared_ptr extract(Span old2new, index_t nb_elements, PassKey )protected shared_ptr extract(Span old2new, index_t nb_elements, PassKey )extract
cpp
protected shared_ptr extract(const GenericMapping<index_t> & old2new_mapping, index_t nb_elements, PassKey )protected shared_ptr extract(const GenericMapping<index_t> & old2new_mapping, index_t nb_elements, PassKey )