UOperatingSystemGPU
#include <OperatingSystemSimulator/Public/Hardware/OperatingSystemGPU.h>class UOperatingSystemGPUDefined in OperatingSystemGPU.h:17
Inherits:
UOperatingSystemBaseHardware
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemGPU["UOperatingSystemGPU"]
class UOperatingSystemBaseHardware["UOperatingSystemBaseHardware"]
UOperatingSystemBaseHardware <|-- UOperatingSystemGPU
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemGPU["UOperatingSystemGPU"]
class UOperatingSystemMBB["UOperatingSystemMBB"]
UOperatingSystemGPU *-- UOperatingSystemMBB
Class detail
Section titled “Class detail”---
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.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemGPU |
UOperatingSystemGPU
Section titled “UOperatingSystemGPU”UOperatingSystemGPU()Defined in OperatingSystemGPU.h:29
References
Section titled “References”Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemGPU * | CreateGPU static | Creates a GPU object and initializes it. |
CreateGPU
Section titled “CreateGPU”static
static UOperatingSystemGPU * CreateGPU(UOperatingSystemMBB * OwningMotherboard, FGenericError & OutError)Defined in OperatingSystemGPU.h:39 Creates a GPU object and initializes it.
Parameters
Section titled “Parameters”-
OwningMotherboardA pointer to the UOperatingSystemMBB object that owns the GPU. -
OutErrorA reference to the FGenericError object used to store error messages if the GPU creation fails.
Returns
Section titled “Returns”A pointer to the created UOperatingSystemGPU object, or nullptr if the creation failed.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetParentDeviceMAKE_ERRORNEW_SOFT_OBJ
Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
bool | OnValidate virtual const override | Validates the GPU by checking if it has the correct hardware tag. |
OnValidate
Section titled “OnValidate”virtual const override
virtual bool OnValidate(FGenericError & OutError) const overrideDefined 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.
Parameters
Section titled “Parameters”OutErrorA reference to the FGenericError object used to store error messages if the validation fails.
Returns
Section titled “Returns”True if the GPU is valid, false otherwise.
See also: UOperatingSystemGPU::HardwareTag
See also: GpuTag
See also: FGenericError
References
Section titled “References”HardwareTagMAKE_ERRORName
Reimplements
Section titled “Reimplements”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
TWeakObjectPtr< UOperatingSystemMBB > | ParentMotherboard | Represents a weak pointer to an instance of UOperatingSystemMBB class. |
ParentMotherboard
Section titled “ParentMotherboard”TWeakObjectPtr< UOperatingSystemMBB > ParentMotherboardDefined in OperatingSystemGPU.h:25 Represents a weak pointer to an instance of UOperatingSystemMBB class.