Memory.h
Go to the documentation of this file.
00001 // This file is part of Eigen, a lightweight C++ template library
00002 // for linear algebra.
00003 //
00004 // Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com>
00005 //
00006 // This Source Code Form is subject to the terms of the Mozilla
00007 // Public License v. 2.0. If a copy of the MPL was not distributed
00008 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
00009 
00010 #ifndef EIGEN2_MEMORY_H
00011 #define EIGEN2_MEMORY_H
00012 
00013 namespace Eigen { 
00014 
00015 inline void* ei_aligned_malloc(size_t size) { return internal::aligned_malloc(size); }
00016 inline void  ei_aligned_free(void *ptr) { internal::aligned_free(ptr); }
00017 inline void* ei_aligned_realloc(void *ptr, size_t new_size, size_t old_size) { return internal::aligned_realloc(ptr, new_size, old_size); }
00018 inline void* ei_handmade_aligned_malloc(size_t size) { return internal::handmade_aligned_malloc(size); }
00019 inline void  ei_handmade_aligned_free(void *ptr) { internal::handmade_aligned_free(ptr); }
00020 
00021 template<bool Align> inline void* ei_conditional_aligned_malloc(size_t size)
00022 {
00023   return internal::conditional_aligned_malloc<Align>(size);
00024 }
00025 template<bool Align> inline void ei_conditional_aligned_free(void *ptr)
00026 {
00027   internal::conditional_aligned_free<Align>(ptr);
00028 }
00029 template<bool Align> inline void* ei_conditional_aligned_realloc(void* ptr, size_t new_size, size_t old_size)
00030 {
00031   return internal::conditional_aligned_realloc<Align>(ptr, new_size, old_size);
00032 }
00033 
00034 template<typename T> inline T* ei_aligned_new(size_t size)
00035 {
00036   return internal::aligned_new<T>(size);
00037 }
00038 template<typename T> inline void ei_aligned_delete(T *ptr, size_t size)
00039 {
00040   return internal::aligned_delete(ptr, size);
00041 }
00042 
00043 } // end namespace Eigen
00044 
00045 #endif // EIGEN2_MACROS_H


turtlebot_exploration_3d
Author(s): Bona , Shawn
autogenerated on Thu Jun 6 2019 20:59:06