FreePOOMA  2.4.1
Functions
Shrink.h File Reference

Interval<Dim> shrinking and growing domains. More...

#include "Domain/Interval.h"
#include "Domain/Loc.h"
Include dependency graph for Shrink.h:
This graph shows which files directly or indirectly include this file:

Functions

template<int Dim>
Interval< Dim > & shrinkRightInPlace (Interval< Dim > &dom, const Loc< Dim > &s)
 Deprecated. Use shrinkRight().
template<int Dim>
Interval< Dim > & shrinkRightInPlace (Interval< Dim > &dom, int s)
 Deprecated. Use shrinkRight().
template<int Dim>
Interval< Dim > & growRightInPlace (Interval< Dim > &dom, const Loc< Dim > &s)
 Deprecated. Use growRight().
template<int Dim>
Interval< Dim > & growRightInPlace (Interval< Dim > &dom, int s)
 Deprecated. Use growRight().
template<int Dim>
Interval< Dim > & shrinkLeftInPlace (Interval< Dim > &dom, const Loc< Dim > &s)
 Deprecated. Use shrinkLeft().
template<int Dim>
Interval< Dim > & shrinkLeftInPlace (Interval< Dim > &dom, int s)
 Deprecated. Use shrinkLeft().
template<int Dim>
Interval< Dim > & growLeftInPlace (Interval< Dim > &dom, const Loc< Dim > &s)
 Deprecated. Use growLeft().
template<int Dim>
Interval< Dim > & growLeftInPlace (Interval< Dim > &dom, int s)
 Deprecated. Use growLeft().
template<int Dim>
Interval< Dim > shrinkRight (const Interval< Dim > &dom, const Loc< Dim > &s)
 Shrinks the Interval dom from the right by s[i] in direction i.
template<int Dim>
Interval< Dim > shrinkRight (const Interval< Dim > &dom, int s)
 Shrinks the Interval dom from the right by s in every direction.
template<int Dim>
Interval< Dim > growRight (const Interval< Dim > &dom, const Loc< Dim > &s)
 Grows the Interval dom to the right by s[i] in direction i.
template<int Dim>
Interval< Dim > growRight (const Interval< Dim > &dom, int s)
 Grows the Interval dom to the right by s in every direction.
template<int Dim>
Interval< Dim > shrinkLeft (const Interval< Dim > &dom, const Loc< Dim > &s)
 Shrinks the Interval dom from the left by s[i] in direction i.
template<int Dim>
Interval< Dim > shrinkLeft (const Interval< Dim > &dom, int s)
 Shrinks the Interval dom from the left by s in every direction.
template<int Dim>
Interval< Dim > growLeft (const Interval< Dim > &dom, const Loc< Dim > &s)
 Grows the Interval dom to the left by s[i] in direction i.
template<int Dim>
Interval< Dim > growLeft (const Interval< Dim > &dom, int s)
 Grows the Interval dom to the left by s in every direction.
template<int Dim>
Interval< Dim > grow (const Interval< Dim > &dom, int s)
 Grows the interval dom by s on each side/dim.
template<int Dim>
Interval< Dim > grow (const Interval< Dim > &dom, const Loc< Dim > &s)
 Grows the interval dom by s[i] on each side in direction i.
template<int Dim>
Interval< Dim > shrink (const Interval< Dim > &dom, int s)
 Shrinks the interval dom by s on each side/dim.
template<int Dim>
Interval< Dim > shrink (const Interval< Dim > &dom, const Loc< Dim > &s)
 Shrinks the interval dom by s[i] on each side in direction i.

Detailed Description

Interval<Dim> shrinking and growing domains.

Shrinking and growing domains can be done asymmetrically by one of the shrinkLeft, shrinkRight, growLeft or growRight variants. Symmetric shrinking and growing can be done using the overloaded shrink function.

Examples:


Function Documentation

template<int Dim>
Interval<Dim>& shrinkRightInPlace ( Interval< Dim > &  dom,
const Loc< Dim > &  s 
)
template<int Dim>
Interval<Dim>& shrinkRightInPlace ( Interval< Dim > &  dom,
int  s 
)

Deprecated. Use shrinkRight().

template<int Dim>
Interval<Dim>& growRightInPlace ( Interval< Dim > &  dom,
const Loc< Dim > &  s 
)

Deprecated. Use growRight().

template<int Dim>
Interval<Dim>& growRightInPlace ( Interval< Dim > &  dom,
int  s 
)

Deprecated. Use growRight().

template<int Dim>
Interval<Dim>& shrinkLeftInPlace ( Interval< Dim > &  dom,
const Loc< Dim > &  s 
)

Deprecated. Use shrinkLeft().

template<int Dim>
Interval<Dim>& shrinkLeftInPlace ( Interval< Dim > &  dom,
int  s 
)

Deprecated. Use shrinkLeft().

template<int Dim>
Interval<Dim>& growLeftInPlace ( Interval< Dim > &  dom,
const Loc< Dim > &  s 
)

Deprecated. Use growLeft().

template<int Dim>
Interval<Dim>& growLeftInPlace ( Interval< Dim > &  dom,
int  s 
)

Deprecated. Use growLeft().

template<int Dim>
Interval<Dim> shrinkRight ( const Interval< Dim > &  dom,
const Loc< Dim > &  s 
) [inline]

Shrinks the Interval dom from the right by s[i] in direction i.

Referenced by cellDomainToCenteringDomain(), and centeringDomainToCellDomain().

template<int Dim>
Interval<Dim> shrinkRight ( const Interval< Dim > &  dom,
int  s 
) [inline]

Shrinks the Interval dom from the right by s in every direction.

template<int Dim>
Interval<Dim> growRight ( const Interval< Dim > &  dom,
const Loc< Dim > &  s 
) [inline]
template<int Dim>
Interval<Dim> growRight ( const Interval< Dim > &  dom,
int  s 
) [inline]

Grows the Interval dom to the right by s in every direction.

template<int Dim>
Interval<Dim> shrinkLeft ( const Interval< Dim > &  dom,
const Loc< Dim > &  s 
) [inline]

Shrinks the Interval dom from the left by s[i] in direction i.

template<int Dim>
Interval<Dim> shrinkLeft ( const Interval< Dim > &  dom,
int  s 
) [inline]

Shrinks the Interval dom from the left by s in every direction.

template<int Dim>
Interval<Dim> growLeft ( const Interval< Dim > &  dom,
const Loc< Dim > &  s 
) [inline]

Grows the Interval dom to the left by s[i] in direction i.

Referenced by Pooma::PoomaDA< Dim >::initialize().

template<int Dim>
Interval<Dim> growLeft ( const Interval< Dim > &  dom,
int  s 
) [inline]

Grows the Interval dom to the left by s in every direction.

template<int Dim>
Interval<Dim> grow ( const Interval< Dim > &  dom,
int  s 
) [inline]
template<int Dim>
Interval<Dim> grow ( const Interval< Dim > &  dom,
const Loc< Dim > &  s 
) [inline]

Grows the interval dom by s[i] on each side in direction i.

template<int Dim>
Interval<Dim> shrink ( const Interval< Dim > &  dom,
int  s 
) [inline]

Shrinks the interval dom by s on each side/dim.

template<int Dim>
Interval<Dim> shrink ( const Interval< Dim > &  dom,
const Loc< Dim > &  s 
) [inline]

Shrinks the interval dom by s[i] on each side in direction i.