Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Core::ConstexprPath< N > Class Template Reference

#include <Path.h>

Collaboration diagram for Engine::Core::ConstexprPath< N >:

Public Member Functions

constexpr ConstexprPath ()=default
constexpr ConstexprPath (const char(&literal)[N])
constexpr std::string_view view () const
std::filesystem::path fsPath () const
std::string string () const
constexpr const char * c_str () const
 operator std::filesystem::path () const
template<size_t M>
constexpr auto operator/ (const char(&other)[M]) const
std::filesystem::path operator/ (const std::filesystem::path &other) const
std::filesystem::path operator/ (std::string_view other) const

Private Attributes

std::array< char, N > path_ {}
size_t length_ = 0

Detailed Description

template<size_t N>
class Engine::Core::ConstexprPath< N >

Definition at line 13 of file Path.h.

Constructor & Destructor Documentation

◆ ConstexprPath() [1/2]

template<size_t N>
Engine::Core::ConstexprPath< N >::ConstexprPath ( )
constexprdefault

◆ ConstexprPath() [2/2]

template<size_t N>
Engine::Core::ConstexprPath< N >::ConstexprPath ( const char(&) literal[N])
inlineexplicitconstexpr

Definition at line 18 of file Path.h.

References length_, and path_.

Member Function Documentation

◆ c_str()

template<size_t N>
const char * Engine::Core::ConstexprPath< N >::c_str ( ) const
inlinenodiscardconstexpr

Definition at line 38 of file Path.h.

References path_.

◆ fsPath()

template<size_t N>
std::filesystem::path Engine::Core::ConstexprPath< N >::fsPath ( ) const
inlinenodiscard

Definition at line 28 of file Path.h.

References view().

Referenced by operator std::filesystem::path(), operator/(), and operator/().

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

◆ operator std::filesystem::path()

template<size_t N>
Engine::Core::ConstexprPath< N >::operator std::filesystem::path ( ) const
inline

Definition at line 43 of file Path.h.

References fsPath().

Here is the call graph for this function:

◆ operator/() [1/3]

template<size_t N>
template<size_t M>
auto Engine::Core::ConstexprPath< N >::operator/ ( const char(&) other[M]) const
inlinenodiscardconstexpr

Definition at line 46 of file Path.h.

References ConstexprPath, length_, and path_.

Here is the call graph for this function:

◆ operator/() [2/3]

template<size_t N>
std::filesystem::path Engine::Core::ConstexprPath< N >::operator/ ( const std::filesystem::path & other) const
inline

Definition at line 68 of file Path.h.

References fsPath().

Here is the call graph for this function:

◆ operator/() [3/3]

template<size_t N>
std::filesystem::path Engine::Core::ConstexprPath< N >::operator/ ( std::string_view other) const
inline

Definition at line 73 of file Path.h.

References fsPath().

Here is the call graph for this function:

◆ string()

template<size_t N>
std::string Engine::Core::ConstexprPath< N >::string ( ) const
inlinenodiscard

Definition at line 33 of file Path.h.

References view().

Here is the call graph for this function:

◆ view()

template<size_t N>
std::string_view Engine::Core::ConstexprPath< N >::view ( ) const
inlinenodiscardconstexpr

Definition at line 26 of file Path.h.

References length_, and path_.

Referenced by Engine::Core::assetExists(), fsPath(), Engine::Core::operator<<(), and string().

Here is the caller graph for this function:

Member Data Documentation

◆ length_

template<size_t N>
size_t Engine::Core::ConstexprPath< N >::length_ = 0
private

Definition at line 83 of file Path.h.

Referenced by ConstexprPath(), operator/(), and view().

◆ path_

template<size_t N>
std::array<char, N> Engine::Core::ConstexprPath< N >::path_ {}
private

Definition at line 82 of file Path.h.

Referenced by c_str(), ConstexprPath(), operator/(), and view().


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