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

Implements a IPv4 subnet descriptor. 更多...

#include <IPv4Subnet.h>

Public 成员函数

FIPv4Address BroadcastAddress () const
 Get the broadcast address for this subnet. 更多...
 
bool ContainsAddress (const FIPv4Address &TestAddress)
 Checks whether the subnet contains the specified IP address. 更多...
 
 FIPv4Subnet ()
 Default constructor.
 
 FIPv4Subnet (const FIPv4Address &InAddress, const FIPv4SubnetMask &InMask)
 Creates and initializes a new IPv4 subnet with the specified address and mask. 更多...
 
bool operator!= (const FIPv4Subnet &Other) const
 Compares this IPv4 subnet descriptor with the given subnet for inequality. 更多...
 
bool operator== (const FIPv4Subnet &Other) const
 Compares this IPv4 subnet descriptor with the given subnet for equality. 更多...
 
NETWORKING_API FString ToString () const
 Converts this IP subnet to its string representation. 更多...
 
FText ToText () const
 Gets the display text representation. 更多...
 

静态 Public 成员函数

static NETWORKING_API bool Parse (const FString &SubnetString, FIPv4Subnet &OutSubnet)
 Converts a string to an IPv4 subnet. 更多...
 

Public 属性

FIPv4Address Address
 Holds the subnet's address.
 
FIPv4SubnetMask Mask
 Holds the subnet's mask.
 

友元

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

详细描述

Implements a IPv4 subnet descriptor.

待办事项:
gmp: add IsValid() method

构造及析构函数说明

◆ FIPv4Subnet()

FIPv4Subnet::FIPv4Subnet ( const FIPv4Address &  InAddress,
const FIPv4SubnetMask &  InMask 
)
inline

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

参数
InAddressThe subnet's address.
InMaskThe subnet's mask.

成员函数说明

◆ BroadcastAddress()

FIPv4Address FIPv4Subnet::BroadcastAddress ( ) const
inline

Get the broadcast address for this subnet.

返回
The broadcast address.

◆ ContainsAddress()

bool FIPv4Subnet::ContainsAddress ( const FIPv4Address &  TestAddress)
inline

Checks whether the subnet contains the specified IP address.

参数
TestAddressThe address to check.
返回
true if the subnet contains the address, false otherwise.

◆ operator!=()

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

Compares this IPv4 subnet descriptor with the given subnet for inequality.

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

◆ operator==()

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

Compares this IPv4 subnet descriptor with the given subnet for equality.

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

◆ Parse()

static NETWORKING_API bool FIPv4Subnet::Parse ( const FString &  SubnetString,
FIPv4Subnet &  OutSubnet 
)
static

Converts a string to an IPv4 subnet.

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

◆ ToString()

NETWORKING_API FString FIPv4Subnet::ToString ( ) const

Converts this IP subnet to its string representation.

返回
String representation.
参见
Parse, ToText

◆ ToText()

FText FIPv4Subnet::ToText ( ) const
inline

Gets the display text representation.

返回
Text representation.
参见
ToString

友元及相关函数文档

◆ GetTypeHash

uint32 GetTypeHash ( const FIPv4Subnet &  Subnet)
friend

Gets the hash for specified IPv4 subnet.

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

◆ operator<<

FArchive & operator<< ( FArchive &  Ar,
FIPv4Subnet &  Subnet 
)
friend

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

参数
ArThe archive to serialize from or into.
SubnetThe subnet descriptor to serialize.
返回
The archive.

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