Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::TypedArray< T > Class Template Reference

#include <typedarray.h>

Inheritance diagram for cil::TypedArray< T >:
cil::ArrayBuffer cil::Variant

Public Member Functions

 TypedArray ()
 
virtual ~TypedArray ()
 
const T & operator[] (int index) const
 
T & operator[] (int index)
 
void set (int size, T *data=nullptr, bool copy=true)
 
void clear ()
 
int size () const
 
T * data ()
 
const T * data () const
 
- Public Member Functions inherited from cil::ArrayBuffer
 ArrayBuffer ()
 
virtual ~ArrayBuffer ()
 
- Public Member Functions inherited from cil::Variant
 Variant ()
 
virtual ~Variant ()
 
const std::string & type () const
 

Protected Attributes

T * m_data
 
int m_size
 
- Protected Attributes inherited from cil::Variant
std::string m_type
 

Constructor & Destructor Documentation

◆ TypedArray()

template<typename T >
cil::TypedArray< T >::TypedArray ( )
inline

◆ ~TypedArray()

template<typename T >
virtual cil::TypedArray< T >::~TypedArray ( )
inlinevirtual

Member Function Documentation

◆ clear()

template<typename T >
void cil::TypedArray< T >::clear ( )
inline

◆ data() [1/2]

template<typename T >
T * cil::TypedArray< T >::data ( )
inline

◆ data() [2/2]

template<typename T >
const T * cil::TypedArray< T >::data ( ) const
inline

◆ operator[]() [1/2]

template<typename T >
T & cil::TypedArray< T >::operator[] ( int index)
inline

◆ operator[]() [2/2]

template<typename T >
const T & cil::TypedArray< T >::operator[] ( int index) const
inline

◆ set()

template<typename T >
void cil::TypedArray< T >::set ( int size,
T * data = nullptr,
bool copy = true )
inline

◆ size()

template<typename T >
int cil::TypedArray< T >::size ( ) const
inline

Member Data Documentation

◆ m_data

template<typename T >
T* cil::TypedArray< T >::m_data
protected

◆ m_size

template<typename T >
int cil::TypedArray< T >::m_size
protected