From f61345bd0eed92ccc4882a190a19c902fbbfc5fb Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 30 Apr 2004 12:26:11 +0000 Subject: Added manpages, extra docs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@753 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/classExtensible.html | 114 ++++++++++++++++++++++++++++++++++- 1 file changed, 112 insertions(+), 2 deletions(-) (limited to 'docs/module-doc/classExtensible.html') diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index ab505f9ed..61543dbed 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -28,6 +28,13 @@ Inheritance diagram for Extensible:
Public Member Functions | ||||||||||||
| bool | Extend (std::string key, VoidPointer p) | |||||||||||
| Extend an Extensible class. | ||||||||||||
| bool | Shrink (std::string key) | |||||||||||
| Shrink an Extensible class. | ||||||||||||
| VoidPointer | GetExt (std::string key) | |||||||||||
| Get an extension item. | ||||||||||||
Private Attributes | ||||||||||||
| std::map< std::string, VoidPointer > | Extension_Items | |||||||||||
| Private data store. | ||||||||||||
+
|
+ ||||||||||||
| + + | +
+
+ +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. On successful extension, Extend returns true. |
+
+
+
|
+
| + + | +
+
+ +Get an extension item. + +You must provide a key name, which is case sensitive. If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned. |
+
+
+
|
+
| + + | +
+
+ +Shrink an Extensible class. + +You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false. Returns true on success. |
+
1.3-rc3
--
cgit v1.3.1-10-gc9f91