TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod > Class Template Reference

Public Member Functions

 FcnAccessor (GetMethod getMethod, SetMethod setMethod)
 
virtual void set (ValueType v)
 
virtual ValueType get () const
 
virtual Interfaceclone () const
 
virtual bool isNull () const
 
- Public Member Functions inherited from G3D::Pointer< ValueType >::Interface
virtual ~Interface ()
 

Private Attributes

GetMethod getMethod
 
SetMethod setMethod
 

Constructor & Destructor Documentation

template<typename ValueType>
template<typename GetMethod , typename SetMethod >
G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod >::FcnAccessor ( GetMethod  getMethod,
SetMethod  setMethod 
)
inline
111  }
SetMethod setMethod
Definition: Pointer.h:106
GetMethod getMethod
Definition: Pointer.h:105

+ Here is the caller graph for this function:

Member Function Documentation

template<typename ValueType>
template<typename GetMethod , typename SetMethod >
virtual Interface* G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod >::clone ( ) const
inlinevirtual

Implements G3D::Pointer< ValueType >::Interface.

123  {
124  return new FcnAccessor(getMethod, setMethod);
125  }
SetMethod setMethod
Definition: Pointer.h:106
FcnAccessor(GetMethod getMethod, SetMethod setMethod)
Definition: Pointer.h:110
GetMethod getMethod
Definition: Pointer.h:105

+ Here is the call graph for this function:

template<typename ValueType>
template<typename GetMethod , typename SetMethod >
virtual ValueType G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod >::get ( ) const
inlinevirtual

Implements G3D::Pointer< ValueType >::Interface.

119  {
120  return (*getMethod)();
121  }
GetMethod getMethod
Definition: Pointer.h:105
template<typename ValueType>
template<typename GetMethod , typename SetMethod >
virtual bool G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod >::isNull ( ) const
inlinevirtual

Implements G3D::Pointer< ValueType >::Interface.

127 { return false; }
template<typename ValueType>
template<typename GetMethod , typename SetMethod >
virtual void G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod >::set ( ValueType  v)
inlinevirtual

Implements G3D::Pointer< ValueType >::Interface.

113  {
114  if (setMethod) {
115  (*setMethod)(v);
116  }
117  }
SetMethod setMethod
Definition: Pointer.h:106

Member Data Documentation

template<typename ValueType>
template<typename GetMethod , typename SetMethod >
GetMethod G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod >::getMethod
private
template<typename ValueType>
template<typename GetMethod , typename SetMethod >
SetMethod G3D::Pointer< ValueType >::FcnAccessor< GetMethod, SetMethod >::setMethod
private

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