Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
AccessCasted< TAR > Struct Template Reference

#include "lib/access-casted.hpp"

Description

template<typename TAR>
struct util::AccessCasted< TAR >

Helper template to access a given value, possibly converted or casted in a safe way.

Definition at line 144 of file access-casted.hpp.

Public Types

typedef TAR Ret
 

Static Public Member Functions

template<typename SRC >
static if_can_use_dynamic_downcast< SRC &&, TAR >::type access (SRC &&elem)
 
template<typename SRC >
static if_can_use_conversion< SRC &&, TAR >::type access (SRC &&elem)
 
template<typename SRC >
static if_can_take_address< SRC &&, TAR >::type access (SRC &&elem)
 
template<typename SRC >
static if_can_dereference< SRC &&, TAR >::type access (SRC &&elem)
 
static TAR access (...)
 catch-all to signal failure of conversion
 

Member Typedef Documentation

◆ Ret

template<typename TAR >
typedef TAR Ret

Definition at line 146 of file access-casted.hpp.

Member Function Documentation

◆ access() [1/5]

template<typename TAR >
template<typename SRC >
static if_can_use_dynamic_downcast< SRC &&, TAR >::type access ( SRC &&  elem)
inlinestatic

Definition at line 151 of file access-casted.hpp.

Referenced by InPlaceBuffer< BA, siz, DEFAULT >::access(), AccessCasted< TAR >::access(), InPlaceAnyHolder_useCommonBase< BA >::convert2base(), and AccessCasted_test::run().

+ Here is the caller graph for this function:

◆ access() [2/5]

template<typename TAR >
template<typename SRC >
static if_can_use_conversion< SRC &&, TAR >::type access ( SRC &&  elem)
inlinestatic

Definition at line 168 of file access-casted.hpp.

◆ access() [3/5]

template<typename TAR >
template<typename SRC >
static if_can_take_address< SRC &&, TAR >::type access ( SRC &&  elem)
inlinestatic

Definition at line 176 of file access-casted.hpp.

References AccessCasted< TAR >::access().

+ Here is the call graph for this function:

◆ access() [4/5]

template<typename TAR >
template<typename SRC >
static if_can_dereference< SRC &&, TAR >::type access ( SRC &&  elem)
inlinestatic

Definition at line 184 of file access-casted.hpp.

References AccessCasted< TAR >::access().

+ Here is the call graph for this function:

◆ access() [5/5]

template<typename TAR >
static TAR access (   ...)
inlinestatic

catch-all to signal failure of conversion

Definition at line 196 of file access-casted.hpp.

+ Collaboration diagram for AccessCasted< TAR >:

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