Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::EBusAggregateResults< T > Struct Template Reference

#include <Results.h>

Public Member Functions

void operator= (const T &rhs)
 
void operator= (T &&rhs)
 

Public Attributes

AZStd::vector< T > values
 

Detailed Description

template<class T>
struct AZ::EBusAggregateResults< T >

Collects results returned by all handlers of an EBus event. The results are collected into an AZStd::vector.

Template Parameters
TThe return type of the handler.

The following is an example of adding handler results to a vector of previous results:

MyBus::BroadcastResult(result, &MyBus::Events::GetANumber);
for (const int& val : result.values) { ... }
Definition: Results.h:206
AZStd::vector< T > values
Definition: Results.h:210

Member Function Documentation

◆ operator=() [1/2]

template<class T >
void AZ::EBusAggregateResults< T >::operator= ( const T &  rhs)
inline

Overloads the assignment operator to add a new result to a vector of previous results. This const T& version is required to support const& returning functions.

◆ operator=() [2/2]

template<class T >
void AZ::EBusAggregateResults< T >::operator= ( T &&  rhs)
inline

Overloads the assignment operator to add a new result to a vector of previous results, using rvalue-reference to move

Member Data Documentation

◆ values

template<class T >
AZStd::vector<T> AZ::EBusAggregateResults< T >::values

A vector that contains handler results.


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