Warnings on vc14 were eliminated
[occt.git] / src / TCollection / TCollection.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-10-13
2// Created by: Ramin BARRETO
3// Copyright (c) 1992-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _TCollection_HeaderFile
18#define _TCollection_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Integer.hxx>
25class TCollection_AsciiString;
26class TCollection_ExtendedString;
27class TCollection_HAsciiString;
28class TCollection_HExtendedString;
29class TCollection_Array1;
30class TCollection_HArray1;
31class TCollection_Array2;
32class TCollection_HArray2;
33class TCollection_List;
34class TCollection_ListNode;
35class TCollection_ListIterator;
36class TCollection_BaseSequence;
37class TCollection_SeqNode;
38class TCollection_Sequence;
39class TCollection_SequenceNode;
40class TCollection_HSequence;
41class TCollection_MapHasher;
42class TCollection_BasicMap;
43class TCollection_MapNode;
44class TCollection_BasicMapIterator;
45class TCollection_Map;
46class TCollection_MapIterator;
47class TCollection_StdMapNode;
48class TCollection_DataMap;
49class TCollection_DataMapIterator;
50class TCollection_DataMapNode;
51class TCollection_DoubleMap;
52class TCollection_DoubleMapIterator;
53class TCollection_DoubleMapNode;
54class TCollection_IndexedMap;
55class TCollection_IndexedMapNode;
56class TCollection_IndexedDataMap;
57class TCollection_IndexedDataMapNode;
58
59
60//! The package <TCollection> provides the services for the
61//! transient basic data structures.
62class TCollection
63{
64public:
65
66 DEFINE_STANDARD_ALLOC
67
68
69 //! Returns a prime number greater than <I> suitable
70 //! to dimension a Map. When <I> becomes great there
71 //! is a limit on the result (today the limit is
72 //! around 1 000 000). This is not a limit of the number of
73 //! items but a limit in the number of buckets. i.e.
74 //! there will be more collisions in the map.
75 Standard_EXPORT static Standard_Integer NextPrimeForMap (const Standard_Integer I);
76
77
78
79
80protected:
81
82
83
84
85
86private:
87
88
89
90
91friend class TCollection_AsciiString;
92friend class TCollection_ExtendedString;
93friend class TCollection_HAsciiString;
94friend class TCollection_HExtendedString;
95friend class TCollection_Array1;
96friend class TCollection_HArray1;
97friend class TCollection_Array2;
98friend class TCollection_HArray2;
99friend class TCollection_List;
100friend class TCollection_ListNode;
101friend class TCollection_ListIterator;
102friend class TCollection_BaseSequence;
103friend class TCollection_SeqNode;
104friend class TCollection_Sequence;
105friend class TCollection_SequenceNode;
106friend class TCollection_HSequence;
107friend class TCollection_MapHasher;
108friend class TCollection_BasicMap;
109friend class TCollection_MapNode;
110friend class TCollection_BasicMapIterator;
111friend class TCollection_Map;
112friend class TCollection_MapIterator;
113friend class TCollection_StdMapNode;
114friend class TCollection_DataMap;
115friend class TCollection_DataMapIterator;
116friend class TCollection_DataMapNode;
117friend class TCollection_DoubleMap;
118friend class TCollection_DoubleMapIterator;
119friend class TCollection_DoubleMapNode;
120friend class TCollection_IndexedMap;
121friend class TCollection_IndexedMapNode;
122friend class TCollection_IndexedDataMap;
123friend class TCollection_IndexedDataMapNode;
124
125};
126
127
128
129
130
131
132
133#endif // _TCollection_HeaderFile