FixedSizeArray< T, N > Class Template Reference

#include <nodesystem.h>

Public Types

using Iterator = BaseIterator< FixedSizeArray, false >
 
using ConstIterator = BaseIterator< const FixedSizeArray, false >
 

Public Member Functions

Block< const T > ToBlock () const
 
Block< T > ToBlock ()
 
 operator Block< const T > () const
 
 operator Block< T > ()
 
 operator StridedBlock< const T > () const
 
 operator StridedBlock< T > ()
 
const T & operator[] (Int index) const
 
T & operator[] (Int index)
 
Int GetCount () const
 
MAXON_ATTRIBUTE_FORCE_INLINE ConstIterator Begin () const
 
MAXON_ATTRIBUTE_FORCE_INLINE Iterator Begin ()
 
MAXON_ATTRIBUTE_FORCE_INLINE ConstIterator End () const
 
MAXON_ATTRIBUTE_FORCE_INLINE Iterator End ()
 

Private Attributes

_elements [N]
 

Member Typedef Documentation

◆ Iterator

◆ ConstIterator

using ConstIterator = BaseIterator<const FixedSizeArray, false>

Member Function Documentation

◆ ToBlock() [1/2]

Block<const T> ToBlock ( ) const

Returns a Block<const T> which represents the elements of the array.

Returns
The content of this array as a block.

◆ ToBlock() [2/2]

Block<T> ToBlock ( )

Returns a Block<T> which represents the elements of the array.

Returns
The content of this array as a block.

◆ operator Block< const T >()

operator Block< const T > ( ) const

Converts this FixedSizeArray to a Block<const T> which represents the elements of the array.

Returns
The content of this array as a block.

◆ operator Block< T >()

operator Block< T > ( )

Converts this FixedSizeArray to a Block<T> which represents the elements of the array.

Returns
The content of this array as a block.

◆ operator StridedBlock< const T >()

operator StridedBlock< const T > ( ) const

Converts this FixedSizeArray to a StridedBlock<const T> which represents the elements of the array. The block will have the natural stride of T.

Returns
The content of this array as a strided block.

◆ operator StridedBlock< T >()

operator StridedBlock< T > ( )

Converts this FixedSizeArray to a StridedBlock<T> which represents the elements of the array. The block will have the natural stride of T.

Returns
The content of this array as a strided block.

◆ operator[]() [1/2]

const T& operator[] ( Int  index) const

◆ operator[]() [2/2]

T& operator[] ( Int  index)

◆ GetCount()

Int GetCount ( ) const

◆ Begin() [1/2]

◆ Begin() [2/2]

◆ End() [1/2]

◆ End() [2/2]

Member Data Documentation

◆ _elements

T _elements[N]
private