00001 // ======================================================================================== 00002 // ApproxMVBB 00003 // Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch> 00004 // 00005 // This Source Code Form is subject to the terms of the Mozilla Public 00006 // License, v. 2.0. If a copy of the MPL was not distributed with this 00007 // file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 // ======================================================================================== 00009 00010 #ifndef ApproxMVBB_Diameter_Utils_alloc_h 00011 #define ApproxMVBB_Diameter_Utils_alloc_h 00012 00013 #include <stdlib.h> 00014 00015 #include "ApproxMVBB/Config/Config.hpp" 00016 #include ApproxMVBB_TypeDefs_INCLUDE_FILE 00017 00018 #include "ApproxMVBB/Diameter/TypeSegment.hpp" 00019 00020 namespace ApproxMVBB{ 00021 namespace Diameter{ 00022 00023 APPROXMVBB_EXPORT void *_AllocateListOfPoints( const int n, const int dim ); 00024 00025 APPROXMVBB_EXPORT void *_AllocateListOfSegments( const int n ); 00026 00027 00028 struct TypeListOfSegments { 00029 int n; 00030 int nalloc; 00031 TypeSegment *seg; 00032 } ; 00033 00034 APPROXMVBB_EXPORT int _AddSegmentToList( TypeSegment *s, TypeListOfSegments *list ); 00035 00036 } 00037 } 00038 00039 #endif 00040