Loading...
Searching...
No Matches
Public Member Functions | List of all members
bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t > Class Template Reference
Inheritance diagram for bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >:
Inheritance graph
[legend]
Collaboration diagram for bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >:
Collaboration graph
[legend]

Public Member Functions

 DiscretizationStencilProxyStorage (const stencil_container_t *stencils)
 
const stencil_t & at (long blockIndex, int componentIdx) const override
 
const stencil_t & at (long rowIndex) const override
 
const stencil_t & rawAt (std::size_t blockRawIndex, int componentIdx) const override
 
const stencil_t & rawAt (std::size_t rowRawIndex) const override
 
std::size_t size () const override
 

Additional Inherited Members

- Protected Member Functions inherited from bitpit::DiscretizationStencilProxyBaseStorage< stencil_t, stencil_container_t >
 DiscretizationStencilProxyBaseStorage (const stencil_container_t *stencils, int stride)
 
- Protected Attributes inherited from bitpit::DiscretizationStencilProxyBaseStorage< stencil_t, stencil_container_t >
const stencil_container_t * m_stencils
 
int m_stride
 

Detailed Description

template<typename stencil_t, typename stencil_container_t>
class bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >

Definition at line 71 of file stencil_solver.hpp.

Constructor & Destructor Documentation

◆ DiscretizationStencilProxyStorage()

template<typename stencil_t , typename stencil_container_t >
bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >::DiscretizationStencilProxyStorage ( const stencil_container_t * stencils)

Constructor.

Parameters
stencilsare the stencils

Definition at line 64 of file stencil_solver.tpp.

Member Function Documentation

◆ at() [1/2]

template<typename stencil_t , typename stencil_container_t >
const stencil_t & bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >::at ( long blockIndex,
int componentIdx ) const
overridevirtual

Get the stencil associated with the specified row.

Parameters
blockIndexis the index of the block
componentIdxis the index of the component inside the block
Returns
The stencil associated with the specified row.

Implements bitpit::DiscretizationStencilStorageInterface< stencil_t >.

Definition at line 112 of file stencil_solver.tpp.

◆ at() [2/2]

template<typename stencil_t , typename stencil_container_t >
const stencil_t & bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >::at ( long rowIndex) const
overridevirtual

Get the stencil associated with the specified row.

Parameters
rowIndexis the index of the row in the storage
Returns
The stencil associated with the specified row.

Implements bitpit::DiscretizationStencilStorageInterface< stencil_t >.

Definition at line 87 of file stencil_solver.tpp.

◆ rawAt() [1/2]

template<typename stencil_t , typename stencil_container_t >
const stencil_t & bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >::rawAt ( std::size_t blockRawIndex,
int componentIdx ) const
overridevirtual

Get the stencil associated with the specified row.

Parameters
blockRawIndexis the raw index of the block
componentIdxis the index of the component inside the block
Returns
The stencil associated with the specified row.

Implements bitpit::DiscretizationStencilStorageInterface< stencil_t >.

Definition at line 125 of file stencil_solver.tpp.

◆ rawAt() [2/2]

template<typename stencil_t , typename stencil_container_t >
const stencil_t & bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >::rawAt ( std::size_t rowRawIndex) const
overridevirtual

Get the stencil associated with the specified row.

Parameters
rowRawIndexis the raw index of the row in the storage
Returns
The stencil associated with the specified row.

Implements bitpit::DiscretizationStencilStorageInterface< stencil_t >.

Definition at line 99 of file stencil_solver.tpp.

◆ size()

template<typename stencil_t , typename stencil_container_t >
std::size_t bitpit::DiscretizationStencilProxyStorage< stencil_t, stencil_container_t >::size ( ) const
overridevirtual

Get the size of the container.

Returns
The size of the container.

Implements bitpit::DiscretizationStencilStorageInterface< stencil_t >.

Definition at line 75 of file stencil_solver.tpp.


The documentation for this class was generated from the following files:
--- layout: doxygen_footer ---