VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::ConVarRawScope< T > Class Template Reference

#include <ConVar.hpp>

Public Member Functions

 ConVarRawScope (ConVar< T > &cvar, const T &value)
 ~ConVarRawScope ()
 ConVarRawScope (const ConVarRawScope &)=delete
ConVarRawScope & operator= (const ConVarRawScope &)=delete
 ConVarRawScope (ConVarRawScope &&other) noexcept
ConVarRawScope & operator= (ConVarRawScope &&)=delete

Detailed Description

template<class T>
class VoltMod::ConVarRawScope< T >

Temporary raw convar value restored on destruction. The handle must outlive the scope.

Definition at line 42 of file ConVar.hpp.

Constructor & Destructor Documentation

◆ ConVarRawScope() [1/3]

template<class T>
requires RawConVarValue<T>
VoltMod::ConVarRawScope< T >::ConVarRawScope ( ConVar< T > & cvar,
const T & value )

Set now and restore the current value on destruction.

Definition at line 160 of file ConVar.cpp.

Referenced by ConVarRawScope(), ConVarRawScope(), operator=(), and operator=().

◆ ~ConVarRawScope()

template<class T>
VoltMod::ConVarRawScope< T >::~ConVarRawScope ( )

Definition at line 168 of file ConVar.cpp.

◆ ConVarRawScope() [2/3]

template<class T>
VoltMod::ConVarRawScope< T >::ConVarRawScope ( const ConVarRawScope< T > & )
delete

References ConVarRawScope().

◆ ConVarRawScope() [3/3]

template<class T>
VoltMod::ConVarRawScope< T >::ConVarRawScope ( ConVarRawScope< T > && other)
inlinenoexcept

Definition at line 52 of file ConVar.hpp.

References ConVarRawScope().

Member Function Documentation

◆ operator=() [1/2]

template<class T>
ConVarRawScope & VoltMod::ConVarRawScope< T >::operator= ( const ConVarRawScope< T > & )
delete

References ConVarRawScope().

◆ operator=() [2/2]

template<class T>
ConVarRawScope & VoltMod::ConVarRawScope< T >::operator= ( ConVarRawScope< T > && )
delete

References ConVarRawScope().


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