Quantum 3 3.1.0

Classes | Public Member Functions | List of all members
Quantum.ComponentBlockIteratorReadOnly< T > Struct Template Reference

Read-only component block iterator: unlike ComponentBlockIterator<T>, the visited blocks are not copy-on-write copied, at the expense of only allowing read-only access to the components. More...

Classes

struct  Enumerator
 ComponentBlockIteratorReadOnly enumerator object. More...
 

Public Member Functions

Enumerator GetEnumerator ()
 Returns an enumerator that iterates through a collection of components. More...
 

Detailed Description

Read-only component block iterator: unlike ComponentBlockIterator<T>, the visited blocks are not copy-on-write copied, at the expense of only allowing read-only access to the components.

Template Parameters
TComponent type to iterate over

Component values written through other frame APIs during the iteration may not be visible through references obtained from the iterator.

Type Constraints
T :unmanaged 
T :IComponent 

Member Function Documentation

◆ GetEnumerator()

Enumerator Quantum.ComponentBlockIteratorReadOnly< T >.GetEnumerator ( )
inline

Returns an enumerator that iterates through a collection of components.

Returns
An Enumerator object that can be used to iterate through the collection.