aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++-libbu++/src/list.h')
-rw-r--r--c++-libbu++/src/list.h95
1 files changed, 51 insertions, 44 deletions
diff --git a/c++-libbu++/src/list.h b/c++-libbu++/src/list.h
index 5c1cd6e..6f4c9a4 100644
--- a/c++-libbu++/src/list.h
+++ b/c++-libbu++/src/list.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2012 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libgats library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef GATS_LIST_H 8#ifndef GATS_LIST_H
2#define GATS_LIST_H 9#define GATS_LIST_H
3 10
@@ -7,50 +14,50 @@
7 14
8namespace Gats 15namespace Gats
9{ 16{
10 class Dictionary; 17 class Dictionary;
11 18
12 class List : public Gats::Object, public Bu::List<Gats::Object *> 19 class List : public Gats::Object, public Bu::List<Gats::Object *>
13 { 20 {
14 public: 21 public:
15 List(); 22 List();
16 virtual ~List(); 23 virtual ~List();
17 24
18 virtual Object *clone() const; 25 virtual Object *clone() const;
19 virtual Type getType() const { return typeList; } 26 virtual Type getType() const { return typeList; }
20 27
21 virtual void write( Bu::Stream &rOut ) const; 28 virtual void write( Bu::Stream &rOut ) const;
22 virtual void read( Bu::Stream &rIn, char cType ); 29 virtual void read( Bu::Stream &rIn, char cType );
23 30
24 void append( const char *s ); 31 void append( const char *s );
25 void append( const Bu::String &s ); 32 void append( const Bu::String &s );
26 void append( int32_t i ); 33 void append( int32_t i );
27 void append( int64_t i ); 34 void append( int64_t i );
28 void append( double d ); 35 void append( double d );
29 using Bu::List<Gats::Object *>::append; 36 using Bu::List<Gats::Object *>::append;
30 void appendStr( const Bu::String &s ); 37 void appendStr( const Bu::String &s );
31 void appendInt( int64_t i ); 38 void appendInt( int64_t i );
32 void appendFloat( double d ); 39 void appendFloat( double d );
33 void appendBool( bool b ); 40 void appendBool( bool b );
34 void appendList( Gats::List *pL ); 41 void appendList( Gats::List *pL );
35 void appendDict( Gats::Dictionary *pD ); 42 void appendDict( Gats::Dictionary *pD );
36 Gats::List *appendList(); 43 Gats::List *appendList();
37 Gats::Dictionary *appendDict(); 44 Gats::Dictionary *appendDict();
38 45
39 void prepend( const char *s ); 46 void prepend( const char *s );
40 void prepend( const Bu::String &s ); 47 void prepend( const Bu::String &s );
41 void prepend( int32_t i ); 48 void prepend( int32_t i );
42 void prepend( int64_t i ); 49 void prepend( int64_t i );
43 void prepend( double d ); 50 void prepend( double d );
44 using Bu::List<Gats::Object *>::prepend; 51 using Bu::List<Gats::Object *>::prepend;
45 void prependStr( const Bu::String &s ); 52 void prependStr( const Bu::String &s );
46 void prependInt( int64_t i ); 53 void prependInt( int64_t i );
47 void prependFloat( double d ); 54 void prependFloat( double d );
48 void prependBool( bool b ); 55 void prependBool( bool b );
49 void prependList( Gats::List *pL ); 56 void prependList( Gats::List *pL );
50 void prependDict( Gats::Dictionary *pD ); 57 void prependDict( Gats::Dictionary *pD );
51 Gats::List *prependList(); 58 Gats::List *prependList();
52 Gats::Dictionary *prependDict(); 59 Gats::Dictionary *prependDict();
53 }; 60 };
54}; 61};
55 62
56Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l ); 63Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l );