CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::impl Namespace Reference

Helper functions for comparing iterators. More...

Namespaces

namespace  compare
 
namespace  dereference
 Helper functions for dereferencing iterators.
 
namespace  increment
 Helper functions for incrementing iterators.
 

Classes

struct  ByteSwapper
 
struct  ByteSwapper< Endian::Native, T >
 
struct  is_explicitly_constructible_t
 A type trait type that checks if Type is explicitly constructible from Arguments. More...
 
struct  is_explicitly_constructible_t< Type, Argument, Arguments... >
 
struct  is_implicitly_constructible_t
 A type trait type that checks if Type is implicitly constructible from Arguments. More...
 
struct  is_implicitly_constructible_t< Type, Argument, Arguments... >
 A type trait type that checks if Type is implicitly constructible from Arguments. More...
 
struct  PolyImplementation
 A struct that contains the implementation for each concrete type get, copy, move and destroy functions. More...
 
class  TDereferenceableTypeTrait
 
class  TDereferenceableTypeTrait< T >
 
class  TErasableTypeTrait
 
class  TErasableTypeTrait< T >
 
class  TIncrementableTypeTrait
 
class  TIncrementableTypeTrait< T >
 
class  TIndexableTypeTrait
 
class  TIndexableTypeTrait< T >
 
class  TInsertableTypeTrait
 
class  TInsertableTypeTrait< T >
 
class  TIterableTypeTrait
 
class  TIterableTypeTrait< T >
 
class  TMetaReflectableClassType
 
class  TMetaReflectableClassType< T >
 
class  TPushBackableTypeTrait
 
class  TPushBackableTypeTrait< T >
 
struct  WithoutState
 
struct  WithState
 

Concepts

concept  CSame
 
concept  ToStringMemberCallable
 
concept  ReflectableClass
 

Functions

template<typename T >
TadvanceBytes (T *pointer, std::ptrdiff_t bytes)
 Utility function that advances a pointer by a fixed number of bytes, independent of the size of T.
 
const voidcastInternal (const Box &self, const Type &type)
 

Detailed Description

Helper functions for comparing iterators.

Function Documentation

◆ advanceBytes()

template<typename T >
T * CeresEngine::impl::advanceBytes ( T pointer,
std::ptrdiff_t  bytes 
)

Utility function that advances a pointer by a fixed number of bytes, independent of the size of T.

Note
This can be unsafe on certain architectures that don't allow unaligned access to memory.
Template Parameters
TThe pointer element type.
Parameters
pointerThe pointer to be advanced by bytes bytes.
bytesThe number of bytes to advance pointer by.
Returns
The pointer byte advanced by bytes bytes.

◆ castInternal()

const void * CeresEngine::impl::castInternal ( const Box self,
const Type type 
)