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 165 of file ConVar.cpp.

References VoltMod::ReadFile().

◆ ~ConVarRawScope()

Definition at line 173 of file ConVar.cpp.

◆ ConVarRawScope() [2/3]

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

◆ ConVarRawScope() [3/3]

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

Definition at line 52 of file ConVar.hpp.

Member Function Documentation

◆ operator=() [1/2]

◆ operator=() [2/2]


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