make Tree_T a class + reduce include pollution

parent 2d8715cc
Pipeline #165 passed with stage
in 9 minutes 46 seconds
Showing with 6 additions and 5 deletions
......@@ -9,10 +9,11 @@
#include "avl.h"
#include "ListUtils.h"
typedef struct {
class Tree_T {
public:
int size;
avl_tree *root;
} Tree_T;
};
Tree_T *Tree_Create(int size, int (*fcmp)(const void *a, const void *b));
void Tree_Delete(Tree_T *Tree);
......
......@@ -6,15 +6,15 @@
#ifndef _GMODELIO_GEO_H_
#define _GMODELIO_GEO_H_
#include "ListUtils.h"
#include "TreeUtils.h"
class GModel;
class ExtrudeParams;
class gmshSurface;
class List_T;
class Tree_T;
class GEO_Internals{
public:
// this will become private
Tree_T *Points, *Curves, *EdgeLoops, *Surfaces, *SurfaceLoops, *Volumes;
Tree_T *DelPoints, *DelCurves, *DelSurfaces, *DelVolumes;
List_T *PhysicalGroups, *DelPhysicalGroups;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment