Homepage Demos Overview Downloads Tutorials Reference
Credits

SystemUtility.h File Reference


Detailed Description

Wrappers for getting large memory regions from Aperios.

Author:
CMU RoboSoccer 2001-2002 (Creator)
  =========================================================================
    CMPack'02 Source Code Release for OPEN-R SDK v1.0
    Copyright (C) 2002 Multirobot Lab [Project Head: Manuela Veloso]
    School of Computer Science, Carnegie Mellon University
  -------------------------------------------------------------------------
    This software is distributed under the GNU General Public License,
    version 2.  If you do not have a copy of this licence, visit
    www.gnu.org, or write: Free Software Foundation, 59 Temple Place,
    Suite 330 Boston, MA 02111-1307 USA.  This program is distributed
    in the hope that it will be useful, but WITHOUT ANY WARRANTY,
    including MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  -------------------------------------------------------------------------
    Additionally licensed to Sony Corporation under the following terms:

    This software is provided by the copyright holders AS IS and any
    express or implied warranties, including, but not limited to, the
    implied warranties of merchantability and fitness for a particular
    purpose are disclaimed.  In no event shall authors be liable for
    any direct, indirect, incidental, special, exemplary, or consequential
    damages (including, but not limited to, procurement of substitute
    goods or services; loss of use, data, or profits; or business
    interruption) however caused and on any theory of liability, whether
    in contract, strict liability, or tort (including negligence or
    otherwise) arising in any way out of the use of this software, even if
    advised of the possibility of such damage.
  =========================================================================

Author
ejt
Name
tekkotsu-2_2_2
Revision
1.4
State
Rel
Date
2003/10/10 17:46:04

Definition in file SystemUtility.h.

#include <MCOOP.h>

Include dependency graph for SystemUtility.h:

Go to the source code of this file.

Functions

template<class T>
T * NewLarge (T **dst, int count)
 Gets memory from Aperios/OPEN-R using system's NewRegion command.
template<class T>
void DeleteLarge (T *dst)
 Frees memory from Aperios/OPEN-R using system's DeleteRegion command (use only on regions obtained from NewLarge).


Function Documentation

template<class T>
void DeleteLarge T *  dst  ) 
 

Frees memory from Aperios/OPEN-R using system's DeleteRegion command (use only on regions obtained from NewLarge).

Definition at line 51 of file SystemUtility.h.

template<class T>
T* NewLarge T **  dst,
int  count
 

Gets memory from Aperios/OPEN-R using system's NewRegion command.

This seems to be the thing to do when getting large regions? We've had some issues with large regions returned from new which overlap. This issue may no longer exist, was never well known.

Definition at line 40 of file SystemUtility.h.


Tekkotsu v2.2.2
Generated Tue Jan 4 15:45:04 2005 by Doxygen 1.4.0