InspIRCd  3.0
Public Member Functions | List of all members
LocalIntExt Class Reference
Inheritance diagram for LocalIntExt:
ExtensionItem ServiceProvider usecountbase classbase

Public Member Functions

 LocalIntExt (const std::string &key, ExtensibleType exttype, Module *owner)
std::string ToInternal (const Extensible *container, void *item) const CXX11_OVERRIDE
void FromInternal (Extensible *container, const std::string &value) CXX11_OVERRIDE
intptr_t get (const Extensible *container) const
intptr_t set (Extensible *container, intptr_t value)
void unset (Extensible *container)
void free (Extensible *container, void *item) CXX11_OVERRIDE
- Public Member Functions inherited from ExtensionItem
 ExtensionItem (const std::string &key, ExtensibleType exttype, Module *owner)
virtual ~ExtensionItem ()
virtual void FromNetwork (Extensible *container, const std::string &value)
virtual std::string ToHuman (const Extensible *container, void *item) const
virtual std::string ToNetwork (const Extensible *container, void *item) const
void RegisterService () CXX11_OVERRIDE
 DEPRECATED_METHOD (virtual std::string serialize(SerializeFormat format, const Extensible *container, void *item) const)
 DEPRECATED_METHOD (virtual void unserialize(SerializeFormat format, Extensible *container, const std::string &value))
- Public Member Functions inherited from ServiceProvider
 ServiceProvider (Module *Creator, const std::string &Name, ServiceType Type)
const char * GetTypeString () const
void DisableAutoRegister ()
- Public Member Functions inherited from classbase
virtual CullResult cull ()
- Public Member Functions inherited from usecountbase
unsigned int GetUseCount () const
void refcount_inc () const
bool refcount_dec () const

Additional Inherited Members

- Public Types inherited from ExtensionItem
enum  ExtensibleType { EXT_USER , EXT_CHANNEL , EXT_MEMBERSHIP }
- Public Attributes inherited from ExtensionItem
const ExtensibleType type
- Public Attributes inherited from ServiceProvider
ModuleRef creator
const std::string name
const ServiceType service
- Protected Member Functions inherited from ExtensionItem
void * get_raw (const Extensible *container) const
void * set_raw (Extensible *container, void *value)
void * unset_raw (Extensible *container)

Member Function Documentation

◆ free()

void LocalIntExt::free ( Extensible container,
void *  item 

Deallocates the specified ExtensionItem value.

containerThe container that the ExtensionItem is set on.
itemThe item to deallocate.

Implements ExtensionItem.

◆ FromInternal()

void LocalIntExt::FromInternal ( Extensible container,
const std::string &  value 

Sets an ExtensionItem using a value in the internal format.

containerA container the ExtensionItem should be set on.
valueA value in the internal format.

Reimplemented from ExtensionItem.

◆ ToInternal()

std::string LocalIntExt::ToInternal ( const Extensible container,
void *  item 
) const

Gets an ExtensionItem's value in the internal format.

containerThe container the ExtensionItem is set on.
itemThe value to convert to the internal format.
The value specified in item in the internal format.

Reimplemented from ExtensionItem.

The documentation for this class was generated from the following files: