UOperatingSystemRAM
#include <OperatingSystemSimulator/Public/Hardware/OperatingSystemRAM.h>class UOperatingSystemRAMDefined in OperatingSystemRAM.h:16
Inherits:
UOperatingSystemBaseHardware
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemRAM["UOperatingSystemRAM"]
class UOperatingSystemBaseHardware["UOperatingSystemBaseHardware"]
UOperatingSystemBaseHardware <|-- UOperatingSystemRAM
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemRAM["UOperatingSystemRAM"]
class EOperatingSystemCommonSizes["EOperatingSystemCommonSizes"]
UOperatingSystemRAM ..> EOperatingSystemCommonSizes
class UOperatingSystemMBB["UOperatingSystemMBB"]
UOperatingSystemRAM *-- UOperatingSystemMBB
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemRAM {
+UOperatingSystemRAM()
+CreateRAM(UOperatingSystemMBB *OwningMotherboard, FGe UOperatingSystemRAM() *
+OnValidate(FGenericError &OutError) const override bool
+Size : EOperatingSystemCommonSizes()
+ParentMotherboard : TWeakObjectPtr< UOperatingSystemMBB() >
}
UOperatingSystemRAM is a class that represents the RAM (Random Access Memory) of an operating system. It is derived from UOperatingSystemBaseHardware. This class provides functionality to create RAM, validate RAM, and store the size of the RAM.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemRAM |
UOperatingSystemRAM
Section titled “UOperatingSystemRAM”UOperatingSystemRAM()Defined in OperatingSystemRAM.h:34
References
Section titled “References”Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemRAM * | CreateRAM static | Creates a RAM object for the operating system. This method creates a RAM object for the specified OwningMotherboard and returns it. |
CreateRAM
Section titled “CreateRAM”static
static UOperatingSystemRAM * CreateRAM(UOperatingSystemMBB * OwningMotherboard, FGenericError & OutError)Defined in OperatingSystemRAM.h:45 Creates a RAM object for the operating system. This method creates a RAM object for the specified OwningMotherboard and returns it.
Parameters
Section titled “Parameters”-
OwningMotherboard- Pointer to UOperatingSystemMBB object representing the motherboard that owns the RAM. -
OutError- Reference to FGenericError object to store any error that occurs during the creation process.
Returns
Section titled “Returns”UOperatingSystemRAM* - Pointer to the created RAM object if successful, nullptr otherwise.
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 RAM (Random Access Memory) of the operating system. |
OnValidate
Section titled “OnValidate”virtual const override
virtual bool OnValidate(FGenericError & OutError) const overrideDefined in OperatingSystemRAM.h:61 Validates the RAM (Random Access Memory) of the operating system.
This method validates the RAM by checking if the HardwareTag matches the RamTag. If they don’t match, an error message is set in the OutError parameter and false is returned. It also checks if the size of the RAM is supported by the ParentMotherboard. If the size is not supported, an error message is set in the OutError parameter and false is returned If both checks pass, true is returned.
Parameters
Section titled “Parameters”OutError- Reference to a FGenericError object to store any error that occurs during the validation process.
Returns
Section titled “Returns”bool - True if the RAM is valid, false otherwise.
References
Section titled “References”HardwareTagMAKE_ERRORNameParentMotherboardSize
Reimplements
Section titled “Reimplements”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
EOperatingSystemCommonSizes | Size | Variable representing the size of the operating system memory. |
TWeakObjectPtr< UOperatingSystemMBB > | ParentMotherboard | Represents a weak pointer to an instance of UOperatingSystemMBB class. |
EOperatingSystemCommonSizes SizeDefined in OperatingSystemRAM.h:24 Variable representing the size of the operating system memory.
Referenced by
Section titled “Referenced by”ParentMotherboard
Section titled “ParentMotherboard”TWeakObjectPtr< UOperatingSystemMBB > ParentMotherboardDefined in OperatingSystemRAM.h:30 Represents a weak pointer to an instance of UOperatingSystemMBB class.