- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UObjectSlotNode Struct Reference

#include <uobjectslot.hpp>

List of all members.

Public Types

typedef void(UObject::* Method )(void)

Public Member Functions

template<typename Obj>  UObjectSlotNode (ProxyPtr proxy, Obj *object, Method method)
virtual void notify (bool from_child)
virtual bool died ()
virtual bool equals (const USlotNode *node) const

Public Attributes

void * m_object
UObjectm_uobject
Method m_method


Detailed Description

The slot node for objects. If it is a UObject, does automatic clean up if the UObject pointer gets invalid.
Author:
Johannes Schmidt


Member Typedef Documentation

typedef void(UObject::* ufo::UObjectSlotNode::Method)(void)
 

We could use a generic class, but why not simply UObject to cast to.


Constructor & Destructor Documentation

template<typename Obj>
ufo::UObjectSlotNode::UObjectSlotNode ProxyPtr  proxy,
Obj *  object,
Method  method
[inline]
 

We need to make this a template for a compile-time check whether object is derived from UObject.


Member Data Documentation

Method ufo::UObjectSlotNode::m_method
 

The method to call.

void* ufo::UObjectSlotNode::m_object
 

The object pointer.

UObject* ufo::UObjectSlotNode::m_uobject
 

This pointer is only not NULL if the object is derived from UObject.


The documentation for this struct was generated from the following file:
The libUFO Project - written by Johannes Schmidt