Proto  3.2
Public Member Functions | Private Attributes | List of all members
Proto::InterpStencil1D< T > Class Template Reference

Interpolation Stencil. More...

#include <Proto_InterpStencil1D.H>

Public Member Functions

 InterpStencil1D ()
 Default Constructor. More...
 
 InterpStencil1D (unsigned int a_dir, unsigned int a_ratio)
 
void define (unsigned int a_dir, unsigned int a_ratio)
 
const Stencil< T > & get (unsigned int a_shift) const
 
void set (Stencil< T > a_S, unsigned int a_shift)
 
Box span () const
 Span. More...
 
Point ghost () const
 Ghost Size. More...
 
template<unsigned int C, MemType MEMTYPE, unsigned int D, unsigned int E>
LazyStencil< T, C, MEMTYPE, D, E > operator() (const BoxData< T, C, MEMTYPE, D, E > &a_src, T a_scale=1) const
 Lazy Apply. More...
 
template<unsigned int C, MemType MEMTYPE, unsigned int D, unsigned int E>
LazyStencil< T, C, MEMTYPE, D, E > operator() (const BoxData< T, C, MEMTYPE, D, E > &a_src, Box a_box, T a_scale=1) const
 Lazy Apply. More...
 
unsigned int ratio () const
 Return Destination Refinement Ratio. More...
 
std::vector< Stencil< T > >::iterator begin ()
 Iterate Over Stencil Components. More...
 
std::vector< Stencil< T > >::iterator end ()
 Iterate Over Stencil Components. More...
 
void print () const
 

Private Attributes

unsigned int m_r
 Destination refinement ratio. More...
 
unsigned int m_dir
 Coordinate. More...
 
std::vector< Stencil< T > > m_s
 Array of Stencils. More...
 

Detailed Description

template<class T>
class Proto::InterpStencil1D< T >

Interpolation Stencil.

InterpStencil1D is a convenient abstraction which encapsulates the functionality of an operation in which the destination refinement is non-trivial. This kind of operation can be done with normal Stencil objects, however for a destination refinement of R, an array of R^DIM Stencils will be needed in general.

Constructor & Destructor Documentation

◆ InterpStencil1D() [1/2]

template<class T>
Proto::InterpStencil1D< T >::InterpStencil1D ( )
inline

Default Constructor.

◆ InterpStencil1D() [2/2]

template<class T>
Proto::InterpStencil1D< T >::InterpStencil1D ( unsigned int  a_dir,
unsigned int  a_ratio 
)
inline

Member Function Documentation

◆ define()

template<class T >
void Proto::InterpStencil1D< T >::define ( unsigned int  a_dir,
unsigned int  a_ratio 
)
inline

◆ get()

template<class T >
const Stencil< T > & Proto::InterpStencil1D< T >::get ( unsigned int  a_shift) const
inline

◆ set()

template<class T >
void Proto::InterpStencil1D< T >::set ( Stencil< T >  a_S,
unsigned int  a_shift 
)
inline

◆ print()

template<class T >
void Proto::InterpStencil1D< T >::print ( ) const
inline

Member Data Documentation

◆ m_r

template<class T>
unsigned int Proto::InterpStencil1D< T >::m_r
private

Destination refinement ratio.

Referenced by Proto::InterpStencil1D< T >::ratio().

◆ m_dir

template<class T>
unsigned int Proto::InterpStencil1D< T >::m_dir
private

Coordinate.

◆ m_s

template<class T>
std::vector<Stencil<T> > Proto::InterpStencil1D< T >::m_s
private

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