|
|
| version 1.16, 2002/08/01 11:26:43 | version 1.18.2.2, 2003/01/31 12:34:25 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b Methoded and Methoded_array classes. | Parser: @b Methoded and Methoded_array classes. |
| Copyright (c) 2001, 2002 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) |
| */ | */ |
| static const char* IDENT_CLASSES_C="$Id$"; | static const char* IDENT_CLASSES_C="$Date$"; |
| #include "classes.h" | #include "classes.h" |
| #include "pa_request.h" | #include "pa_request.h" |
| Line 21 void Methoded::register_directly_used(Re | Line 21 void Methoded::register_directly_used(Re |
| // global variable | // global variable |
| Methoded_array *methoded_array; | Methoded_array methoded_array; |
| // methods | // methods |
| Methoded_array::Methoded_array(Pool& apool) : Array(apool) { | Methoded_array::Methoded_array() { |
| # include "classes.inc" | # include "classes.inc" |
| } | } |
| Line 58 static void register_one(Array::Item *va | Line 58 static void register_one(Array::Item *va |
| void Methoded_array::register_directly_used(Request& r) { | void Methoded_array::register_directly_used(Request& r) { |
| for_each(register_one, &r); | for_each(register_one, &r); |
| } | } |
| // creator | |
| void init_methoded_array(Pool& pool) { | |
| methoded_array=new(pool) Methoded_array(pool); | |
| } |