Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
94f935c8
Commit
94f935c8
authored
Jan 02, 2013
by
mattijs
Browse files
ENH: Dictionary: pass in initial size
parent
509041b7
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Dictionaries/DictionaryBase/DictionaryBase.C
View file @
94f935c8
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -45,7 +45,9 @@ void Foam::DictionaryBase<IDLListType, T>::addEntries()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template
<
class
IDLListType
,
class
T
>
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
DictionaryBase
()
Foam
::
DictionaryBase
<
IDLListType
,
T
>::
DictionaryBase
(
const
label
size
)
:
hashedTs_
(
size
)
{}
...
...
src/OpenFOAM/containers/Dictionaries/DictionaryBase/DictionaryBase.H
View file @
94f935c8
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -90,8 +90,8 @@ public:
// Constructors
//-
Null c
onstruct
or
DictionaryBase
();
//-
C
onstruct
given initial table size
DictionaryBase
(
const
label
size
=
128
);
//- Copy construct
DictionaryBase
(
const
DictionaryBase
&
);
...
...
src/OpenFOAM/containers/Dictionaries/PtrDictionary/PtrDictionary.C
View file @
94f935c8
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -28,7 +28,9 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template
<
class
T
>
Foam
::
PtrDictionary
<
T
>::
PtrDictionary
()
Foam
::
PtrDictionary
<
T
>::
PtrDictionary
(
const
label
size
)
:
DictionaryBase
<
DLPtrList
<
T
>
,
T
>
(
size
)
{}
...
...
src/OpenFOAM/containers/Dictionaries/PtrDictionary/PtrDictionary.H
View file @
94f935c8
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -61,8 +61,8 @@ public:
// Constructors
//-
Null c
onstruct
or
PtrDictionary
();
//-
C
onstruct
given initial table size
PtrDictionary
(
const
label
size
=
128
);
//- Copy construct
PtrDictionary
(
const
PtrDictionary
&
);
...
...
src/OpenFOAM/containers/Dictionaries/UPtrDictionary/UPtrDictionary.C
View file @
94f935c8
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -28,7 +28,9 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template
<
class
T
>
Foam
::
UPtrDictionary
<
T
>::
UPtrDictionary
()
Foam
::
UPtrDictionary
<
T
>::
UPtrDictionary
(
const
label
size
)
:
DictionaryBase
<
DLList
<
T
*>
,
T
>
(
size
)
{}
...
...
src/OpenFOAM/containers/Dictionaries/UPtrDictionary/UPtrDictionary.H
View file @
94f935c8
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -61,8 +61,8 @@ public:
// Constructors
//-
Null c
onstruct
or
UPtrDictionary
();
//-
C
onstruct
given initial table size
UPtrDictionary
(
const
label
size
=
128
);
//- Copy construct
UPtrDictionary
(
const
UPtrDictionary
&
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment