LiteFX 0.3.1.2022
Computer Graphics Engine
|
Namespaces | |
namespace | Graphics |
namespace | Logging |
namespace | Math |
namespace | ranges |
Contains helpers for working with ranges and views. | |
namespace | Rendering |
namespace | rtti |
Classes | |
class | App |
The base class for an application. More... | |
class | AppBuilder |
Creates a new builder for an App. More... | |
class | AppVersion |
Contains the version of an App. More... | |
class | Builder |
Describes an generic builder type. More... | |
class | Builder< TDerived, T, std::nullptr_t, typename TPointer > |
Describes a root builder. More... | |
class | ExceptionBase |
class | IBackend |
The base class for an app backend. More... | |
class | Implement |
Base class for an implementation of a public interface class. More... | |
class | IResource |
Provides access to a resource managed by the class. More... | |
class | PimplPtr |
A smart pointer that manages an implementation instance for a public interface class. More... | |
class | Resource |
Implements the IResource interface. More... | |
Typedefs | |
using | Handle = void * |
Represents a handle type. More... | |
template<class TKey , class TVal > | |
using | Dictionary = std::unordered_map< TKey, TVal > |
Represents a dictionary that maps a key to a certain value. More... | |
template<class T > | |
using | Array = std::vector< T > |
Represents a dynamic array. More... | |
template<class T > | |
using | Queue = std::queue< T > |
Represents a queue. More... | |
template<class T > | |
using | Span = std::span< T > |
Represents a view of an array. More... | |
template<class T > | |
using | Optional = std::optional< T > |
Represents an optional value. More... | |
template<class T , class TDeleter = std::default_delete<T>> | |
using | UniquePtr = std::unique_ptr< T, TDeleter > |
Represents a unique pointer, that expresses exclusive ownership. More... | |
template<class T > | |
using | SharedPtr = std::shared_ptr< T > |
Represents a shared pointer, that expresses non-exclusive ownership. More... | |
template<class T > | |
using | WeakPtr = std::weak_ptr< T > |
Represents a weak pointer, that expresses a reference to a shared pointer instance. More... | |
template<class... T> | |
using | Tuple = std::tuple< T... > |
Represents a tuple of multiple objects. More... | |
template<class... T> | |
using | Variant = std::variant< T... > |
Represents a variant of objects. More... | |
using | Exception = std::exception |
using | String = std::string |
using | WString = std::wstring |
using | StringView = std::string_view |
using | WStringView = std::wstring_view |
Functions | |
template<class T > | |
UniquePtr< T > | makeUnique () |
Creates a new unique pointer. More... | |
template<class T , class... TArgs> | |
UniquePtr< T > | makeUnique (TArgs &&... _args) |
Creates a new unique pointer. More... | |
template<class T > | |
SharedPtr< T > | makeShared () |
Creates a new shared pointer. More... | |
template<class T , class... TArgs> | |
SharedPtr< T > | makeShared (TArgs &&... _args) |
Creates a new shared pointer. More... | |
template<class T > | |
SharedPtr< T > | makeShared (UniquePtr< T > &&ptr) |
Transfers a unique pointer to a shared pointer. The unique pointer will be released during this process. More... | |
template<class T , class... Arg> | |
PimplPtr< T > | makePimpl (Arg &&... arg) |
Creates a pointer to an implementation. More... | |
DEFINE_EXCEPTION (InvalidArgumentException, std::invalid_argument) | |
DEFINE_EXCEPTION (ArgumentOutOfRangeException, std::out_of_range) | |
DEFINE_EXCEPTION (ArgumentNotInitializedException, std::logic_error) | |
DEFINE_EXCEPTION (RuntimeException, std::runtime_error) | |
template<typename TStrings , typename Value = typename TStrings::value_type> | |
String | Join (const TStrings &elements, const String &delimiter="") |
WString | Widen (StringView utf8) |
Converts an UTF-8 single-byte encoded string into an UTF-16 representation. More... | |
String | Narrow (WStringView utf16) |
Converts an UTF-16 multi-byte encoded string into an UTF-8 representation. More... | |
using LiteFX::Array = typedef std::vector<T> |
Represents a dynamic array.
T | The type of the array elements. |
using LiteFX::Dictionary = typedef std::unordered_map<TKey, TVal> |
Represents a dictionary that maps a key to a certain value.
TKey | The type of the key. |
TVal | The type of the value. |
using LiteFX::Exception = typedef std::exception |
using LiteFX::Handle = typedef void* |
Represents a handle type.
using LiteFX::Optional = typedef std::optional<T> |
Represents an optional value.
T | The type of the optional value. |
using LiteFX::Queue = typedef std::queue<T> |
Represents a queue.
T | The type of the queue elements. |
using LiteFX::SharedPtr = typedef std::shared_ptr<T> |
Represents a shared pointer, that expresses non-exclusive ownership.
T | The type of the object the pointer points to. |
using LiteFX::Span = typedef std::span<T> |
Represents a view of an array.
T | The type of the array elements. |
using LiteFX::String = typedef std::string |
using LiteFX::StringView = typedef std::string_view |
using LiteFX::Tuple = typedef std::tuple<T...> |
Represents a tuple of multiple objects.
...T | The types of the objects, contained by the tuple. |
using LiteFX::UniquePtr = typedef std::unique_ptr<T, TDeleter> |
Represents a unique pointer, that expresses exclusive ownership.
T | The type of the object the pointer points to. |
TDeleter | The deleter for the pointed object. |
using LiteFX::Variant = typedef std::variant<T...> |
Represents a variant of objects.
...T | The types of the objects, that can be contained by the tuple. |
using LiteFX::WeakPtr = typedef std::weak_ptr<T> |
Represents a weak pointer, that expresses a reference to a shared pointer instance.
T | The type of the object the pointer points to. |
using LiteFX::WString = typedef std::wstring |
using LiteFX::WStringView = typedef std::wstring_view |
LiteFX::DEFINE_EXCEPTION | ( | ArgumentNotInitializedException | , |
std::logic_error | |||
) |
LiteFX::DEFINE_EXCEPTION | ( | ArgumentOutOfRangeException | , |
std::out_of_range | |||
) |
LiteFX::DEFINE_EXCEPTION | ( | InvalidArgumentException | , |
std::invalid_argument | |||
) |
LiteFX::DEFINE_EXCEPTION | ( | RuntimeException | , |
std::runtime_error | |||
) |
String LiteFX::Join | ( | const TStrings & | elements, |
const String & | delimiter = "" |
||
) |
PimplPtr< T > LiteFX::makePimpl | ( | Arg &&... | arg | ) |
Creates a pointer to an implementation.
T | The type of the implementation class. |
...Arg | The variadic argument types forwarded to the implementation classes' constructor. |
...arg | The arguments forwarded to the implementation classes' constructor. |
SharedPtr< T > LiteFX::makeShared | ( | ) |
Creates a new shared pointer.
T | The type of the object, the pointer points to. |
SharedPtr< T > LiteFX::makeShared | ( | TArgs &&... | _args | ) |
Creates a new shared pointer.
T | The type of the object, the pointer points to. |
Transfers a unique pointer to a shared pointer. The unique pointer will be released during this process.
T | The type of the object, the pointer points to. |
ptr | The unique pointer that should be turned into a shared pointer. |
UniquePtr< T > LiteFX::makeUnique | ( | ) |
Creates a new unique pointer.
T | The type of the object, the pointer points to. |
UniquePtr< T > LiteFX::makeUnique | ( | TArgs &&... | _args | ) |
Creates a new unique pointer.
T | The type of the object, the pointer points to. |
|
inline |
Converts an UTF-16 multi-byte encoded string into an UTF-8 representation.
utf16 |
|
inline |
Converts an UTF-8 single-byte encoded string into an UTF-16 representation.
utf8 |