VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
vis::Slice< T > Class Template Reference

#include <util/slice.h>

Public Member Functions

const T & operator[] (std::size_t idx) const
std::size_t size () const
 Slice (const std::vector< T > &vec, const SliceDirection dir)
 Slice (const T *data, const std::size_t length, const SliceDirection dir)

Detailed Description

template<typename T>
class vis::Slice< T >

Definition at line 19 of file slice.h.

Constructor & Destructor Documentation

◆ Slice() [1/2]

template<typename T>
vis::Slice< T >::Slice ( const std::vector< T > & vec,
const SliceDirection dir )
inline

Definition at line 21 of file slice.h.

References size().

◆ Slice() [2/2]

template<typename T>
vis::Slice< T >::Slice ( const T * data,
const std::size_t length,
const SliceDirection dir )
inline

Definition at line 24 of file slice.h.

Member Function Documentation

◆ operator[]()

template<typename T>
const T & vis::Slice< T >::operator[] ( std::size_t idx) const
inline

Definition at line 31 of file slice.h.

References vis::Forward.

◆ size()

template<typename T>
std::size_t vis::Slice< T >::size ( ) const
inlinenodiscard

Definition at line 27 of file slice.h.

Referenced by Slice().


The documentation for this class was generated from the following file: