dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::PDELab::CompositeEntityBlockedLocalOrdering< Children > Class Template Reference

#include <dune/pdelab/ordering/entityblockedlocalordering.hh>

Inheritance diagram for Dune::PDELab::CompositeEntityBlockedLocalOrdering< Children >:
Inheritance graph

Public Types

typedef Base::Traits Traits
 

Public Member Functions

 CompositeEntityBlockedLocalOrdering (bool container_blocked, std::shared_ptr< Children >... children)
 
Traits::SizeType size (const typename Traits::ContainerIndex &suffix, const typename Traits::DOFIndex::EntityIndex &index) const
 Returns the size for a given suffix. More...
 
Traits::SizeType size (const typename Traits::DOFIndex::EntityIndex &index) const
 
Traits::SizeType size (const typename Traits::SizeType geometry_type_index, const typename Traits::SizeType entity_index) const
 
Traits::SizeType size (const typename Traits::SizeType geometry_type_index, const typename Traits::SizeType entity_index, const typename Traits::SizeType child_index) const
 
void map_local_index (const typename Traits::SizeType geometry_type_index, const typename Traits::SizeType entity_index, typename Traits::TreeIndexView mi, typename Traits::ContainerIndex &ci) const
 
void map_lfs_indices (const ItIn begin, const ItIn end, ItOut out) const
 Set last index of container indices. More...
 
Traits::SizeType extract_entity_indices (const typename Traits::DOFIndex::EntityIndex &ei, typename Traits::SizeType child_index, CIOutIterator ci_out, const CIOutIterator ci_end, DIOutIterator di_out=DIOutIterator()) const
 
Traits::SizeType offset (const typename Traits::SizeType geometry_type_index, const typename Traits::SizeType entity_index, const typename Traits::SizeType child_index) const
 
bool fixedSize () const
 
bool contains (const GeometryType &gt) const
 
bool contains (typename Traits::SizeType codim) const
 
bool contains_geometry_type (typename Traits::SizeType gt_index) const
 
Traits::SizeType maxLocalSize () const
 

Static Public Attributes

static const bool consume_tree_index = true
 
static const bool has_dynamic_ordering_children
 
static constexpr auto GT_UNUSED
 

Protected Types

typedef impl::GridFunctionSpaceOrderingData< typename Traits::SizeTypeGFSData
 

Protected Member Functions

Traits::SizeType node_size (const Node &node, typename Traits::ContainerIndex suffix, const typename Traits::DOFIndex::EntityIndex &index) const
 Gives the size for a given entity and suffix. More...
 
bool containerBlocked () const
 
std::size_t childOrderingCount () const
 
LocalOrderingBasechildOrdering (typename Traits::SizeType i)
 
const LocalOrderingBasechildOrdering (typename Traits::SizeType i) const
 
void disable_container_blocking ()
 
void setup_fixed_size_possible ()
 Initial setup of the flag indicating whether a fixed size ordering is possible. More...
 

Protected Attributes

bool _fixed_size
 
bool _fixed_size_possible
 
bool _container_blocked
 
std::size_t _max_local_size
 
const std::size_t _child_count
 
std::vector< LocalOrderingBase * > _children
 
Traits::CodimFlag _codim_used
 
std::vector< bool > _gt_used
 
std::vector< typename Traits::SizeType_gt_entity_offsets
 
std::vector< typename Traits::SizeType_gt_dof_offsets
 
std::vector< typename Traits::SizeType_entity_dof_offsets
 
GFSData_gfs_data
 

Member Typedef Documentation

◆ GFSData

typedef impl::GridFunctionSpaceOrderingData<typename Traits::SizeType> Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::GFSData
protectedinherited

◆ Traits

template<typename... Children>
typedef Base::Traits Dune::PDELab::CompositeEntityBlockedLocalOrdering< Children >::Traits

Constructor & Destructor Documentation

◆ CompositeEntityBlockedLocalOrdering()

template<typename... Children>
Dune::PDELab::CompositeEntityBlockedLocalOrdering< Children >::CompositeEntityBlockedLocalOrdering ( bool  container_blocked,
std::shared_ptr< Children >...  children 
)
inline

Member Function Documentation

◆ childOrdering() [1/2]

LocalOrderingBase & Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::childOrdering ( typename Traits::SizeType  i)
inlineprotectedinherited

◆ childOrdering() [2/2]

const LocalOrderingBase & Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::childOrdering ( typename Traits::SizeType  i) const
inlineprotectedinherited

◆ childOrderingCount()

std::size_t Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::childOrderingCount ( ) const
inlineprotectedinherited

◆ containerBlocked()

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::containerBlocked ( ) const
inlineprotectedinherited

◆ contains() [1/2]

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::contains ( const GeometryType &  gt) const
inlineinherited

◆ contains() [2/2]

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::contains ( typename Traits::SizeType  codim) const
inlineinherited

◆ contains_geometry_type()

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::contains_geometry_type ( typename Traits::SizeType  gt_index) const
inlineinherited

◆ disable_container_blocking()

void Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::disable_container_blocking ( )
inlineprotectedinherited

◆ extract_entity_indices()

