SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::EnvironmentRef Struct Reference

Semi-safe reference for Environment.

Inheritance diagram for SDL::EnvironmentRef:
Inheritance graph
[legend]
Collaboration diagram for SDL::EnvironmentRef:
Collaboration graph
[legend]

Public Member Functions

 EnvironmentRef (EnvironmentParam resource)
 Constructs from EnvironmentParam. More...
 
 EnvironmentRef (const EnvironmentRef &other)
 Copy constructor.
 
 ~EnvironmentRef ()
 Destructor.
 
- Public Member Functions inherited from SDL::Environment
constexpr Environment ()=default
 Default ctor.
 
constexpr Environment (const EnvironmentRaw resource)
 Constructs from EnvironmentParam. More...
 
constexpr Environment (const Environment &other)=delete
 Copy constructor.
 
constexpr Environment (Environment &&other)
 Move constructor.
 
constexpr Environment (const EnvironmentRef &other)=delete
 
constexpr Environment (EnvironmentRef &&other)=delete
 
 Environment (bool populated)
 Create a set of environment variables. More...
 
 ~Environment ()
 Destructor.
 
Environmentoperator= (Environment other)
 Assignment operator.
 
constexpr EnvironmentRaw get () const
 Retrieves underlying EnvironmentRaw.
 
constexpr EnvironmentRaw release ()
 Retrieves underlying EnvironmentRaw and clear this.
 
constexpr auto operator<=> (const Environment &other) const =default
 Comparison.
 
constexpr bool operator== (std::nullptr_t _) const
 Comparison.
 
constexpr operator bool () const
 Converts to bool.
 
constexpr operator EnvironmentParam () const
 Converts to EnvironmentParam.
 
void Destroy ()
 Destroy a set of environment variables. More...
 
const char * GetVariable (StringParam name)
 Get the value of a variable in the environment. More...
 
OwnArray< char * > GetVariables ()
 Get all variables in the environment. More...
 
Uint64 GetVariableCount ()
 Get the Variables count. More...
 
void SetVariable (StringParam name, StringParam value, bool overwrite)
 Set the value of a variable in the environment. More...
 
void UnsetVariable (StringParam name)
 Clear a variable from the environment. More...
 

Constructor & Destructor Documentation

◆ EnvironmentRef()

SDL::EnvironmentRef::EnvironmentRef ( EnvironmentParam  resource)
inline
Parameters
resourcea EnvironmentRaw or Environment.

This does not takes ownership!


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