Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
00001 //-*-c++-*- 00002 /*========================================================================= 00003 CMPack'02 Source Code Release for OPEN-R SDK v1.0 00004 Copyright (C) 2002 Multirobot Lab [Project Head: Manuela Veloso] 00005 School of Computer Science, Carnegie Mellon University 00006 ------------------------------------------------------------------------- 00007 This software is distributed under the GNU General Public License, 00008 version 2. If you do not have a copy of this licence, visit 00009 www.gnu.org, or write: Free Software Foundation, 59 Temple Place, 00010 Suite 330 Boston, MA 02111-1307 USA. This program is distributed 00011 in the hope that it will be useful, but WITHOUT ANY WARRANTY, 00012 including MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 ------------------------------------------------------------------------- 00014 Additionally licensed to Sony Corporation under the following terms: 00015 00016 This software is provided by the copyright holders AS IS and any 00017 express or implied warranties, including, but not limited to, the 00018 implied warranties of merchantability and fitness for a particular 00019 purpose are disclaimed. In no event shall authors be liable for 00020 any direct, indirect, incidental, special, exemplary, or consequential 00021 damages (including, but not limited to, procurement of substitute 00022 goods or services; loss of use, data, or profits; or business 00023 interruption) however caused and on any theory of liability, whether 00024 in contract, strict liability, or tort (including negligence or 00025 otherwise) arising in any way out of the use of this software, even if 00026 advised of the possibility of such damage. 00027 ========================================================================= 00028 */ 00029 #ifndef INCLUDED_SystemUtility_h 00030 #define INCLUDED_SystemUtility_h 00031 00032 #include <MCOOP.h> 00033 00034 #ifdef PLATFORM_APERIOS 00035 template <class T> 00036 T *NewLarge(T **dst, int count) { 00037 sError result; 00038 result=NewRegion(sizeof(T)*count+8096, reinterpret_cast<void **>(dst)); 00039 if (result != sSUCCESS) 00040 *dst=NULL; 00041 00042 return *dst; 00043 } 00044 00045 template <class T> 00046 void DeleteLarge(T *dst) { 00047 DeleteRegion(dst); 00048 } 00049 #endif 00050 00051 /*! @file 00052 * @brief Wrappers for getting large memory regions from Aperios 00053 * @author CMU RoboSoccer 2001-2002 (Creator) 00054 * 00055 * @verbinclude CMPack_license.txt 00056 * 00057 * $Author: ejt $ 00058 * $Name: tekkotsu-1_4_1 $ 00059 * $Revision: 1.2 $ 00060 * $State: Exp $ 00061 * $Date: 2003/01/24 00:37:39 $ 00062 */ 00063 00064 #endif
Tekkotsu v1.4 |
Generated Sat Jul 19 00:06:31 2003 by Doxygen 1.3.2 |