Navigation
API > API/Runtime > API/Runtime/uLangCore
Mixin super/base class for objects that need to be reference counted.
As a mixin it avoids the (minor) speed cost of virtual function calls and the virtual table memory cost (1 pointer). It uses the coding technique known as "mix-in from above"/"Curiously Recurring Template Pattern".
| Name | CSharedMix |
| Type | class |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointer.h |
| Include Path | #include "uLang/Common/Containers/SharedPointer.h" |
Syntax
class CSharedMix
Derived Classes
CSharedMix derived class hierarchy
- Node
- CAstNode
- IModularFeature
- CDefinition
- CCompatConstraintRoot
- CControlScope
- CDiagnostics
- CProgramBuildManager
- CSemanticProgram
- CSourceModule
- CSourcePackage
- CSourceProject
- CSymbolTable
- CToolchain
- CToolchainPluginManager
- CTypeScope
- IFileSystem
- ILibLoader
- IModularFeatureRegistry
- ISourceSnippet
- SGlitch
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
CSharedMix () |
uLang/Common/Containers/SharedPointer.h | ||
CSharedMix
(
const CSharedMix& Other |
uLang/Common/Containers/SharedPointer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~CSharedMix() |
uLang/Common/Containers/SharedPointer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| _RefCount | uint32_t | Number of references to this object. | uLang/Common/Containers/SharedPointer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32_t GetRefCount() |
uLang/Common/Containers/SharedPointer.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSPtrG< ObjectType, false, CHeapRawAllocator > SharedThis
(
ObjectType* This |
uLang/Common/Containers/SharedPointer.h | ||
static TSPtrG< const ObjectType, false, CHeapRawAllocator > SharedThis
(
const ObjectType* This |
uLang/Common/Containers/SharedPointer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
CSharedMix & operator=
(
const CSharedMix& Other |
uLang/Common/Containers/SharedPointer.h |