DofProgramWiseIndexListPerVertexCoordIndexListManager.hxx 1.96 KB
Newer Older
GILLES Sebastien's avatar
GILLES Sebastien committed
1 2 3 4 5 6 7 8 9 10 11 12 13
/*!
//
// \file
//
//
// Created by Sebastien Gilles <sebastien.gilles@inria.fr> on the Fri, 18 Dec 2015 15:36:26 +0100
// Copyright (c) Inria. All rights reserved.
//
// \ingroup FiniteElementGroup
// \addtogroup FiniteElementGroup
// \{
*/

14

15 16
#ifndef MOREFEM_x_FINITE_ELEMENT_x_FINITE_ELEMENT_SPACE_x_INTERNAL_x_DOF_PROGRAM_WISE_INDEX_LIST_PER_VERTEX_COORD_INDEX_LIST_MANAGER_HXX_
# define MOREFEM_x_FINITE_ELEMENT_x_FINITE_ELEMENT_SPACE_x_INTERNAL_x_DOF_PROGRAM_WISE_INDEX_LIST_PER_VERTEX_COORD_INDEX_LIST_MANAGER_HXX_
17 18


19
namespace MoReFEM
20 21 22
{


23
    namespace Internal
24
    {
25 26


27
        namespace FEltSpaceNS
28
        {
29 30


31
            template<class SectionT>
32
            void DofProgramWiseIndexListPerVertexCoordIndexListManager::Create(const SectionT& section,
GILLES Sebastien's avatar
GILLES Sebastien committed
33
                                                                               const GodOfDof& god_of_dof)
34
            {
35
                namespace ipl = Internal::InputDataNS;
36

37 38 39
                decltype(auto) felt_space_index = ipl::ExtractParameter<typename SectionT::FEltSpaceIndex>(section);
                decltype(auto) numbering_subset_index =
                    ipl::ExtractParameter<typename SectionT::NumberingSubsetIndex>(section);
40

41 42 43 44 45
                Create(section.GetUniqueId(),
                       god_of_dof,
                       felt_space_index,
                       numbering_subset_index);
            }
46 47 48


            inline const auto& DofProgramWiseIndexListPerVertexCoordIndexListManager::GetStorage() const noexcept
49 50 51
            {
                return list_;
            }
52 53 54


            inline auto& DofProgramWiseIndexListPerVertexCoordIndexListManager::GetNonCstStorage() noexcept
55 56
            {
                return list_;
57

58
            }
59 60


61
        } // namespace FEltSpaceNS
62 63


64
    } // namespace Internal
65 66


67
} // namespace MoReFEM
68 69


70 71 72
/// @} // addtogroup FiniteElementGroup


73
#endif // MOREFEM_x_FINITE_ELEMENT_x_FINITE_ELEMENT_SPACE_x_INTERNAL_x_DOF_PROGRAM_WISE_INDEX_LIST_PER_VERTEX_COORD_INDEX_LIST_MANAGER_HXX_