Traits::SizeType Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::extract_entity_indices ( const typename Traits::DOFIndex::EntityIndex &  ei,
typename Traits::SizeType  child_index,
CIOutIterator  ci_out,
const CIOutIterator  ci_end,
DIOutIterator  di_out = DIOutIterator() 
) const
inlineinherited

◆ fixedSize()

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::fixedSize ( ) const
inlineinherited

◆ map_lfs_indices()

void Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::map_lfs_indices ( const ItIn  begin,
const ItIn  end,
ItOut  out 
) const
inlineinherited

Set last index of container indices.

For a (view) list of dof indices, this method will fill or append the last index of the same ammount of container indices.

Template Parameters
ItInDOFIndexViewIterator<DOFIterator>
ItOutstd::vector<CI>::iterator
Parameters
beginbegin iterator for (view) list of dof indices
endbegin iterator for (view) list of dof indices
outbegin iterator of container indices to be filled out

◆ map_local_index()

void Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::map_local_index ( const typename Traits::SizeType  geometry_type_index,
const typename Traits::SizeType  entity_index,
typename Traits::TreeIndexView  mi,
typename Traits::ContainerIndex ci 
) const
inlineinherited

◆ maxLocalSize()

Traits::SizeType Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::maxLocalSize ( ) const
inlineinherited

◆ node_size()

Traits::SizeType Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::node_size ( const Node &  node,
typename Traits::ContainerIndex  suffix,
const typename Traits::DOFIndex::EntityIndex &  index 
) const
inlineprotectedinherited

Gives the size for a given entity and suffix.

This method is used by typetree class derived from this class

Parameters
nodeTypeTree version of this class
suffixMultiIndex with a partial path to a container
indexEntity index to compute the size
Returns
Traits::SizeType The size required for such a path.

◆ offset()

Traits::SizeType Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::offset ( const typename Traits::SizeType  geometry_type_index,
const typename Traits::SizeType  entity_index,
const typename Traits::SizeType  child_index 
) const
inlineinherited

◆ setup_fixed_size_possible()

void Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::setup_fixed_size_possible ( )
inlineprotectedinherited

Initial setup of the flag indicating whether a fixed size ordering is possible.

For a non-leaf ordering, a fixed size ordering is possible if all children can support it, so we implement that logic here.

Note
Leaf orderings will usually want to extract this a priori information from somewhere else, so they should override this method (the correct method will get called even without a virtual call, as the call happens from a TypeTree visitor that is aware of the precise type of the ordering).

◆ size() [1/4]

template<typename... Children>
Traits::SizeType Dune::PDELab::CompositeEntityBlockedLocalOrdering< Children >::size ( const typename Traits::ContainerIndex suffix,
const typename Traits::DOFIndex::EntityIndex &  index 
) const
inline

Returns the size for a given suffix.

This computes the size required for a given suffix of a container index.

Parameters
suffixMultiIndex with a partial path to a container
indexEntity index to compute the size
Returns
Traits::SizeType The size required for such a path.

◆ size() [2/4]

template<typename... Children>
Traits::SizeType Dune::PDELab::LocalOrderingBase< ES, DI, CI >::size ( const typename Traits::DOFIndex::EntityIndex &  index) const
inline

◆ size() [3/4]

template<typename... Children>
Traits::SizeType Dune::PDELab::LocalOrderingBase< ES, DI, CI >::size ( const typename Traits::SizeType  geometry_type_index,
const typename Traits::SizeType  entity_index 
) const
inline

◆ size() [4/4]

template<typename... Children>
Traits::SizeType Dune::PDELab::LocalOrderingBase< ES, DI, CI >::size ( const typename Traits::SizeType  geometry_type_index,
const typename Traits::SizeType  entity_index,
const typename Traits::SizeType  child_index 
) const
inline

Member Data Documentation

◆ _child_count

const std::size_t Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_child_count
protectedinherited

◆ _children

std::vector<LocalOrderingBase*> Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_children
protectedinherited

◆ _codim_used

Traits::CodimFlag Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_codim_used
protectedinherited

◆ _container_blocked

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_container_blocked
protectedinherited

◆ _entity_dof_offsets

std::vector<typename Traits::SizeType> Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_entity_dof_offsets
protectedinherited

◆ _fixed_size

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_fixed_size
protectedinherited

◆ _fixed_size_possible

bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_fixed_size_possible
protectedinherited

◆ _gfs_data

GFSData* Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_gfs_data
protectedinherited

◆ _gt_dof_offsets

std::vector<typename Traits::SizeType> Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_gt_dof_offsets
protectedinherited

◆ _gt_entity_offsets

std::vector<typename Traits::SizeType> Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_gt_entity_offsets
protectedinherited

◆ _gt_used

std::vector<bool> Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_gt_used
protectedinherited

◆ _max_local_size

std::size_t Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::_max_local_size
protectedinherited

◆ consume_tree_index

template<typename... Children>
const bool Dune::PDELab::CompositeEntityBlockedLocalOrdering< Children >::consume_tree_index = true
static

◆ GT_UNUSED

constexpr auto Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::GT_UNUSED
staticconstexprinherited

◆ has_dynamic_ordering_children

const bool Dune::PDELab::LocalOrderingBase< first_type< Children... >::type::Traits::EntitySet , first_type< Children... >::type::Traits::DOFIndex , first_type< Children... >::type::Traits::ContainerIndex >::has_dynamic_ordering_children
staticinherited

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