Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
UOperatingSystemGPU Class Reference

#include "OperatingSystemGPU.h"

Inheritance diagram for UOperatingSystemGPU:
[legend]
Collaboration diagram for UOperatingSystemGPU:
[legend]

Public Member Functions

 UOperatingSystemGPU ()
 
- Public Member Functions inherited from UOperatingSystemBaseHardware
 UOperatingSystemBaseHardware ()
 
FText GetHardwareName () const
 
FText GetHardwareMadeBy () const
 
FText GetModelNumber () const
 
FString GetHardwareNameAsString () const
 Returns the name of the hardware as a string.
 
FGameplayTag GetHardwareTag () const
 Returns the hardware tag associated with the hardware object.
 

Static Public Member Functions

static UOperatingSystemGPUCreateGPU (UOperatingSystemMBB *OwningMotherboard, FGenericError &OutError)
 

Protected Member Functions

virtual bool OnValidate (FGenericError &OutError) const override
 Validates the GPU by checking if it has the correct hardware tag.
 
- Protected Member Functions inherited from UOperatingSystemBaseHardware
bool Validate (FGenericError &OutError) const
 Validates the current state of the operating system hardware object.
 
bool K2_OnValidate (FGenericError &OutError) const
 

Additional Inherited Members

- Protected Attributes inherited from UOperatingSystemBaseHardware
FText Name
 
FText MadeBy
 
FText ModelNumber
 
FGameplayTag HardwareTag
 
bool bHasBlueprintValidateFunction
 

Detailed Description

Represents a GPU operating system.

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

Constructor & Destructor Documentation

◆ UOperatingSystemGPU()

UOperatingSystemGPU::UOperatingSystemGPU ( )

Member Function Documentation

◆ CreateGPU()

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

Creates a GPU object and initializes it.

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
A pointer to the created UOperatingSystemGPU object, or nullptr if the creation failed.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnValidate()

bool UOperatingSystemGPU::OnValidate ( FGenericError & OutError) const
overrideprotectedvirtual

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
OutErrorA reference to the FGenericError object used to store error messages if the validation fails.
Returns
True if the GPU is valid, false otherwise.
See also
UOperatingSystemGPU::HardwareTag
GpuTag
FGenericError

Reimplemented from UOperatingSystemBaseHardware.


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