From cd9f9a8add02597a2998ba74b803ed3fbf81314c Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Nov 2005 01:44:46 +0000 Subject: Added new documentation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1966 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/classExtensible.html | 111 +++++++++++++++++------------------ 1 file changed, 53 insertions(+), 58 deletions(-) (limited to 'docs/module-doc/classExtensible.html') diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 516f0bf3a..4308465d9 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -1,82 +1,79 @@ - +
-
#include <base.h>
Inheritance diagram for Extensible:


Public Member Functions | |
| bool | Extend (std::string key, char *p) |
Public Member Functions | |
| bool | Extend (std::string key, char *p) |
| Extend an Extensible class. | |
| bool | Shrink (std::string key) |
| Extend an Extensible class. | |
| bool | Shrink (std::string key) |
| Shrink an Extensible class. | |
| char * | GetExt (std::string key) |
| Shrink an Extensible class. | |
| char * | GetExt (std::string key) |
| Get an extension item. | |
Private Attributes | |
| std::map< std::string, char * > | Extension_Items |
| Get an extension item. | |
Private Attributes | |
| std::map< std::string, char * > | Extension_Items |
| Private data store. | |
| Private data store. | |
-class Extensible implements a system which allows modules to 'extend' the class by attaching data within a map associated with the object. In this way modules can store their own custom information within user objects, channel objects and server objects, without breaking other modules (this is more sensible than using a flags variable, and each module defining bits within the flag as 'theirs' as it is less prone to conflict and supports arbitary data storage). +class Extensible implements a system which allows modules to 'extend' the class by attaching data within a map associated with the object. In this way modules can store their own custom information within user objects, channel objects and server objects, without breaking other modules (this is more sensible than using a flags variable, and each module defining bits within the flag as 'theirs' as it is less prone to conflict and supports arbitary data storage).
Definition at line 50 of file base.h.
-
|
|||||||||||||||||
|
@@ -88,34 +85,33 @@ Extend an Extensible class.
+You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, Extensible::Extend will return false in this case.
|
-
|
|
@@ -127,32 +123,31 @@ Get an extension item.
|
-
|
|
@@ -164,7 +159,7 @@ Shrink an Extensible class.
@@ -173,18 +168,19 @@ You must provide a key name. The given key name will be removed from the classes |
-
|
| @@ -201,9 +197,8 @@ Definition at line 54 of fil |
-1.3.3
+
1.4.4-20050815
--
cgit v1.3.1-10-gc9f91