Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ff1d2ba5
Kaydet (Commit)
ff1d2ba5
authored
Haz 26, 2014
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
configmgr: hide NodeMap implementation.
Change-Id: I57c81b5ec7a6541a825e42f9b68e7c5fa98f316f
üst
f692c61a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
node.hxx
configmgr/source/node.hxx
+2
-3
nodemap.hxx
configmgr/source/nodemap.hxx
+27
-4
valueparser.cxx
configmgr/source/valueparser.cxx
+1
-1
No files found.
configmgr/source/node.hxx
Dosyayı görüntüle @
ff1d2ba5
...
...
@@ -25,11 +25,10 @@
#include <rtl/ref.hxx>
#include <salhelper/simplereferenceobject.hxx>
#include "nodemap.hxx"
namespace
configmgr
{
class
NodeMap
;
class
Node
:
public
salhelper
::
SimpleReferenceObject
{
public
:
enum
Kind
{
...
...
configmgr/source/nodemap.hxx
Dosyayı görüntüle @
ff1d2ba5
...
...
@@ -23,13 +23,36 @@
#include <sal/config.h>
#include <map>
#include <rtl/ref.hxx>
#include <node.hxx>
namespace
configmgr
{
class
Node
;
typedef
std
::
map
<
OUString
,
rtl
::
Reference
<
Node
>
>
NodeMap
;
typedef
std
::
map
<
OUString
,
rtl
::
Reference
<
Node
>
>
NodeMapImpl
;
class
NodeMap
{
NodeMapImpl
aImpl
;
public
:
typedef
NodeMapImpl
::
iterator
iterator
;
typedef
NodeMapImpl
::
const_iterator
const_iterator
;
typedef
NodeMapImpl
::
value_type
value_type
;
NodeMap
()
{}
~
NodeMap
()
{}
void
clear
()
{
aImpl
.
clear
();
}
bool
empty
()
{
return
aImpl
.
empty
();
}
void
erase
(
const
iterator
&
it
)
{
aImpl
.
erase
(
it
);
}
void
erase
(
const
OUString
&
aStr
)
{
aImpl
.
erase
(
aStr
);
}
iterator
find
(
const
OUString
&
aStr
)
{
return
aImpl
.
find
(
aStr
);
}
const_iterator
find
(
const
OUString
&
aStr
)
const
{
return
aImpl
.
find
(
aStr
);
}
rtl
::
Reference
<
Node
>
&
operator
[](
const
OUString
&
aStr
)
{
return
aImpl
[
aStr
];
}
iterator
begin
()
{
return
aImpl
.
begin
();
}
const_iterator
begin
()
const
{
return
aImpl
.
begin
();
}
iterator
end
()
{
return
aImpl
.
end
();
}
const_iterator
end
()
const
{
return
aImpl
.
end
();
}
std
::
pair
<
iterator
,
bool
>
insert
(
const
value_type
&
vt
)
{
return
aImpl
.
insert
(
vt
);
}
};
void
cloneNodeMap
(
NodeMap
const
&
source
,
NodeMap
*
target
);
...
...
configmgr/source/valueparser.cxx
Dosyayı görüntüle @
ff1d2ba5
...
...
@@ -359,7 +359,7 @@ bool ValueParser::endElement() {
if
(
i
==
members
.
end
())
{
pLVNode
=
new
LocalizedValueNode
(
layer_
);
members
.
insert
(
NodeMap
::
value_type
(
localizedName_
,
pLVNode
));
NodeMap
::
value_type
(
localizedName_
,
pLVNode
));
}
else
{
pLVNode
=
static_cast
<
LocalizedValueNode
*
>
(
i
->
second
.
get
());
}
...
...
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