Skip to content

UOperatingSystemGPU

#include <OperatingSystemSimulator/Public/Hardware/OperatingSystemGPU.h>
class UOperatingSystemGPU

Defined in OperatingSystemGPU.h:17

Inherits: UOperatingSystemBaseHardware

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemGPU["UOperatingSystemGPU"]
  class UOperatingSystemBaseHardware["UOperatingSystemBaseHardware"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemGPU
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemGPU["UOperatingSystemGPU"]
  class UOperatingSystemMBB["UOperatingSystemMBB"]
  UOperatingSystemGPU *-- UOperatingSystemMBB
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemGPU {
    +UOperatingSystemGPU()
    +CreateGPU(UOperatingSystemMBB *OwningMotherboard, FGe UOperatingSystemGPU() *
    +OnValidate(FGenericError &OutError) const override bool
    +ParentMotherboard : TWeakObjectPtr< UOperatingSystemMBB() >
  }

Represents a GPU operating system.

This class inherits from UOperatingSystemBaseHardware and provides additional functionality specific to a GPU.

ReturnNameDescription
UOperatingSystemGPU

UOperatingSystemGPU()

Defined in OperatingSystemGPU.h:29

ReturnNameDescription
UOperatingSystemGPU *CreateGPU staticCreates a GPU object and initializes it.

static

static UOperatingSystemGPU * CreateGPU(UOperatingSystemMBB * OwningMotherboard, FGenericError & OutError)

Defined in OperatingSystemGPU.h:39 Creates a GPU object and initializes it.

  • OwningMotherboard A pointer to the UOperatingSystemMBB object that owns the GPU.

  • OutError A reference to the FGenericError object used to store error messages if the GPU creation fails.

A pointer to the created UOperatingSystemGPU object, or nullptr if the creation failed.

ReturnNameDescription
boolOnValidate virtual const overrideValidates the GPU by checking if it has the correct hardware tag.

virtual const override

virtual bool OnValidate(FGenericError & OutError) const override

Defined in OperatingSystemGPU.h:57 Validates the GPU by checking if it has the correct hardware tag.

This method is called to validate the GPU object. It compares the HardwareTag of the GPU with the GpuTag constant and returns true if they match. If they do not match, it sets the OutError parameter with an error message and returns false.

  • OutError A reference to the FGenericError object used to store error messages if the validation fails.

True if the GPU is valid, false otherwise.

See also: UOperatingSystemGPU::HardwareTag

See also: GpuTag

See also: FGenericError

ReturnNameDescription
TWeakObjectPtr< UOperatingSystemMBB >ParentMotherboardRepresents a weak pointer to an instance of UOperatingSystemMBB class.

TWeakObjectPtr< UOperatingSystemMBB > ParentMotherboard

Defined in OperatingSystemGPU.h:25 Represents a weak pointer to an instance of UOperatingSystemMBB class.