engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 友元 | 所有成员列表
FIPv4SubnetMask结构体 参考

Implements an IPv4 subnet mask. 更多...

#include <IPv4SubnetMask.h>

Public 成员函数

 FIPv4SubnetMask ()
 Default constructor.
 
 FIPv4SubnetMask (uint32 InValue)
 Creates and initializes a new IPv4 subnet mask with the specified value. 更多...
 
 FIPv4SubnetMask (uint8 InA, uint8 InB, uint8 InC, uint8 InD)
 Creates and initializes a new IPv4 subnet mask with the specified components. 更多...
 
EIPv4SubnetClasses::Type GetClass () const
 Gets the subnet class that this mask specifies. 更多...
 
bool operator!= (const FIPv4SubnetMask &Other) const
 Compares this subnet mask with the given address for inequality. 更多...
 
bool operator== (const FIPv4SubnetMask &Other) const
 Compares this subnet mask with the given mask for equality. 更多...
 
FIPv4SubnetMask operator~ () const
 Returns an inverted subnet mask. 更多...
 
NETWORKING_API FString ToString () const
 Converts this IP address to its string representation. 更多...
 
FText ToText () const
 Gets the display text representation. 更多...
 

静态 Public 成员函数

static NETWORKING_API bool Parse (const FString &MaskString, FIPv4SubnetMask &OutMask)
 Converts a string to an IPv4 subnet mask. 更多...
 

友元

uint32 GetTypeHash (const FIPv4SubnetMask &SubnetMask)
 Gets the hash for specified IPv4 subnet mask. 更多...
 
FArchive & operator<< (FArchive &Ar, FIPv4SubnetMask &SubnetMask)
 Serializes the given subnet mask from or into the specified archive. 更多...
 

详细描述

Implements an IPv4 subnet mask.

构造及析构函数说明

◆ FIPv4SubnetMask() [1/2]

FIPv4SubnetMask::FIPv4SubnetMask ( uint8  InA,
uint8  InB,
uint8  InC,
uint8  InD 
)
inline

Creates and initializes a new IPv4 subnet mask with the specified components.

The created subnet mask has the value A.B.C.D.

参数
InAThe first component.
InBThe second component.
InCThe third component.
InDThe fourth component.

◆ FIPv4SubnetMask() [2/2]

FIPv4SubnetMask::FIPv4SubnetMask ( uint32  InValue)
inline

Creates and initializes a new IPv4 subnet mask with the specified value.

参数
InValueThe address value (in host byte order).

成员函数说明

◆ GetClass()

EIPv4SubnetClasses::Type FIPv4SubnetMask::GetClass ( ) const
inline

Gets the subnet class that this mask specifies.

返回
Subnet class.

◆ operator!=()

bool FIPv4SubnetMask::operator!= ( const FIPv4SubnetMask &  Other) const
inline

Compares this subnet mask with the given address for inequality.

参数
OtherThe subnet mask to compare with.
返回
true if the subnet masks are not equal, false otherwise.

◆ operator==()

bool FIPv4SubnetMask::operator== ( const FIPv4SubnetMask &  Other) const
inline

Compares this subnet mask with the given mask for equality.

参数
OtherThe subnet mask to compare with.
返回
true if the subnet masks are equal, false otherwise.

◆ operator~()

FIPv4SubnetMask FIPv4SubnetMask::operator~ ( ) const
inline

Returns an inverted subnet mask.

返回
Inverted subnet mask.

◆ Parse()

static NETWORKING_API bool FIPv4SubnetMask::Parse ( const FString &  MaskString,
FIPv4SubnetMask &  OutMask 
)
static

Converts a string to an IPv4 subnet mask.

参数
MaskStringThe string to convert.
OutMaskWill contain the parsed subnet mask.
返回
true if the string was converted successfully, false otherwise.
参见
ToString

◆ ToString()

NETWORKING_API FString FIPv4SubnetMask::ToString ( ) const

Converts this IP address to its string representation.

返回
String representation.
参见
Parse, ToText

◆ ToText()

FText FIPv4SubnetMask::ToText ( ) const
inline

Gets the display text representation.

返回
Text representation.
参见
ToString

友元及相关函数文档

◆ GetTypeHash

uint32 GetTypeHash ( const FIPv4SubnetMask &  SubnetMask)
friend

Gets the hash for specified IPv4 subnet mask.

参数
SubnetMaskThe subnet mask to get the hash for.
返回
Hash value.

◆ operator<<

FArchive & operator<< ( FArchive &  Ar,
FIPv4SubnetMask &  SubnetMask 
)
friend

Serializes the given subnet mask from or into the specified archive.

参数
ArThe archive to serialize from or into.
SubnetMaskThe subnet mask to serialize.
返回
The archive.

该结构体的文档由以下文件生成: