diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-03-08 21:03:43 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-03-08 21:03:43 +0000 |
commit | 744fe4ecbcf613ee637d00e8808f69668eac6bb2 (patch) | |
tree | a35e424f73a099d5cfc342623f56a7b2de41f02d /src/list.h | |
parent | cd210c95a5a429293aa5c88965d3526116ba8723 (diff) | |
download | libgats-744fe4ecbcf613ee637d00e8808f69668eac6bb2.tar.gz libgats-744fe4ecbcf613ee637d00e8808f69668eac6bb2.tar.bz2 libgats-744fe4ecbcf613ee637d00e8808f69668eac6bb2.tar.xz libgats-744fe4ecbcf613ee637d00e8808f69668eac6bb2.zip |
Added a whole load of new, cool helpers for working with dictionaries and lists.
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -7,6 +7,8 @@ | |||
7 | 7 | ||
8 | namespace Gats | 8 | namespace Gats |
9 | { | 9 | { |
10 | class Dictionary; | ||
11 | |||
10 | class List : public Gats::Object, public Bu::List<Gats::Object *> | 12 | class List : public Gats::Object, public Bu::List<Gats::Object *> |
11 | { | 13 | { |
12 | public: | 14 | public: |
@@ -22,17 +24,31 @@ namespace Gats | |||
22 | void append( const Bu::String &s ); | 24 | void append( const Bu::String &s ); |
23 | void append( int32_t i ); | 25 | void append( int32_t i ); |
24 | void append( int64_t i ); | 26 | void append( int64_t i ); |
25 | void append( bool b ); | ||
26 | void append( double d ); | 27 | void append( double d ); |
27 | using Bu::List<Gats::Object *>::append; | 28 | using Bu::List<Gats::Object *>::append; |
29 | void appendStr( const Bu::String &s ); | ||
30 | void appendInt( int64_t i ); | ||
31 | void appendFloat( double d ); | ||
32 | void appendBool( bool b ); | ||
33 | void appendList( Gats::List *pL ); | ||
34 | void appendDict( Gats::Dictionary *pD ); | ||
35 | Gats::List *appendList(); | ||
36 | Gats::Dictionary *appendDict(); | ||
28 | 37 | ||
29 | void prepend( const char *s ); | 38 | void prepend( const char *s ); |
30 | void prepend( const Bu::String &s ); | 39 | void prepend( const Bu::String &s ); |
31 | void prepend( int32_t i ); | 40 | void prepend( int32_t i ); |
32 | void prepend( int64_t i ); | 41 | void prepend( int64_t i ); |
33 | void prepend( bool b ); | ||
34 | void prepend( double d ); | 42 | void prepend( double d ); |
35 | using Bu::List<Gats::Object *>::prepend; | 43 | using Bu::List<Gats::Object *>::prepend; |
44 | void prependStr( const Bu::String &s ); | ||
45 | void prependInt( int64_t i ); | ||
46 | void prependFloat( double d ); | ||
47 | void prependBool( bool b ); | ||
48 | void prependList( Gats::List *pL ); | ||
49 | void prependDict( Gats::Dictionary *pD ); | ||
50 | Gats::List *prependList(); | ||
51 | Gats::Dictionary *prependDict(); | ||
36 | }; | 52 | }; |
37 | }; | 53 | }; |
38 | 54 | ||