Coda Distributed File System
arrlist.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19#ifndef _ARRLIST_H_
20#define _ARRLIST_H_ 1
21// arrlist:
22// pointers to any type stored as an array
23class arrlist {
24public:
25 void **list;
28
29 int Grow(int = 0);
30 void init(int);
31 // public:
32 arrlist();
33 arrlist(int);
34 ~arrlist();
35 void add(void *);
36};
37
39 arrlist *alp;
40 int previndex;
41
42public:
45 void *operator()(); /* Does *not* support safe deletion of
46 currently returned entry. See
47 dlist.h for more explanation */
48};
49
50#endif /* _ARRLIST_H_ */
Definition: arrlist.h:38
~arrlist_iterator()
Definition: arrlist.cc:105
arrlist_iterator(arrlist *)
Definition: arrlist.cc:99
void * operator()()
Definition: arrlist.cc:111
Definition: arrlist.h:23
int cursize
Definition: arrlist.h:27
void init(int)
Definition: arrlist.cc:54
int maxsize
Definition: arrlist.h:26
void ** list
Definition: arrlist.h:25
void add(void *)
Definition: arrlist.cc:87
arrlist()
Definition: arrlist.cc:50
int Grow(int=0)
Definition: arrlist.cc:67
~arrlist()
Definition: arrlist.cc:41