orca-robotics


INTRODUCTION
Overview
Download and Install
Documentation

REPOSITORY
Interfaces
Drivers
Libraries
Utilities
Software Map

DEVELOPER
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydropathplan::TypeMap< Type > Class Template Reference

#include <typemap.h>

List of all members.

Public Member Functions

unsigned int sizeX () const
 Returns the number of cells along the x-axis.
unsigned int sizeY () const
 Returns the number of cells along the y-axis.
void resize (unsigned int szx, unsigned int szy)
 Change the size of the map.
void fill (Type val)
 Fill the map with a value.
bool isInGrid (int x, int y) const
 Check whether a cell is within the grid.
bool isInGrid (Cell2D &cell) const
 Convenience function, see above.
bool tryElement (int x, int y, Type &val) const
 Gets the value of cell with indexes x,y, will return FALSE if outside map, otherwise TRUE.
bool tryElement (Cell2D c, Type &val) const
 Gets the value of cell c, will return FALSE if outside map, otherwise TRUE.
void setElement (int x, int y, Type val)
 Sets the value of a cell, size limits are checked.
void setElement (Cell2D c, Type val)
 Sets the value of a cell, size limits are checked.


Detailed Description

template<typename Type>
class hydropathplan::TypeMap< Type >

A 2-dimensional gridmap of a certain type, e.g. float, integer
Author:
Tobias Kaupp


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

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5