Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
ServiceReference< T > Class Template Reference

#include <service.h>

Inheritance diagram for ServiceReference< T >:
Inheritance graph
Collaboration diagram for ServiceReference< T >:
Collaboration graph

Public Member Functions

 ServiceReference ()
 ServiceReference (const Anope::string &t, const Anope::string &n)
void operator= (const Anope::string &n)
 operator bool () anope_override
- Public Member Functions inherited from Reference< T >
 Reference ()
 Reference (T *obj)
 Reference (const Reference< T > &other)
virtual ~Reference ()
Reference< T > & operator= (const Reference< T > &other)
 operator T* ()
T * operator-> ()
T * operator* ()
bool operator== (const Reference< T > &other)
- Public Member Functions inherited from ReferenceBase
 ReferenceBase ()
 ReferenceBase (const ReferenceBase &other)
virtual ~ReferenceBase ()
void Invalidate ()

Private Attributes

Anope::string type
Anope::string name

Additional Inherited Members

- Protected Attributes inherited from Reference< T >
T * ref
- Protected Attributes inherited from ReferenceBase
bool invalid

Detailed Description

template<typename T>
class ServiceReference< T >

Like Reference, but used to refer to Services.

Definition at line 120 of file service.h.

Constructor & Destructor Documentation

◆ ServiceReference() [1/2]

template<typename T>
ServiceReference< T >::ServiceReference ( )

Definition at line 126 of file service.h.

◆ ServiceReference() [2/2]

template<typename T>
ServiceReference< T >::ServiceReference ( const Anope::string t,
const Anope::string n 

Definition at line 128 of file service.h.

Member Function Documentation

◆ operator bool()

template<typename T>
ServiceReference< T >::operator bool ( )

Reimplemented from Reference< T >.

Definition at line 138 of file service.h.

◆ operator=()

template<typename T>
void ServiceReference< T >::operator= ( const Anope::string n)

Definition at line 132 of file service.h.

Field Documentation

◆ name

template<typename T>
Anope::string ServiceReference< T >::name

Definition at line 123 of file service.h.

Referenced by NSIdentifyLDAP::OnNickRegister().

◆ type

template<typename T>
Anope::string ServiceReference< T >::type

Definition at line 122 of file service.h.

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