RepastHPC  2.3.1
Public Member Functions | List of all members
repast::StickyBorders Class Reference

Implements sticky border semantics: translates out side of the border are clamped to the border coordinates. More...

#include <GridComponents.h>

Inheritance diagram for repast::StickyBorders:
repast::Borders

Public Member Functions

 StickyBorders (GridDimensions d)
 
void translate (const std::vector< double > &oldPos, std::vector< double > &newPos, const std::vector< double > &displacement) const
 
void translate (const std::vector< int > &oldPos, std::vector< int > &newPos, const std::vector< int > &displacement) const
 
- Public Member Functions inherited from repast::Borders
 Borders (GridDimensions d)
 
void transform (const std::vector< int > &in, std::vector< int > &out) const
 
void transform (const std::vector< double > &in, std::vector< double > &out) const
 
bool isPeriodic () const
 

Additional Inherited Members

- Protected Member Functions inherited from repast::Borders
void boundsCheck (const std::vector< int > &pt) const
 
void boundsCheck (const std::vector< double > &pt) const
 
- Protected Attributes inherited from repast::Borders
const GridDimensions _dimensions
 

Detailed Description

Implements sticky border semantics: translates out side of the border are clamped to the border coordinates.

Tranforms outside the border throw an exception.


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