Runtime
The Runtime module provides the runtime environment of Luna SDK and defines core functionalities that will be used by almost all modules.
Topics
- Algorithms
- Containers
- Assertions
- Atomic Operations
- Basic types
- Base64 encoding/decoding
- Base85 encoding/decoding
- Debugging
- DLL loading
- Error handling
- Files
- Hashing functions
- Interfaces
- Logging
- Math library
- Memory allocation and deallocation
- Memory utility library
- Module system
- Name strings
- Boxed objects
- Path
- Debugging
- Generating random numbers
- SDK initialization and shutdown
- Serialization
- String library
- Thread management and synchronization methods
- Times
- Thread safe assertion
- Type reflection
- Unicode encoding/decoding
Types
-
The default allocator implementation that can be used for allocating memory for containers defined in Runtime module.
-
Represents one binary large object (BLOB).
-
Represents one event that once triggered, invokes all handlers registered to it.
-
Function object for performing comparisons. Unless specialised, invokes
operator==
on type T. -
Function object for performing comparisons. Unless specialized, invokes
operator<
on type T. -
Function object that hashes the specified type into a
usize
hash code that can be used in hash map and hash set. -
Wraps one reference to one copyable, assignable object.
-
A function wrapper that can store one callable object, and enable coping, moving and invoking of such callable object.
-
An iterator adaptor that reverses the direction of a given iterator.
-
The smart pointer that represents one typeless strong reference to one boxed object.
-
The smart pointer that represents one typed strong reference to one boxed object.
-
The smart pointer that represents one typeless weak reference to one boxed object.
-
The smart pointer that represents one typed weak reference to one boxed object.
-
Represents a serial stream sequence of bytes and supports read/write operations on them.
-
Represents one stream object that supports setting the cursor position.
-
Represents a sequence of fixed-size elements. Every element can have one different type.
-
The default object deletion function used by UniquePtr, which calls memdelete to delete The object.
-
A smart pointer that wraps one dynamically created object, and deletes the object when the pointer is destructed.
-
Represents a dynamic typed object that stores data in a schema-less (self-described) manner.
Enumerations
-
Specify the seek mode for one seekable stream.
-
Defines all possible types of one Variant object.
-
Defines all possible number types of one number variant.
Functions
-
auto invoke(_Func &&f) -> decltype(static_cast< _Func && >(f)())
Invokes the specified callable object.
-
auto invoke(_Func &&f, _Ty &&arg1, _Args &&... args) -> invoke_result_t< _Func, _Ty, _Args... >
Invokes the specified callable object.
-
_Return invoke_r(_Func &&f, _Args &&... args)
Invokes the specified callable object.
-
constexpr ReverseIterator< _Iter > make_reverse_iterator(_Iter i)
Creates one reverse iterator from one iterator.
-
void advance(_Iter &it, _Distance n)
Advances the given iterator by
n
positions respectively. -
isize distance(_It first, _It last)
Gets the number of elements between two iterators.
-
_Iter next(_Iter it, isize n=1)
Gets one iterator to the next
n
th element of the element pointed by the input iterator. -
_BidirIt prev(_BidirIt it, isize n=1)
Gets one iterator to the last
n
th element of the element pointed by the input iterator. -
Creates a strong reference from one raw pointer without modifing its reference count.
-
Ref< _Ty > new_object(_Args &&... args)
Creates one new boxed object.
-
TupleElement< _I, Tuple< _Tys... > >::type & get(Tuple< _Tys... > &t)
Gets the
_I
th element from the tuple. -
TupleElement< _I, Tuple< _Tys... > >::type && get(Tuple< _Tys... > &&t)
Gets the
_I
th element from the tuple. -
TupleElement< _I, Tuple< _Tys... > >::type const & get(const Tuple< _Tys... > &t)
Gets the
_I
th element from the tuple. -
TupleElement< _I, Tuple< _Tys... > >::type const && get(const Tuple< _Tys... > &&t)
Gets the
_I
th element from the tuple. -
TupleElement< _I, Tuple< _Tys... > >::type volatile & get(volatile Tuple< _Tys... > &t)
Gets the
_I
th element from the tuple. -
TupleElement< _I, Tuple< _Tys... > >::type volatile && get(volatile Tuple< _Tys... > &&t)
Gets the
_I
th element from the tuple. -
TupleElement< _I, Tuple< _Tys... > >::type const volatile & get(const volatile Tuple< _Tys... > &t)
Gets the
_I
th element from the tuple. -
Gets the
_I
th element from the tuple. -
Gets the type object of Tuple.