|
|
| version 1.57.2.15, 2003/01/30 11:00:41 | version 1.57.2.20, 2003/02/04 10:32:12 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: Array & Array_iterator classes decls. | Parser: Array & Array_iterator classes decls. |
| Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 137 public: | Line 137 public: |
| if(callback(*current, info)) | if(callback(*current, info)) |
| return *current; | return *current; |
| return 0;//T(0); | return T(0); |
| } | } |
| protected: | protected: |
| Line 165 public: | Line 165 public: |
| return result.get(); | return result.get(); |
| } | } |
| char *copy(const char *buf, size_t size=0) { | char *copy(const char* buf, size_t size=0) { |
| if(!size) | if(!size) |
| size=strlen(buf)+1; | size=strlen(buf)+1; |
| Line 175 public: | Line 175 public: |
| } | } |
| }; | }; |
| inline void *operator new(size_t size, Pool& pool) { | inline void *operator new[] (size_t size, Pool& pool) { |
| return pool.malloc(size); | return pool.malloc(size); |
| } | } |
| Line 199 public: | Line 199 public: |
| } | } |
| /// quickly extracts next Array element | /// quickly extracts next Array element |
| T next() { | T& next() { |
| return *(fcurrent++); | return *(fcurrent++); |
| } | } |