![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <StructTypeBitSet.h>
Inheritance diagram for TTypeBitSetBase< TImplementation, TBaseStruct, TStructType, TBitSetContainer, bTestInheritanceAtRuntime >:Classes | |
| struct | FIndexIterator |
Public Types | |
| using | FUStructType = TStructType |
| using | FBaseStruct = TBaseStruct |
| using | FContainer = TBitSetContainer |
Static Public Member Functions | |
| static const UStruct * | GetBaseUStruct () |
Protected Member Functions | |
| TTypeBitSetBase ()=default | |
| TTypeBitSetBase (FContainer &InContainer) | |
Protected Attributes | |
| FContainer | StructTypesBitArray |
Base class for managing bitsets associated with specific struct types. Provides a foundation for derived classes to handle operations like adding, removing, and checking for struct types.
| TImplementation | - The derived type implementing this base class. |
| TBaseStruct | - The base struct type for type validation. |
| TStructType | - Unreal's struct type, typically UScriptStruct or UClass. |
| TBitSetContainer | - The container type for storing bitsets. |
| bTestInheritanceAtRuntime | - Flag to enable runtime inheritance checks. |
| using TTypeBitSetBase< TImplementation, TBaseStruct, TStructType, TBitSetContainer, bTestInheritanceAtRuntime >::FBaseStruct = TBaseStruct |
| using TTypeBitSetBase< TImplementation, TBaseStruct, TStructType, TBitSetContainer, bTestInheritanceAtRuntime >::FContainer = TBitSetContainer |
| using TTypeBitSetBase< TImplementation, TBaseStruct, TStructType, TBitSetContainer, bTestInheritanceAtRuntime >::FUStructType = TStructType |
|
protecteddefault |
Default constructor.
|
inlineprotected |
Constructor accepting a container.
| InContainer | - The bitset container to use. |
|
inline |
Adds a struct type to the bitset.
| InStructType | - The struct type to add. |
|
inline |
Sets the bit at index StructTypeIndex
|
inline |
Checks if the bitset contains a specific struct type.
| InStructType | - The struct type to check for. |
|
inline |
Counts the number of set bits in the bitset.
|
inline |
Exports types stored in the bitset to an output array. Note: This method can be slow due to the use of weak pointers in the struct tracker.
| OutTypes | - The array to populate with struct types. |
|
inline |
Gets the allocated size of the bitset.
|
inlinestatic |
|
inline |
Retrieves the derived implementation of this base class.
|
inline |
Retrieves the derived implementation of this base class (const version).
|
inline |
Creates an index iterator for bits with the specified value.
| bValueToCheck | - The bit value to search for (true or false). |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Checks if a specific bit is set in the bitset.
| BitIndex | - The index of the bit to check. |
|
inline |
Checks if the bitset is empty (no bits are set).
|
inline |
Checks if the current bitset is equivalent to another, i.e., whether both contain same "true" bits and ignoring the trailing "false" bits.
| Other | - The other bitset to compare. |
|
inline |
Performs a bitwise AND operation with another bitset.
| Other | - The other bitset to intersect with. |
|
inline |
Adds a struct type to the bitset, returning a new bitset.
| NewElement | - The struct type to add. |
|
inline |
Adds the bits from another bitset to this one (union).
| Other | - The other bitset to add. |
|
inline |
Removes a struct type from the bitset, returning a new bitset.
| NewElement | - The struct type to remove. |
|
inline |
Removes the bits from another bitset from this one (difference).
| Other | - The other bitset to subtract. |
|
inline |
Performs a bitwise OR operation with another bitset.
| Other | - The other bitset to union with. |
|
inline |
Removes a struct type from the bitset.
| InStructType | - The struct type to remove. |
|
inline |
Clears the bit at index StructTypeIndex
|
inline |
Resets all bits in the bitset
|
inline |
Sets all bits in the bitset to the specified value.
| bValue | - The value to set for all bits (default is true). |
|
protected |
The bitset container storing the bits representing struct types