preCICE v3.1.2
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
precice::testing::WhiteboxAccessor Struct Reference

struct giving access to the impl of a befriended class or struct More...

#include <Testing.hpp>

Inheritance diagram for precice::testing::WhiteboxAccessor:
[legend]

Static Public Member Functions

template<typename T >
static auto impl (T &obj) -> typename std::add_lvalue_reference< decltype(*(obj._impl))>::type
 

Detailed Description

struct giving access to the impl of a befriended class or struct

Definition at line 37 of file Testing.hpp.

Member Function Documentation

◆ impl()

template<typename T >
static auto precice::testing::WhiteboxAccessor::impl ( T & obj) -> typename std::add_lvalue_reference<decltype(*(obj._impl))>::type
inlinestatic

Returns the impl of the obj by reference.

Returns a reference to the object pointed to by the _impl of a class. This class needs to be friend of T.

Parameters
[in]objThe object to fetch the impl from.
Returns
a lvalue reference to the impl object.

Definition at line 47 of file Testing.hpp.


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