Intrepid2
Static Public Member Functions | List of all members
Intrepid2::Impl::CreateViewFactory< ViewPack > Struct Template Reference

Factory to create a view based on the properties of input views The class is useful when the view can be of Fad type It works with both DynRankViews and Views. More...

#include <Intrepid2_Utils.hpp>

Static Public Member Functions

template<class OutViewType , class CtorProp , class... Dims>
static OutViewType create_view (const ViewPack &...views, const CtorProp &prop, const Dims... dims)
 Creates and returns a view that matches the value_type of the provided view When Sacado is enabled we use Sacado implementation.
 

Detailed Description

template<class... ViewPack>
struct Intrepid2::Impl::CreateViewFactory< ViewPack >

Factory to create a view based on the properties of input views The class is useful when the view can be of Fad type It works with both DynRankViews and Views.

Definition at line 344 of file Intrepid2_Utils.hpp.

Member Function Documentation

◆ create_view()

template<class... ViewPack>
template<class OutViewType , class CtorProp , class... Dims>
static OutViewType Intrepid2::Impl::CreateViewFactory< ViewPack >::create_view ( const ViewPack &...  views,
const CtorProp &  prop,
const Dims...  dims 
)
inlinestatic

Creates and returns a view that matches the value_type of the provided view When Sacado is enabled we use Sacado implementation.

Parameters
[in]views- the view(s) to match
[in]prop- the properties (e.g., label)
[in]dims- dimensions to use for the view (the logical dimensions; this method handles adding the derivative dimension required for Fad types).

Definition at line 353 of file Intrepid2_Utils.hpp.


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