Apparatus Version 1.23
ECS data-oriented workflow for Unreal Engine.
Loading...
Searching...
No Matches
Public Types | List of all members
TTraitRecord< T > Struct Template Reference

A strongly-typed trait record. More...

#include <TraitRecord.h>

Inheritance diagram for TTraitRecord< T >:
Inheritance graph
[legend]
Collaboration diagram for TTraitRecord< T >:
Collaboration graph
[legend]

Public Types

using Super = FTraitRecord
 The base struct type.
 

Public Member Functions

Data Access
const TGetDataRef () const
 Get a reference to the trait data.
 
TGetDataRef ()
 Get a reference to the trait data.
 
Assignment
EApparatusStatus Set (const T &InTrait)
 Set the data of the record.
 
TTraitRecordoperator= (const T &InTrait)
 Set the data of the record.
 
Initialization
 TTraitRecord ()
 Initialize a new instance of the trait record.
 
 TTraitRecord (const T &InTrait)
 Initialize a new record instance as a copy of a trait.
 

Detailed Description

template<typename T>
struct TTraitRecord< T >

A strongly-typed trait record.

Template Parameters
TThe type of the trait.

Member Typedef Documentation

◆ Super

template<typename T >
using TTraitRecord< T >::Super = FTraitRecord

The base struct type.

Constructor & Destructor Documentation

◆ TTraitRecord() [1/2]

template<typename T >
TTraitRecord< T >::TTraitRecord ( )
inline

Initialize a new instance of the trait record.

◆ TTraitRecord() [2/2]

template<typename T >
TTraitRecord< T >::TTraitRecord ( const T InTrait)
inline

Initialize a new record instance as a copy of a trait.

Parameters
InTraitThe trait to copy.

Member Function Documentation

◆ GetDataRef() [1/2]

template<typename T >
T & TTraitRecord< T >::GetDataRef ( )
inline

Get a reference to the trait data.

Mutable version.

◆ GetDataRef() [2/2]

template<typename T >
const T & TTraitRecord< T >::GetDataRef ( ) const
inline

Get a reference to the trait data.

Constant version.

◆ operator=()

template<typename T >
TTraitRecord & TTraitRecord< T >::operator= ( const T InTrait)
inline

Set the data of the record.

Parameters
InTraitThe trait to set to.
Returns
Returns itself.

◆ Set()

template<typename T >
EApparatusStatus TTraitRecord< T >::Set ( const T InTrait)
inline

Set the data of the record.

Parameters
InTraitThe trait to set to.
Returns
The status of the operation.

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