tfel
Loading...
Searching...
No Matches
View.hxx File Reference

Classes

struct  tfel::math::internals::MakeViewReference< T >
struct  tfel::math::internals::MakeViewReference< qt< UnitType, ValueType > >
struct  tfel::math::internals::MakeConstViewReference< T >
struct  tfel::math::internals::MakeConstViewReference< qt< UnitType, ValueType > >
struct  tfel::math::ViewArrayPolicy< ValueType, IndexingPolicyType >
 a standard array policy. More...
struct  tfel::math::View< MappedType, IndexingPolicyType >
 view of an object from a continuous memory area More...
struct  tfel::math::MathObjectTraits< View< MappedType, ArrayPolicy > >
 partial specialisation of the MathObjectTraits for const views More...
struct  tfel::math::ResultOfEvaluation< View< MappedType, ArrayPolicy > >
 partial specialisation of the ResultOfEvaluation class for views. More...
struct  tfel::math::internals::ScalarViewImplementation< ScalarType, isQt >
struct  tfel::math::internals::ScalarViewImplementation< ScalarType, true >
struct  tfel::typetraits::IsAssignableTo< tfel::math::View< MathObject, IndexingPolicyType >, MathObject2 >
 generic partial specialisation for a view. More...
struct  tfel::typetraits::IsAssignableTo< MathObject, tfel::math::View< MathObject2, IndexingPolicyType2 > >
 generic partial specialisation for a view. More...
struct  tfel::typetraits::IsAssignableTo< tfel::math::View< MathObject, IndexingPolicyType >, tfel::math::View< MathObject2, IndexingPolicyType2 > >
 generic partial specialisation for a view. More...
struct  tfel::typetraits::IsAssignableTo< tfel::math::Expr< EvaluationResult, Operation >, tfel::math::View< MathObject, IndexingPolicyType > >
 specialisation of IsAssignableTo More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.
namespace  tfel::math::internals
 This namespace contains classes, functions, metafunctions and data structures that are used internally in the tfel::math namespace and that are meant to be used by the end user.

Typedefs

template<typename MappedType, typename IndexingPolicyType>
using tfel::math::selectViewArrayBase
 a simple alias
template<typename MappedType>
using tfel::math::ViewStorageType
template<typename MappedType>
using tfel::math::ViewDataPointerType
template<typename MappedType>
using tfel::math::ViewConstDataPointerType = const ViewStorageType<MappedType>*
template<ScalarConcept ScalarType>
using tfel::math::scalar_view
 view to a scalar
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using tfel::math::ConstView

Functions

template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< ScalarType > tfel::math::map (base_type< ScalarType > *const p)
template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< ScalarType > tfel::math::map (base_type< ScalarType > &v)
template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< const ScalarType > tfel::math::map (const base_type< ScalarType > *const p)
template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< const ScalarType > tfel::math::map (const base_type< ScalarType > &v)
template<typename MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ( (!std::is_const_v<MappedType>)&&(!isScalar<MappedType>()) && (std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr View< MappedType, IndexingPolicyType > tfel::math::map (const ViewDataPointerType< MappedType > p)
 return a view from a memory area
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ( (!isScalar<MappedType>()) && (std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr View< const MappedType, IndexingPolicyType > tfel::math::map (const ViewConstDataPointerType< MappedType > p)
template<typename MappedType, typename... Args>
constexpr auto tfel::math::canMakeViewFromLastArgument ()
 an helper metafunction which check of the last type of the type list is convertible to a pointer to a memory area that can be used to create a view.
template<typename MappedType, typename... Args>
constexpr auto tfel::math::canMakeConstViewFromLastArgument ()
 an helper metafunction which check of the last type of the type list is convertible to a const pointer to a memory area that can be used to create a view.
template<typename MappedType, typename... Args, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ( (!std::is_const_v<MappedType>)&&(!IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename MappedType::indexing_policy>()) && (canMakeViewFromLastArgument<MappedType, Args...>()))
TFEL_HOST_DEVICE constexpr View< MappedType, IndexingPolicyType > tfel::math::map (Args &&... args)
 return a view from a memory area
template<typename MappedType, typename... Args, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ( (!std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()) && (canMakeConstViewFromLastArgument<std::remove_cv_t<MappedType>, Args...>()))
TFEL_HOST_DEVICE constexpr View< const MappedType, IndexingPolicyType > tfel::math::map (const Args &... args)
 return a view from a memory area

Detailed Description

Author
Thomas Helfer
Date
01/01/2021