Revision 1176 branches/threaded2merge/src/linad99/dfpool.h

dfpool.h (revision 1176)
59 59
public:
60 60
  int nvar;
61 61
  int& on_dfpool_vector(void) {return dfpool_vector_flag;}
62
  char * last_chunk;
62
  char* last_chunk;
63 63
  struct link { link * next; };
64 64
  int num_allocated;
65 65
  int num_chunks;
66 66
  int nelem;
67 67
  unsigned size;
68
  link * head;
69
  double * first;
68
  link* head;
69
  double* first;
70 70
  dfpool(dfpool&);  // copy protection
71
  void operator = (dfpool&); // copy protection
71
  void operator=(dfpool&); // copy protection
72 72
  void grow(void);
73 73
#if defined(__CHECK_MEMORY__)
74 74
  int maxchunks;
75
  char * minaddress[100];
76
  char * maxaddress[100];
77
  int * pvalues;
75
  char* minaddress[100];
76
  char* maxaddress[100];
77
  int* pvalues;
78 78
  int nalloc;
79 79
#endif
80 80
public:
81
  dfpool();
82
  ~dfpool();
83

  
81 84
  void clean(void);
82 85
  dfpool(unsigned);
83 86
  void set_size(unsigned);
84
  dfpool(void);
85
 ~dfpool();
86
  void * alloc(void);
87
  void* alloc(void);
87 88
  void free(void * b);
88 89
  void deallocate(void);
89 90
#if defined(__CHECK_MEMORY__)
90
  int bad(link * p);
91
  int badaddress(link * p);
91
  int bad(link* p);
92
  int badaddress(link* p);
92 93
  void sanity_check(void);
93
  void sanity_check(void *);
94
  void sanity_check(void*);
94 95
  void sanity_check2(void);
95
  void write_pointers(int m,int max);
96
  void write_pointers(int m, int max);
96 97
#endif
97 98
};
98 99

  

Also available in: Unified diff