Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Asset::Path Struct Reference

#include <AssetPath.h>

Collaboration diagram for Asset::Path:

Public Member Functions

 Path ()=default
 Path (const std::filesystem::path &path, const std::string &assetName)
 Path (Path &&other) noexcept
 Path (const Path &other) noexcept
Pathoperator= (const Path &)=default
Pathoperator= (Path &&) noexcept=default
std::filesystem::path getFilePath () const
std::string getAssetName () const
std::string getAssetHandle () const
bool empty () const
 Checks whether this path doesn't point to anything. So it is empty.
bool operator== (const Path &other) const
void reset ()

Private Attributes

std::filesystem::path filePath = ""
std::string assetName = std::string("")

Detailed Description

Definition at line 5 of file AssetPath.h.

Constructor & Destructor Documentation

◆ Path() [1/4]

Asset::Path::Path ( )
default

References assetName, and Path().

Referenced by operator=(), operator=(), operator==(), Path(), Path(), and Path().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Path() [2/4]

Asset::Path::Path ( const std::filesystem::path & path,
const std::string & assetName )
inline

Definition at line 38 of file AssetPath.h.

References assetName, and filePath.

◆ Path() [3/4]

Asset::Path::Path ( Path && other)
inlinenoexcept

Definition at line 41 of file AssetPath.h.

References assetName, filePath, and Path().

Here is the call graph for this function:

◆ Path() [4/4]

Asset::Path::Path ( const Path & other)
inlinenoexcept

Definition at line 45 of file AssetPath.h.

References assetName, filePath, and Path().

Here is the call graph for this function:

Member Function Documentation

◆ empty()

bool Asset::Path::empty ( ) const
inlinenodiscard

Checks whether this path doesn't point to anything. So it is empty.

Returns
If the path is empty and doesn't point to anything

Definition at line 25 of file AssetPath.h.

References assetName, and filePath.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveData(), and EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

Here is the caller graph for this function:

◆ getAssetHandle()

std::string Asset::Path::getAssetHandle ( ) const
inlinenodiscard

Definition at line 19 of file AssetPath.h.

References assetName, and filePath.

Referenced by operator==(), Ecs::ModelAssetPipeline::processMaterial(), Ecs::ModelAssetPipeline::processMeshData(), EngineCore::RenderingDataManager::updatePrimitiveData(), EngineCore::RenderingDataManager::updatePrimitiveDataInstanced(), and EngineCore::RenderingDataManager::uploadMaterialBuffers().

Here is the caller graph for this function:

◆ getAssetName()

std::string Asset::Path::getAssetName ( ) const
inlinenodiscard

Definition at line 18 of file AssetPath.h.

References assetName.

◆ getFilePath()

std::filesystem::path Asset::Path::getFilePath ( ) const
inlinenodiscard

Definition at line 17 of file AssetPath.h.

References filePath, and getFilePath().

Referenced by getFilePath(), and EngineCore::AssetManager::getMeshAsset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

Path & Asset::Path::operator= ( const Path & )
default

References Path().

Here is the call graph for this function:

◆ operator=() [2/2]

Path & Asset::Path::operator= ( Path && )
defaultnoexcept

References Path().

Here is the call graph for this function:

◆ operator==()

bool Asset::Path::operator== ( const Path & other) const
inline

Definition at line 27 of file AssetPath.h.

References getAssetHandle(), and Path().

Here is the call graph for this function:

◆ reset()

void Asset::Path::reset ( )
inline

Definition at line 49 of file AssetPath.h.

References assetName, and filePath.

Member Data Documentation

◆ assetName

std::string Asset::Path::assetName = std::string("")
private

Definition at line 35 of file AssetPath.h.

Referenced by empty(), getAssetHandle(), getAssetName(), Path(), Path(), Path(), Path(), and reset().

◆ filePath

std::filesystem::path Asset::Path::filePath = ""
private

Definition at line 34 of file AssetPath.h.

Referenced by empty(), getAssetHandle(), getFilePath(), Path(), Path(), Path(), and reset().


The documentation for this struct was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Files/AssetPath.h