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

#include <ScriptUtils.h>

Public Member Functions

 CReadonlyScriptDictView (const std::map< std::string, T > &map)
 
bool Exists (const std::string &key) const
 
bool IsEmpty () const
 
AngelScript::asUINT GetSize () const
 
OpIndex (const std::string &key) const
 
AngelScript::CScriptArray * GetKeys () const
 
void AddRef ()
 
void Release ()
 

Static Public Member Functions

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

Private Attributes

const std::map< std::string, T > & m_map
 
int m_refcount
 

Detailed Description

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

Definition at line 151 of file ScriptUtils.h.

Constructor & Destructor Documentation

◆ CReadonlyScriptDictView()

template<typename T >
RoR::CReadonlyScriptDictView< T >::CReadonlyScriptDictView ( const std::map< std::string, T > &  map)
inline

Definition at line 155 of file ScriptUtils.h.

Member Function Documentation

◆ AddRef()

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

Definition at line 221 of file ScriptUtils.h.

+ Here is the caller graph for this function:

◆ Exists()

template<typename T >
bool RoR::CReadonlyScriptDictView< T >::Exists ( const std::string &  key) const
inline

Definition at line 157 of file ScriptUtils.h.

+ Here is the caller graph for this function:

◆ GetKeys()

template<typename T >
AngelScript::CScriptArray* RoR::CReadonlyScriptDictView< T >::GetKeys ( ) const
inline

Definition at line 184 of file ScriptUtils.h.

+ Here is the caller graph for this function:

◆ GetSize()

template<typename T >
AngelScript::asUINT RoR::CReadonlyScriptDictView< T >::GetSize ( ) const
inline

Definition at line 170 of file ScriptUtils.h.

+ Here is the caller graph for this function:

◆ IsEmpty()

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

Definition at line 162 of file ScriptUtils.h.

+ Here is the caller graph for this function:

◆ OpIndex()

template<typename T >
T RoR::CReadonlyScriptDictView< T >::OpIndex ( const std::string &  key) const
inline

Definition at line 175 of file ScriptUtils.h.

+ Here is the caller graph for this function:

◆ RegisterReadonlyScriptDictView()

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

Definition at line 198 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::CReadonlyScriptDictView< T >::Release ( )
inline

Definition at line 222 of file ScriptUtils.h.

+ Here is the caller graph for this function:

Field Documentation

◆ m_map

template<typename T >
const std::map<std::string, T>& RoR::CReadonlyScriptDictView< T >::m_map
private

Definition at line 224 of file ScriptUtils.h.

◆ m_refcount

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

Definition at line 225 of file ScriptUtils.h.


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