Coin Logo http://www.coin3d.org/
http://www.kongsberg.com/kogt/

MemHandler.h
1 /**************************************************************************\
2  * Copyright (c) Kongsberg Oil & Gas Technologies AS
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  * Redistributions of source code must retain the above copyright notice,
10  * this list of conditions and the following disclaimer.
11  *
12  * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * Neither the name of the copyright holder nor the names of its
17  * contributors may be used to endorse or promote products derived from
18  * this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 \**************************************************************************/
32 
33 #ifndef DIME_MEMHANDLER_H
34 #define DIME_MEMHANDLER_H
35 
36 #include <dime/Basic.h>
37 
38 class DIME_DLL_API dimeMemHandler
39 {
40 public:
42  ~dimeMemHandler();
43 
44  bool initOk() const;
45 
46  char *stringAlloc(const char * const string);
47  void *allocMem(const int size, const int alignment = 4);
48 
49 private:
50 
51  class dimeMemNode *bigmemnode; // linked list of big memory chunks
52  class dimeMemNode *memnode; // linked list of memory nodes.
53 
54 }; // class dimeMemHandler
55 
56 #endif // ! DIME_MEMHANDLER_H
57 
dimeEntity
The dimeEntity class is the superclass of all entity classes.
Definition: Entity.h:60
dimeMemHandler::stringAlloc
char * stringAlloc(const char *const string)
Definition: MemHandler.cpp:159
dimeExtrusionEntity::getThickness
dxfdouble getThickness() const
Definition: ExtrusionEntity.h:91
dimeExtrusionEntity::getExtrusionDir
const dimeVec3f & getExtrusionDir() const
Definition: ExtrusionEntity.h:79
dxfLineSegment::convert
void convert(dxfLineSegment *prev, dxfLineSegment *next, dxfLayerData *data, dimeMatrix *matrix)
Definition: linesegment.cpp:129
dxfLayerData
The dxfLayerData class handles all geometry for a given color index. DXF geometry is grouped into dif...
Definition: layerdata.h:41
dimeMemHandler::dimeMemHandler
dimeMemHandler()
Definition: MemHandler.cpp:113
dimeMatrix
The dimeMatrix class is for containing and operating on a four-by-four matrix.
Definition: Linear.h:158
dimeState
The dimeState class manages various state variables while the model is traversed.
Definition: State.h:40
dimeEntity::generateUCS
static void generateUCS(const dimeVec3f &givenaxis, dimeMatrix &m)
Definition: Entity.cpp:513
dxfConverter
The dxfConverter class offers a simple interface for dxf converting. It makes it possible to extract ...
Definition: convert.h:44
dimeLWPolyline
The dimeLWPolyline class handles an LWPOLYLINE entity.
Definition: LWPolyline.h:38
dxfLineSegment
The dxfLineSegment class handles lines with width and/or height. This class support several connected...
Definition: linesegment.h:39
dimeMemHandler
The dimeMemHandler class is a special-purpose memory manager.
Definition: MemHandler.h:38
dimeMemHandler::allocMem
void * allocMem(const int size, const int alignment=4)
Definition: MemHandler.cpp:179
dimeMemHandler::initOk
bool initOk() const
Definition: MemHandler.cpp:148
dimeVec3f
The dimeVec3f class is for containing and operating on a 3D vector / coordinate.
Definition: Linear.h:61
dimeMemHandler::~dimeMemHandler
~dimeMemHandler()
Definition: MemHandler.cpp:123

Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Tue Mar 24 2020 14:02:59 for Dime by Doxygen 1.8.17.