UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::CSourceFileModule Class Reference

#include <SourceFileProject.h>

+ Inheritance diagram for uLang::CSourceFileModule:

Public Member Functions

 CSourceFileModule (const CUTF8StringView &ModuleName, const CUTF8StringView &ModuleFilePath)
 
 CSourceFileModule (const CUTF8StringView &ModuleName, CUTF8String &&ModuleFilePath)
 
virtual const CUTF8StringGetFilePath () const override
 
VERSECOMPILER_API CUTF8StringView GetDirPath () const
 
VERSECOMPILER_API TOptional< TSRef< CSourceFileModule > > FindSubmodule (const CUTF8StringView &ModuleName) const
 
VERSECOMPILER_API TSRef< CSourceFileModuleFindOrAddSubmodule (const CUTF8StringView &ModuleName, const CUTF8StringView &DirPath)
 
VERSECOMPILER_API TOptional< TSRef< CSourceFileSnippet > > FindSnippetByFilePath (const CUTF8StringView &FilePath, bool bRecursive) const
 
void AddSnippet (const uLang::TSRef< ISourceSnippet > &Snippet)
 
bool RemoveSnippet (const uLang::TSRef< ISourceSnippet > &Snippet, bool bRecursive)
 
- Public Member Functions inherited from uLang::CSourceModule
 CSourceModule (const CUTF8StringView &Name)
 Construct from name.
 
virtual ~CSourceModule ()=default
 
const CUTF8StringGetName () const
 
VERSECOMPILER_API CUTF8StringView GetNameFromFile () const
 
VERSECOMPILER_API TOptional< TSRef< CSourceModule > > FindSubmodule (const CUTF8StringView &ModuleName) const
 
VERSECOMPILER_API void AddSnippet (const uLang::TSRef< ISourceSnippet > &Snippet)
 
VERSECOMPILER_API bool RemoveSnippet (const uLang::TSRef< ISourceSnippet > &Snippet, bool bRecursive)
 
template<typename FunctionType >
bool VisitAll (FunctionType &&Lambda) const
 
template<typename FunctionType >
bool VisitAll (FunctionType &&Lambda)
 
ULANG_FORCEINLINE bool operator== (const CUTF8StringView &Name) const
 For lookup by name.
 
- Public Member Functions inherited from uLang::CSharedMix
 CSharedMix ()
 
virtual UE_API ~CSharedMix ()
 
 CSharedMix (const CSharedMix &Other)=delete
 
CSharedMixoperator= (const CSharedMix &Other)=delete
 
uint32_t GetRefCount () const
 

Friends

class CSourceFilePackage
 

Additional Inherited Members

- Static Public Member Functions inherited from uLang::CSourceModule
static VERSECOMPILER_API CUTF8StringView GetNameFromFile (const CUTF8StringView &ModuleFilePath)
 
- Public Attributes inherited from uLang::CSourceModule
TSRefArray< ISourceSnippet_SourceSnippets
 The source files contained in the module.
 
TSRefArray< CSourceModule_Submodules
 Submodules of this module.
 
- Static Protected Member Functions inherited from uLang::CSharedMix
template<class ObjectType >
static TSPtrG< ObjectType, false, CHeapRawAllocatorSharedThis (ObjectType *This)
 
template<class ObjectType >
static TSPtrG< const ObjectType, false, CHeapRawAllocatorSharedThis (const ObjectType *This)
 
- Protected Attributes inherited from uLang::CSourceModule
CUTF8String _Name
 Name of this module.
 

Detailed Description

A module of source snippets on disk

Constructor & Destructor Documentation

◆ CSourceFileModule() [1/2]

uLang::CSourceFileModule::CSourceFileModule ( const CUTF8StringView ModuleName,
const CUTF8StringView ModuleFilePath 
)
inline

◆ CSourceFileModule() [2/2]

uLang::CSourceFileModule::CSourceFileModule ( const CUTF8StringView ModuleName,
CUTF8String &&  ModuleFilePath 
)
inline

Member Function Documentation

◆ AddSnippet()

void uLang::CSourceFileModule::AddSnippet ( const uLang::TSRef< ISourceSnippet > &  Snippet)
inline

◆ FindOrAddSubmodule()

TSRef< CSourceFileModule > uLang::CSourceFileModule::FindOrAddSubmodule ( const CUTF8StringView ModuleName,
const CUTF8StringView DirPath 
)

◆ FindSnippetByFilePath()

TOptional< TSRef< CSourceFileSnippet > > uLang::CSourceFileModule::FindSnippetByFilePath ( const CUTF8StringView FilePath,
bool  bRecursive 
) const

◆ FindSubmodule()

TOptional< TSRef< CSourceFileModule > > uLang::CSourceFileModule::FindSubmodule ( const CUTF8StringView ModuleName) const

◆ GetDirPath()

CUTF8StringView uLang::CSourceFileModule::GetDirPath ( ) const

◆ GetFilePath()

virtual const CUTF8String & uLang::CSourceFileModule::GetFilePath ( ) const
inlineoverridevirtual

Reimplemented from uLang::CSourceModule.

◆ RemoveSnippet()

bool uLang::CSourceFileModule::RemoveSnippet ( const uLang::TSRef< ISourceSnippet > &  Snippet,
bool  bRecursive 
)
inline

Friends And Related Symbol Documentation

◆ CSourceFilePackage

friend class CSourceFilePackage
friend

The documentation for this class was generated from the following files: