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
const std::filesystem::path & getFilePath () const
const std::string & getAssetName () const
std::string getAssetHandle () const
std::size_t hash () const noexcept
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 6 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 40 of file AssetPath.h.

References assetName, and filePath.

◆ Path() [3/4]

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

Definition at line 43 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 47 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 27 of file AssetPath.h.

References assetName, empty(), and filePath.

Referenced by empty().

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

◆ getAssetHandle()

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

Definition at line 20 of file AssetPath.h.

References assetName, and filePath.

◆ getAssetName()

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

Definition at line 19 of file AssetPath.h.

References assetName.

◆ getFilePath()

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

Definition at line 18 of file AssetPath.h.

References filePath, and getFilePath().

Referenced by getFilePath().

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

◆ hash()

std::size_t Asset::Path::hash ( ) const
inlinenodiscardnoexcept

Definition at line 51 of file AssetPath.h.

References assetName, and filePath.

◆ 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 29 of file AssetPath.h.

References assetName, filePath, and Path().

Here is the call graph for this function:

◆ reset()

void Asset::Path::reset ( )
inline

Definition at line 58 of file AssetPath.h.

References assetName, and filePath.

Member Data Documentation

◆ assetName

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

Definition at line 37 of file AssetPath.h.

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

◆ filePath

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

Definition at line 36 of file AssetPath.h.

Referenced by empty(), getAssetHandle(), getFilePath(), hash(), operator==(), 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