aboutsummaryrefslogtreecommitdiff
path: root/src/dictionary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dictionary.cpp')
-rw-r--r--src/dictionary.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dictionary.cpp b/src/dictionary.cpp
index 9728804..b59d652 100644
--- a/src/dictionary.cpp
+++ b/src/dictionary.cpp
@@ -26,6 +26,18 @@ Gats::Dictionary::~Dictionary()
26 } 26 }
27} 27}
28 28
29Gats::Object *Gats::Dictionary::clone() const
30{
31 Gats::Dictionary *pClone = new Gats::Dictionary;
32 for( const_iterator i = begin(); i; i++ )
33 {
34 Bu::String s(i.getKey());
35 pClone->insert( s.clone(), (*i)->clone() );
36 }
37
38 return pClone;
39}
40
29void Gats::Dictionary::write( Bu::Stream &rOut ) const 41void Gats::Dictionary::write( Bu::Stream &rOut ) const
30{ 42{
31 rOut.write("d", 1 ); 43 rOut.write("d", 1 );