RigsofRods
Soft-body Physics Simulation
Public Member Functions | Static Public Member Functions | Private Attributes
RoR::CReadonlyScriptArrayView< T > Class Template Reference

#include <ScriptUtils.h>

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 229 of file ScriptUtils.h.

Constructor & Destructor Documentation

◆ CReadonlyScriptArrayView()

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

Definition at line 233 of file ScriptUtils.h.

Member Function Documentation

◆ AddRef()

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

Definition at line 260 of file ScriptUtils.h.

◆ GetSize()

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

Definition at line 236 of file ScriptUtils.h.

◆ IsEmpty()

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

Definition at line 235 of file ScriptUtils.h.

◆ OpIndex()

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

Definition at line 237 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 239 of file ScriptUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Release()

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

Definition at line 261 of file ScriptUtils.h.

Field Documentation

◆ m_refcount

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

Definition at line 264 of file ScriptUtils.h.

◆ m_vec

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

Definition at line 263 of file ScriptUtils.h.


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