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

#include <serialize.h>

Inheritance diagram for Serialize::Checker< T >:
Inheritance graph
[legend]
Collaboration diagram for Serialize::Checker< T >:
Collaboration graph
[legend]

Public Member Functions

 Checker (const Anope::string &n)
 
const T * operator-> () const
 
T * operator-> ()
 
const T & operator* () const
 
T & operator* ()
 
 operator const T & () const
 
 operator T & ()
 

Private Member Functions

void Check () const
 

Private Attributes

Anope::string name
 
obj
 
Serialize::Typetype
 

Detailed Description

template<typename T>
class Serialize::Checker< T >

Should be used to hold lists and other objects of a specific type, but not a specific object. Used for ensuring that any access to this object type is always up to date. These are usually constructed at run time, before main is called, so no types are registered. This is why there are static Serialize::Type* variables in every function.

Definition at line 46 of file serialize.h.

Constructor & Destructor Documentation

template<typename T>
Serialize::Checker< T >::Checker ( const Anope::string n)
inline

Definition at line 202 of file serialize.h.

Member Function Documentation

template<typename T>
void Serialize::Checker< T >::Check ( ) const
inlineprivate
template<typename T>
Serialize::Checker< T >::operator const T & ( ) const
inline

Definition at line 226 of file serialize.h.

References Serialize::Checker< T >::Check(), and Serialize::Checker< T >::obj.

template<typename T>
Serialize::Checker< T >::operator T & ( )
inline

Definition at line 231 of file serialize.h.

References Serialize::Checker< T >::Check(), and Serialize::Checker< T >::obj.

template<typename T>
const T& Serialize::Checker< T >::operator* ( ) const
inline

Definition at line 215 of file serialize.h.

template<typename T>
T& Serialize::Checker< T >::operator* ( )
inline

Definition at line 220 of file serialize.h.

template<typename T>
const T* Serialize::Checker< T >::operator-> ( ) const
inline

Definition at line 204 of file serialize.h.

template<typename T>
T* Serialize::Checker< T >::operator-> ( )
inline

Definition at line 209 of file serialize.h.

Field Documentation

template<typename T>
Anope::string Serialize::Checker< T >::name
private

Definition at line 189 of file serialize.h.

template<typename T>
T Serialize::Checker< T >::obj
private
template<typename T>
Serialize::Type* Serialize::Checker< T >::type
mutableprivate

Definition at line 191 of file serialize.h.


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