engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TMapBuilder< KeyType, ValueType, SetAllocator > 模板类 参考

Template for fluent map builders. 更多...

#include <MapBuilder.h>

Public 成员函数

TMapBuilder & Add (KeyType InKey, ValueType InValue)
 Adds a key-value pair to the map. 更多...
 
TMapBuilder & Append (const TMap< KeyType, ValueType, SetAllocator > &OtherMap)
 Appends another map. 更多...
 
TMap< KeyType, ValueType, SetAllocator > Build ()
 Builds the map as configured. 更多...
 
 operator TMap< KeyType, ValueType, SetAllocator > ()
 Implicit conversion operator to build the map as configured. 更多...
 
 TMapBuilder ()
 Default constructor.
 
template<typename OtherAllocator >
 TMapBuilder (const TMap< KeyType, ValueType, OtherAllocator > &InMap)
 Creates and initializes a new map builder from another map. 更多...
 

详细描述

template<typename KeyType, typename ValueType, typename SetAllocator = FDefaultSetAllocator>
class TMapBuilder< KeyType, ValueType, SetAllocator >

Template for fluent map builders.

参数
KeyTypeThe type of keys stored in the map.
ValueTypeThe type of values stored in the map.
SetAllocatorThe allocator to use for key-value pairs.

构造及析构函数说明

◆ TMapBuilder()

template<typename KeyType , typename ValueType , typename SetAllocator = FDefaultSetAllocator>
template<typename OtherAllocator >
TMapBuilder< KeyType, ValueType, SetAllocator >::TMapBuilder ( const TMap< KeyType, ValueType, OtherAllocator > &  InMap)
inline

Creates and initializes a new map builder from another map.

参数
InMapThe map to copy.

成员函数说明

◆ Add()

template<typename KeyType , typename ValueType , typename SetAllocator = FDefaultSetAllocator>
TMapBuilder & TMapBuilder< KeyType, ValueType, SetAllocator >::Add ( KeyType  InKey,
ValueType  InValue 
)
inline

Adds a key-value pair to the map.

参数
InKeyThe key of the pair to add.
InValueThe value of the pair to add.
返回
This instance (for method chaining).

◆ Append()

template<typename KeyType , typename ValueType , typename SetAllocator = FDefaultSetAllocator>
TMapBuilder & TMapBuilder< KeyType, ValueType, SetAllocator >::Append ( const TMap< KeyType, ValueType, SetAllocator > &  OtherMap)
inline

Appends another map.

参数
OtherMapThe map to append.
返回
This instance (for method chaining).

◆ Build()

template<typename KeyType , typename ValueType , typename SetAllocator = FDefaultSetAllocator>
TMap< KeyType, ValueType, SetAllocator > TMapBuilder< KeyType, ValueType, SetAllocator >::Build ( )
inline

Builds the map as configured.

返回
A new map.

◆ operator TMap< KeyType, ValueType, SetAllocator >()

template<typename KeyType , typename ValueType , typename SetAllocator = FDefaultSetAllocator>
TMapBuilder< KeyType, ValueType, SetAllocator >::operator TMap< KeyType, ValueType, SetAllocator > ( )
inline

Implicit conversion operator to build the map as configured.

返回
A new map.

该类的文档由以下文件生成: