#include <AccumulationVecId.h>
Proxy class for accessing elements within an imaginary container that represents the cumulative sum of multiple other containers. Each individual container is represented by a VecId. The class maintains a list of VecIdDeriv objects, which defines the containers contributing to the final cumulative sum. This class provides a simplified interface for accessing elements within the cumulative container. It allows retrieving specific elements using the overloaded subscript operator (operator[]). When accessing an element at a particular index, the class delegates the retrieval to the appropriate container represented by the associated VecIdDeriv. In addition to element retrieval, the class supports dynamic management of the contributing containers. It offers functions to add and remove VecId objects from the list of containers that contribute to the cumulative sum.
More...
template<class TDataTypes, VecType vtype, VecAccess vaccess>
struct sofa::core::AccumulationVecId< TDataTypes, vtype, vaccess >
Proxy class for accessing elements within an imaginary container that represents the cumulative sum of multiple other containers. Each individual container is represented by a VecId. The class maintains a list of VecIdDeriv objects, which defines the containers contributing to the final cumulative sum. This class provides a simplified interface for accessing elements within the cumulative container. It allows retrieving specific elements using the overloaded subscript operator (operator[]). When accessing an element at a particular index, the class delegates the retrieval to the appropriate container represented by the associated VecIdDeriv. In addition to element retrieval, the class supports dynamic management of the contributing containers. It offers functions to add and remove VecId objects from the list of containers that contribute to the cumulative sum.
- Template Parameters
-
TDataTypes | Type of DOFs stored in the State |
◆ AccumulationVecId() [1/2]
template<class TDataTypes , VecType vtype, VecAccess vaccess>
◆ AccumulationVecId() [2/2]
template<class TDataTypes , VecType vtype, VecAccess vaccess>
◆ addToContributingVecIds()
template<class TDataTypes , VecType vtype, VecAccess vaccess>
The provided VecDerivId container will contribute in the cumulative sum.
◆ operator[]()
template<class TDataTypes , VecType vtype, VecAccess vaccess>
◆ removeFromContributingVecIds()
template<class TDataTypes , VecType vtype, VecAccess vaccess>