Disable all code related to libXp
[oweals/cde.git] / cde / programs / dtinfo / DtMmdb / dti_cc / cc_vvect.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: cc_vvect.h /main/5 1996/08/21 15:49:21 drk $ */
24
25 #ifndef _cc_vector_h
26 #define _cc_vector_h
27
28 template <class T> class value_vector
29 {
30 protected:
31    T* f_array;
32    size_t f_size;
33
34 protected:
35    void _grow(size_t);
36
37 public:
38    value_vector(const value_vector<T>&);
39
40    value_vector(size_t);
41    value_vector(size_t, const T&);
42    virtual ~value_vector();
43
44    T operator[](size_t) const;
45    T& operator[](size_t) ;
46    size_t entries() { return f_size; };
47 };
48
49 #ifdef EXPAND_TEMPLATES
50 #include "cc_vvect.C"
51 #endif
52
53
54 #endif