Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes
RoR::CReadonlyScriptArrayView< T > Class Template Reference

Description

template<typename T>
class RoR::CReadonlyScriptArrayView< T >

Definition at line 252 of file ScriptUtils.h.

Public Member Functions

 CReadonlyScriptArrayView (const std::vector< T > &vec)
 
bool IsEmpty () const
 
unsigned GetSize () const
 
T OpIndex (unsigned pos)
 
void AddRef ()
 
void Release ()
 

Static Public Member Functions

static void RegisterReadonlyScriptArrayView (AngelScript::asIScriptEngine *engine, const char *decl, const char *value_decl)
 
static void RegisterReadonlyScriptArrayViewGeneric (AngelScript::asIScriptEngine *engine, const char *decl, const char *value_decl)
 

Private Attributes

const std::vector< T > & m_vec
 
int m_refcount
 

Constructor & Destructor Documentation

◆ CReadonlyScriptArrayView()

template<typename T >
RoR::CReadonlyScriptArrayView< T >::CReadonlyScriptArrayView ( const std::vector< T > &  vec)
inline

Definition at line 256 of file ScriptUtils.h.

Member Function Documentation

◆ AddRef()

template<typename T >
void RoR::CReadonlyScriptArrayView< T >::AddRef ( )
inline

Definition at line 302 of file ScriptUtils.h.

◆ GetSize()

template<typename T >
unsigned RoR::CReadonlyScriptArrayView< T >::GetSize ( ) const
inline

Definition at line 259 of file ScriptUtils.h.

◆ IsEmpty()

template<typename T >
bool RoR::CReadonlyScriptArrayView< T >::IsEmpty ( ) const
inline

Definition at line 258 of file ScriptUtils.h.

◆ OpIndex()

template<typename T >
T RoR::CReadonlyScriptArrayView< T >::OpIndex ( unsigned  pos)
inline

Definition at line 260 of file ScriptUtils.h.

◆ RegisterReadonlyScriptArrayView()

template<typename T >
static void RoR::CReadonlyScriptArrayView< T >::RegisterReadonlyScriptArrayView ( AngelScript::asIScriptEngine *  engine,
const char *  decl,
const char *  value_decl 
)
inlinestatic

Definition at line 262 of file ScriptUtils.h.

◆ RegisterReadonlyScriptArrayViewGeneric()

template<typename T >
static void RoR::CReadonlyScriptArrayView< T >::RegisterReadonlyScriptArrayViewGeneric ( AngelScript::asIScriptEngine *  engine,
const char *  decl,
const char *  value_decl 
)
inlinestatic

Definition at line 282 of file ScriptUtils.h.

◆ Release()

template<typename T >
void RoR::CReadonlyScriptArrayView< T >::Release ( )
inline

Definition at line 303 of file ScriptUtils.h.

Field Documentation

◆ m_refcount

template<typename T >
int RoR::CReadonlyScriptArrayView< T >::m_refcount
private

Definition at line 306 of file ScriptUtils.h.

◆ m_vec

template<typename T >
const std::vector<T>& RoR::CReadonlyScriptArrayView< T >::m_vec
private

Definition at line 305 of file ScriptUtils.h.


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