Exemplo n.º 1
0
	bool FindCell(int x, int y) const
	{
		int theX = (x + m_width) % m_width;
		int theY = (y + m_height) % m_height;
		const auto& it = m_cellMap.find(MakeKey(theX, theY));
		return it != m_cellMap.end();			
	}
bool moveGridAndCheckCondition(
      DynSysType & dynsys, const GridSet & grid,
      const ConditionT & condition, const HSet & hset
  )
{

	for (typename GridSet::const_iterator i = grid.begin(); i != grid.end(); ++i)
	{
		capd::dynset::C0AffineSet<typename GridSet::MatrixType, capd::C0RectPolicies> set(*i, grid.C, grid.r);
		std::cout << "\n set :" << (typename GridSet::VectorType)set;
		set.move(dynsys);
		std::cout << "\n image :" << (typename GridSet::VectorType)set;
		if (!condition(hset, set))
			return false;
	}
	return true;
}