opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
osc::ResourcePath Class Referencefinal

#include <resource_path.h>

Public Member Functions

template<typename... Args>
requires std::constructible_from<std::filesystem::path, Args&&...>
 ResourcePath (Args &&... args)
 
std::string string () const
 
bool has_extension (std::string_view ext) const
 
std::string stem () const
 

Friends

struct std::hash< osc::ResourcePath >
 
bool operator== (const ResourcePath &, const ResourcePath &)=default
 
ResourcePath operator/ (const ResourcePath &lhs, const ResourcePath &rhs)
 
ResourcePath operator/ (const ResourcePath &lhs, std::string_view rhs)
 
std::ostream & operator<< (std::ostream &out, const ResourcePath &resource_path)
 

Constructor & Destructor Documentation

◆ ResourcePath()

template<typename... Args>
requires std::constructible_from<std::filesystem::path, Args&&...>
osc::ResourcePath::ResourcePath ( Args &&...  args)
inline

Member Function Documentation

◆ has_extension()

bool osc::ResourcePath::has_extension ( std::string_view  ext) const
inline

◆ stem()

std::string osc::ResourcePath::stem ( ) const
inline

◆ string()

std::string osc::ResourcePath::string ( ) const
inline

Friends And Related Symbol Documentation

◆ operator/ [1/2]

ResourcePath operator/ ( const ResourcePath lhs,
const ResourcePath rhs 
)
friend

◆ operator/ [2/2]

ResourcePath operator/ ( const ResourcePath lhs,
std::string_view  rhs 
)
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const ResourcePath resource_path 
)
friend

◆ operator==

bool operator== ( const ResourcePath ,
const ResourcePath  
)
friend

◆ std::hash< osc::ResourcePath >

friend struct std::hash< osc::ResourcePath >
friend

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