1 | /*
|
---|
2 | * Copyright 1999-2004 The Apache Software Foundation.
|
---|
3 | *
|
---|
4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
5 | * you may not use this file except in compliance with the License.
|
---|
6 | * You may obtain a copy of the License at
|
---|
7 | *
|
---|
8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
9 | *
|
---|
10 | * Unless required by applicable law or agreed to in writing, software
|
---|
11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
13 | * See the License for the specific language governing permissions and
|
---|
14 | * limitations under the License.
|
---|
15 | */
|
---|
16 |
|
---|
17 | /*
|
---|
18 | * $Log: RefVectorOf.hpp,v $
|
---|
19 | * Revision 1.10 2004/09/08 13:56:23 peiyongz
|
---|
20 | * Apache License Version 2.0
|
---|
21 | *
|
---|
22 | * Revision 1.9 2004/01/29 11:48:46 cargilld
|
---|
23 | * Code cleanup changes to get rid of various compiler diagnostic messages.
|
---|
24 | *
|
---|
25 | * Revision 1.8 2003/05/16 06:01:52 knoaman
|
---|
26 | * Partial implementation of the configurable memory manager.
|
---|
27 | *
|
---|
28 | * Revision 1.7 2003/05/15 19:07:45 knoaman
|
---|
29 | * Partial implementation of the configurable memory manager.
|
---|
30 | *
|
---|
31 | * Revision 1.6 2002/12/17 17:17:58 gareth
|
---|
32 | * added abstract base class BaseRefVectorOf from which both RefVectorOf and RefArrayVectorOf inherit
|
---|
33 | * the new RefArrayVectorOf has proper destructor for array deletion
|
---|
34 | *
|
---|
35 | * Revision 1.5 2002/12/04 02:32:43 knoaman
|
---|
36 | * #include cleanup.
|
---|
37 | *
|
---|
38 | * Revision 1.4 2002/11/04 15:22:04 tng
|
---|
39 | * C++ Namespace Support.
|
---|
40 | *
|
---|
41 | * Revision 1.3 2002/08/21 17:45:00 tng
|
---|
42 | * [Bug 7087] compiler warnings when using gcc.
|
---|
43 | *
|
---|
44 | * Revision 1.2 2002/02/05 13:11:06 tng
|
---|
45 | * [Bug 6114] Memory leaks on iDOM getElementsByTagName().
|
---|
46 | *
|
---|
47 | * Revision 1.1.1.1 2002/02/01 22:22:12 peiyongz
|
---|
48 | * sane_include
|
---|
49 | *
|
---|
50 | * Revision 1.5 2001/06/25 13:01:52 knoaman
|
---|
51 | * Add constraint checking on elements in complex types to prevent same
|
---|
52 | * element names from having different definitions - use substitueGroups.
|
---|
53 | *
|
---|
54 | * Revision 1.4 2000/03/02 19:54:45 roddey
|
---|
55 | * This checkin includes many changes done while waiting for the
|
---|
56 | * 1.1.0 code to be finished. I can't list them all here, but a list is
|
---|
57 | * available elsewhere.
|
---|
58 | *
|
---|
59 | * Revision 1.3 2000/02/24 20:05:25 abagchi
|
---|
60 | * Swat for removing Log from API docs
|
---|
61 | *
|
---|
62 | * Revision 1.2 2000/02/06 07:48:03 rahulj
|
---|
63 | * Year 2K copyright swat.
|
---|
64 | *
|
---|
65 | * Revision 1.1.1.1 1999/11/09 01:05:05 twl
|
---|
66 | * Initial checkin
|
---|
67 | *
|
---|
68 | * Revision 1.2 1999/11/08 20:45:13 rahul
|
---|
69 | * Swat for adding in Product name and CVS comment log variable.
|
---|
70 | *
|
---|
71 | */
|
---|
72 |
|
---|
73 | #if !defined(REFVECTOROF_HPP)
|
---|
74 | #define REFVECTOROF_HPP
|
---|
75 |
|
---|
76 | #include <xercesc/util/BaseRefVectorOf.hpp>
|
---|
77 |
|
---|
78 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
79 |
|
---|
80 | /**
|
---|
81 | * Class with implementation for vectors of References - implements from the
|
---|
82 | * Abstract class Vector
|
---|
83 | */
|
---|
84 | template <class TElem> class RefVectorOf : public BaseRefVectorOf<TElem>
|
---|
85 | {
|
---|
86 | public :
|
---|
87 | // -----------------------------------------------------------------------
|
---|
88 | // Constructor
|
---|
89 | // -----------------------------------------------------------------------
|
---|
90 | RefVectorOf(const unsigned int maxElems,
|
---|
91 | const bool adoptElems = true,
|
---|
92 | MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
|
---|
93 |
|
---|
94 | // -----------------------------------------------------------------------
|
---|
95 | // Destructor
|
---|
96 | // -----------------------------------------------------------------------
|
---|
97 | ~RefVectorOf();
|
---|
98 |
|
---|
99 | private:
|
---|
100 | // -----------------------------------------------------------------------
|
---|
101 | // Unimplemented constructors and operators
|
---|
102 | // -----------------------------------------------------------------------
|
---|
103 | RefVectorOf(const RefVectorOf<TElem>&);
|
---|
104 | RefVectorOf<TElem>& operator=(const RefVectorOf<TElem>&);
|
---|
105 | };
|
---|
106 |
|
---|
107 | XERCES_CPP_NAMESPACE_END
|
---|
108 |
|
---|
109 | #if !defined(XERCES_TMPLSINC)
|
---|
110 | #include <xercesc/util/RefVectorOf.c>
|
---|
111 | #endif
|
---|
112 |
|
---|
113 | #endif
|
---|