defaultvalue.h File Reference

Detailed Description

Default value definitions

Classes

struct  DefaultDefaultValue< T >
 
class  DefaultValueFunctions< T >
 
class  DefaultValueDetector< T, f >
 
class  DefaultValueZeroInitializedHelper< T, ALLOW_NONCONST >
 
class  DefaultValueZeroInitializedHelper< T &, ALLOW_NONCONST >
 
class  DefaultValueZeroInitializedHelper< const T &, ALLOW_NONCONST >
 
class  DefaultValueTypeHelper< T, ALLOW_NONCONST >
 
class  DefaultValueTypeHelper< T &, ALLOW_NONCONST >
 
class  DefaultValueTypeHelper< const T &, ALLOW_NONCONST >
 
class  DefaultValueFunctionsHelper< T, ALLOW_NONCONST >
 
class  DefaultValueFunctionsHelper< T &, ALLOW_NONCONST >
 
class  DefaultValueFunctionsHelper< const T &, ALLOW_NONCONST >
 
class  DefaultValueFunctions< Result< T > >
 

Namespaces

 maxon
 

Enumerations

enum class  NULL_RETURN_REASON {
  NULLPTR ,
  MAKE_WRITABLE_FAILED ,
  UNRESOLVED ,
  NULLIMPL
}
 

Functions

template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE const T & PrivateConstRefDefaultValue (T *, OverloadRank0)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE const T & PrivateConstRefDefaultValueHelper (OverloadRank0)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE DefaultValueDetector< const T &, &T::DefaultValue >::type PrivateConstRefDefaultValueHelper (OverloadRank1)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE DefaultValueDetector< const T &, &T::DefaultValueRef >::type PrivateConstRefDefaultValueHelper (OverloadRank2)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINEPrivateDefaultValueHelper (OverloadRank0)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE DefaultValueDetector< T, &T::DefaultValue >::type PrivateDefaultValueHelper (OverloadRank1)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE DefaultValueDetector< const T &, &T::DefaultValue >::type PrivateDefaultValueHelper (OverloadRank1)
 
template<typename T , Bool ALLOW_NONCONST>
MAXON_ATTRIBUTE_FORCE_INLINEPrivateDefaultValueDispatcher (OverloadRank0)
 
template<typename T , Bool ALLOW_NONCONST>
MAXON_ATTRIBUTE_FORCE_INLINE SFINAEHelper< T, typename DefaultValueFunctions< typename std::decay< T >::type >::Default >::type PrivateDefaultValueDispatcher (OverloadRank1)
 
template<typename T , Bool ALLOW_NONCONST>
MAXON_ATTRIBUTE_FORCE_INLINE std::enable_if< IsZeroInitialized< typename std::decay< T >::type >::value||STD_IS_REPLACEMENT(same, typename std::decay< T >::type, Generic), T >::type PrivateDefaultValueDispatcher (OverloadRank2)
 
template<typename T , Bool ALLOW_NONCONST>
MAXON_ATTRIBUTE_FORCE_INLINEDefaultValue ()
 
template<>
MAXON_ATTRIBUTE_FORCE_INLINE void DefaultValue< void, false > ()
 
enum maxon::NULL_RETURN_REASON MAXON_ENUM_LIST (NULL_RETURN_REASON)
 
ThreadReferencedError PrivateGetNullReturnError (NULL_RETURN_REASON reason)
 
MAXON_ATTRIBUTE_FORCE_INLINE void PrivateLogNullptrError ()
 
MAXON_ATTRIBUTE_FORCE_INLINE Bool PrivateLogNullptrError (Bool result)
 
template<typename T , Bool ALLOW_CONST>
MAXON_ATTRIBUTE_FORCE_INLINEPrivateDefaultReturnValue (NULL_RETURN_REASON reason, OverloadRank0)
 
template<typename T , Bool ALLOW_CONST>
MAXON_ATTRIBUTE_FORCE_INLINE SFINAEHelper< T, typename DefaultValueFunctions< typename std::decay< T >::type >::Default >::type PrivateDefaultReturnValue (NULL_RETURN_REASON reason, OverloadRank1)
 
template<typename T , Bool ALLOW_CONST>
MAXON_ATTRIBUTE_FORCE_INLINE SFINAEHelper< T, typename DefaultValueFunctions< typename std::decay< T >::type >::ResultMarker >::type PrivateDefaultReturnValue (NULL_RETURN_REASON reason, OverloadRank2)
 
template<typename T , Bool ALLOW_CONST>
MAXON_ATTRIBUTE_FORCE_INLINE std::enable_if< STD_IS_REPLACEMENT(same, Id, typename std::decay< T >::type), T >::type PrivateDefaultReturnValue (NULL_RETURN_REASON reason, OverloadRank3)
 
template<typename T , Bool ALLOW_CONST>
MAXON_ATTRIBUTE_FORCE_INLINE std::enable_if< IsZeroInitialized< typename std::decay< T >::type >::value||STD_IS_REPLACEMENT(same, typename std::decay< T >::type, Generic), T >::type PrivateDefaultReturnValue (NULL_RETURN_REASON reason, OverloadRank4)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINEPrivateIncompleteNullReturnValue (NULL_RETURN_REASON reason, OverloadRank0)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE SFINAEHelper< T, typename DefaultValueFunctions< typename std::decay< T >::type >::Default >::type PrivateIncompleteNullReturnValue (NULL_RETURN_REASON reason, OverloadRank1)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE SFINAEHelper< T, typename DefaultValueFunctions< typename std::decay< T >::type >::ResultMarker >::type PrivateIncompleteNullReturnValue (NULL_RETURN_REASON reason, OverloadRank2)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE std::enable_if< STD_IS_REPLACEMENT(same, Id, typename std::decay< T >::type), T >::type PrivateIncompleteNullReturnValue (NULL_RETURN_REASON reason, OverloadRank3)
 
template<typename T >
MAXON_ATTRIBUTE_FORCE_INLINE std::enable_if< IsZeroInitialized< typename std::decay< T >::type >::value, T >::type PrivateIncompleteNullReturnValue (NULL_RETURN_REASON reason, OverloadRank4)
 

Variables

Char g_writableMemory [1024]
 
 NULLPTR
 
 MAKE_WRITABLE_FAILED
 
 UNRESOLVED
 
 NULLIMPL
 

Variable Documentation

◆ NULLPTR

NULLPTR

◆ MAKE_WRITABLE_FAILED

MAKE_WRITABLE_FAILED

◆ UNRESOLVED

UNRESOLVED

◆ NULLIMPL

NULLIMPL