Open 3D Engine AzCore API Reference  22.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Static Public Member Functions | List of all members
AZ::EBusGlobalStoragePolicy< Context > Struct Template Reference

#include <Policies.h>

Static Public Member Functions

static Context * Get ()
 
static Context & GetOrCreate ()
 

Detailed Description

template<class Context>
struct AZ::EBusGlobalStoragePolicy< Context >

A choice of AZ::EBusTraits::StoragePolicy that specifies that EBus data is stored in a global static variable. With this policy, each module (DLL) has its own instance of the EBus.

Template Parameters
ContextA class that contains EBus data.

Member Function Documentation

◆ Get()

template<class Context >
static Context* AZ::EBusGlobalStoragePolicy< Context >::Get ( )
inlinestatic

Returns the EBus data.

Returns
A pointer to the EBus data.

◆ GetOrCreate()

template<class Context >
static Context& AZ::EBusGlobalStoragePolicy< Context >::GetOrCreate ( )
inlinestatic

Returns the EBus data.

Returns
A reference to the EBus data.

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