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::BehaviorDefaultValue Class Reference

#include <BehaviorContext.h>

Inherits AZStd::intrusive_refcount< refcount_t, Deleter >.

Public Member Functions

 AZ_CLASS_ALLOCATOR (BehaviorDefaultValue, AZ::SystemAllocator)
 
 BehaviorDefaultValue (const BehaviorDefaultValue &)=delete
 
 BehaviorDefaultValue (BehaviorDefaultValue &&)=delete
 
BehaviorDefaultValueoperator= (const BehaviorDefaultValue &)=delete
 
BehaviorDefaultValueoperator= (BehaviorDefaultValue &&)=delete
 
template<typename Value >
 BehaviorDefaultValue (Value &&value)
 
const BehaviorArgumentGetValue () const
 
- Public Member Functions inherited from AZStd::intrusive_refcount< refcount_t, Deleter >
uint32_t use_count () const
 

Public Attributes

BehaviorArgument m_value
 

Additional Inherited Members

- Protected Member Functions inherited from AZStd::intrusive_refcount< refcount_t, Deleter >
 intrusive_refcount (Deleter deleter)
 
 intrusive_refcount (const intrusive_refcount &)=delete
 
 intrusive_refcount (intrusive_refcount &&)=delete
 
void add_ref () const
 
void release () const
 

Detailed Description

Class that handles a single default value. The Value type is verified to match parameter signature

Constructor & Destructor Documentation

◆ BehaviorDefaultValue()

template<typename Value >
AZ::BehaviorDefaultValue::BehaviorDefaultValue ( Value &&  value)
inline

Create a default value for a specific method parameter. The Default values is stored by value in a temp storage, so currently there is limit the BehaviorArgument temp storage, we can easily change that if it became a problem.


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