Skip to content

UOperatingSystemRAM

#include <OperatingSystemSimulator/Public/Hardware/OperatingSystemRAM.h>
class UOperatingSystemRAM

Defined in OperatingSystemRAM.h:16

Inherits: UOperatingSystemBaseHardware

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemRAM["UOperatingSystemRAM"]
  class UOperatingSystemBaseHardware["UOperatingSystemBaseHardware"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemRAM
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemRAM["UOperatingSystemRAM"]
  class EOperatingSystemCommonSizes["EOperatingSystemCommonSizes"]
  UOperatingSystemRAM ..> EOperatingSystemCommonSizes
  class UOperatingSystemMBB["UOperatingSystemMBB"]
  UOperatingSystemRAM *-- UOperatingSystemMBB
---
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.

ReturnNameDescription
UOperatingSystemRAM

UOperatingSystemRAM()

Defined in OperatingSystemRAM.h:34

ReturnNameDescription
UOperatingSystemRAM *CreateRAM staticCreates a RAM object for the operating system. This method creates a RAM object for the specified OwningMotherboard and returns it.

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.

  • 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.

UOperatingSystemRAM* - Pointer to the created RAM object if successful, nullptr otherwise.

ReturnNameDescription
boolOnValidate virtual const overrideValidates the RAM (Random Access Memory) of the operating system.

virtual const override

virtual bool OnValidate(FGenericError & OutError) const override

Defined 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.

  • OutError - Reference to a FGenericError object to store any error that occurs during the validation process.

bool - True if the RAM is valid, false otherwise.

ReturnNameDescription
EOperatingSystemCommonSizesSizeVariable representing the size of the operating system memory.
TWeakObjectPtr< UOperatingSystemMBB >ParentMotherboardRepresents a weak pointer to an instance of UOperatingSystemMBB class.

EOperatingSystemCommonSizes Size

Defined in OperatingSystemRAM.h:24 Variable representing the size of the operating system memory.


TWeakObjectPtr< UOperatingSystemMBB > ParentMotherboard

Defined in OperatingSystemRAM.h:30 Represents a weak pointer to an instance of UOperatingSystemMBB class.