FOperatingSystemEmail
#include <OperatingSystemSimulator/Public/OperatingSystemEmail.h>Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class FOperatingSystemEmail {
+EmailAddress : FText
+Password : FText
+IsValid() const bool
+operator==(const FOperatingSystemEmail &Other) const bool
+operator!=(const FOperatingSystemEmail &Other) const bool
+FOperatingSystemEmail()
+FOperatingSystemEmail(const FText &Email, const FText &Password)
+FOperatingSystemEmail(const FString &Email, const FString &Passwo
+Internal_VerifyEmail() const bool
}
struct FOperatingSystemEmailDefined in OperatingSystemEmail.h:15 Represents an email address and password for use in an operating system.
This struct is used to store and validate an email address and password for use in an operating system.
Friends
Section titled “Friends”| Name | Description |
|---|---|
GetTypeHash inline | Calculates the hash value for an instance of the FOperatingSystemEmail struct. |
GetTypeHash
Section titled “GetTypeHash”inline
friend inline uint32 GetTypeHash(const FOperatingSystemEmail & Other)Defined in OperatingSystemEmail.h:90 Calculates the hash value for an instance of the FOperatingSystemEmail struct.
This function calculates the hash value for an instance of the FOperatingSystemEmail struct by combining the hash values of the email address and password using the XOR operator (^).
Parameters
Section titled “Parameters”OtherThe FOperatingSystemEmail struct for which to calculate the hash value.
Returns
Section titled “Returns”The hash value calculated for the FOperatingSystemEmail struct.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
FText | EmailAddress | Stores the email address for use in the operating system. |
FText | Password | Stores the password |
EmailAddress
Section titled “EmailAddress”FText EmailAddressDefined in OperatingSystemEmail.h:21 Stores the email address for use in the operating system.
Referenced by
Section titled “Referenced by”Password
Section titled “Password”FText PasswordDefined in OperatingSystemEmail.h:25 Stores the password
Referenced by
Section titled “Referenced by”Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
bool | IsValid const inline | Checks if the email address and password stored in the [FOperatingSystemEmail](#foperatingsystememail) struct are valid. |
bool | operator== const inline | cond |
bool | operator!= const inline | |
FOperatingSystemEmail inline | Default constructor for the FOperatingSystemEmail struct. | |
FOperatingSystemEmail inline | Constructs a new FOperatingSystemEmail object. | |
FOperatingSystemEmail inline | Constructs a new FOperatingSystemEmail object. |
IsValid
Section titled “IsValid”const inline
inline bool IsValid() constDefined in OperatingSystemEmail.h:64
Checks if the email address and password stored in the [FOperatingSystemEmail](#foperatingsystememail) struct are valid.
This method performs internal verification of the email address using regular expression pattern matching. Additionally, it checks if the password is not empty or only contains whitespace characters.
Returns
Section titled “Returns”True if the email address and password are valid, false otherwise.
operator==
Section titled “operator==”const inline
inline bool operator==(const FOperatingSystemEmail & Other) constDefined in OperatingSystemEmail.h:70 cond
References
Section titled “References”operator!=
Section titled “operator!=”const inline
inline bool operator!=(const FOperatingSystemEmail & Other) constDefined in OperatingSystemEmail.h:75
References
Section titled “References”FOperatingSystemEmail
Section titled “FOperatingSystemEmail”inline
inline FOperatingSystemEmail()Defined in OperatingSystemEmail.h:101 Default constructor for the FOperatingSystemEmail struct.
This constructor initializes the EmailAddress and Password members of the FOperatingSystemEmail struct with empty FText objects and is considered invalid.
FOperatingSystemEmail
Section titled “FOperatingSystemEmail”inline
inline FOperatingSystemEmail(const FText & Email, const FText & Password)Defined in OperatingSystemEmail.h:116 Constructs a new FOperatingSystemEmail object.
This constructor initializes the EmailAddress and Password members of the FOperatingSystemEmail struct with the provided email and password values.
Parameters
Section titled “Parameters”-
EmailThe email address to be stored in the FOperatingSystemEmail struct. -
PasswordThe password to be stored in the FOperatingSystemEmail struct.
FOperatingSystemEmail
Section titled “FOperatingSystemEmail”inline
inline FOperatingSystemEmail(const FString & Email, const FString & Password)Defined in OperatingSystemEmail.h:131 Constructs a new FOperatingSystemEmail object.
This constructor initializes the EmailAddress and Password members of the FOperatingSystemEmail struct with the provided email and password values.
Parameters
Section titled “Parameters”-
EmailThe email address to be stored in the FOperatingSystemEmail struct, as a FString. -
PasswordThe password to be stored in the FOperatingSystemEmail struct, as a FString.
Private Methods
Section titled “Private Methods”| Return | Name | Description |
|---|---|---|
bool | Internal_VerifyEmail const inline | This method verifies the email address stored in the [FOperatingSystemEmail](#foperatingsystememail) struct. |
Internal_VerifyEmail
Section titled “Internal_VerifyEmail”const inline
inline bool Internal_VerifyEmail() constDefined in OperatingSystemEmail.h:38
This method verifies the email address stored in the [FOperatingSystemEmail](#foperatingsystememail) struct.
The method checks if the email address is empty or contains only whitespace characters. If the email address is not empty, it uses regular expression pattern matching to validate the format of the email address.
Returns
Section titled “Returns”True if the email address is valid, false otherwise.