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

Template for fluent array builders. 更多...

#include <ArrayBuilder.h>

Public 成员函数

TArrayBuilder & Add (const ElementType &Item)
 Adds an item. 更多...
 
TArrayBuilder & AddUnique (const ElementType &Item)
 Adds an unique item. 更多...
 
template<typename OtherAllocator >
TArrayBuilder & Append (const TArray< ElementType, OtherAllocator > &OtherArray)
 Appends an array of items. 更多...
 
TArray< ElementType, Allocator > Build ()
 Builds the array as configured. 更多...
 
 operator TArray< ElementType, Allocator > ()
 Implicit conversion operator to build the array as configured. 更多...
 
 TArrayBuilder ()
 Default constructor.
 
template<typename OtherAllocator >
 TArrayBuilder (const TArray< ElementType, OtherAllocator > &InArray)
 Creates and initializes an array builder from an array of items. 更多...
 

详细描述

template<typename ElementType, typename Allocator = FDefaultAllocator>
class TArrayBuilder< ElementType, Allocator >

Template for fluent array builders.

参数
ElementTypeThe type of elements stored in the array.
AllocatorThe allocator to use for elements.

构造及析构函数说明

◆ TArrayBuilder()

template<typename ElementType , typename Allocator = FDefaultAllocator>
template<typename OtherAllocator >
TArrayBuilder< ElementType, Allocator >::TArrayBuilder ( const TArray< ElementType, OtherAllocator > &  InArray)
inline

Creates and initializes an array builder from an array of items.

参数
InArrayThe array of items to copy.

成员函数说明

◆ Add()

template<typename ElementType , typename Allocator = FDefaultAllocator>
TArrayBuilder & TArrayBuilder< ElementType, Allocator >::Add ( const ElementType &  Item)
inline

Adds an item.

参数
ItemThe item to add.
返回
This instance (for method chaining).
参见
AddUnique

◆ AddUnique()

template<typename ElementType , typename Allocator = FDefaultAllocator>
TArrayBuilder & TArrayBuilder< ElementType, Allocator >::AddUnique ( const ElementType &  Item)
inline

Adds an unique item.

参数
ItemThe unique item to add.
返回
This instance (for method chaining).
参见
Add

◆ Append()

template<typename ElementType , typename Allocator = FDefaultAllocator>
template<typename OtherAllocator >
TArrayBuilder & TArrayBuilder< ElementType, Allocator >::Append ( const TArray< ElementType, OtherAllocator > &  OtherArray)
inline

Appends an array of items.

参数
OtherArrayThe array to append.
返回
This instance (for method chaining).

◆ Build()

template<typename ElementType , typename Allocator = FDefaultAllocator>
TArray< ElementType, Allocator > TArrayBuilder< ElementType, Allocator >::Build ( )
inline

Builds the array as configured.

返回
A new array.

◆ operator TArray< ElementType, Allocator >()

template<typename ElementType , typename Allocator = FDefaultAllocator>
TArrayBuilder< ElementType, Allocator >::operator TArray< ElementType, Allocator > ( )
inline

Implicit conversion operator to build the array as configured.

返回
A new array.

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