ImFusion SDK 4.3
ElementwiseDataComponentData Class Reference

#include <ImFusion/Base/ElementwiseDataComponentData.h>

Class for augmenting Data classes with an ElementwiseDataComponentList. More...

+ Inheritance diagram for ElementwiseDataComponentData:

Detailed Description

Class for augmenting Data classes with an ElementwiseDataComponentList.

Make sure to include m_elementwiseComponents in all relevant operations, e.g. clone, add, remove, clear, etc.

Public Member Functions

ElementwiseDataComponentListelementwiseComponents ()
 Returns elementwise data component list.
 
const ElementwiseDataComponentListelementwiseComponents () const
 Returns elementwise data component list.
 
DataComponentListmutableComponents (int i)
 Returns the DataComponents associated to the element with that index, creating it if necessary.
 
const DataComponentListcomponents (int i) const
 Returns the DataComponents associated to the element with that index.
 

Protected Attributes

ElementwiseDataComponentList m_elementwiseComponents
 Encodes elementwise data components.
 

Member Function Documentation

◆ mutableComponents()

DataComponentList & mutableComponents ( int i)

Returns the DataComponents associated to the element with that index, creating it if necessary.

Note
The return value might be changed by the caller, which will invalidate the internal de-duplication scheme. Therefore, this function is more expensive than the const components() accessor as it may spawn internal copying.

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close