1#include "attach_slot.h"
49 return attach(slot_object, attachment_object, (
void*&) user_data);
58 return as->get_attachment();
67 return as->get_attachement_data();
70int get_attachment_data_int(
base_ptr slot_object)
interface for an attachment slot that can store a base pointer
void * attachment_user_data
allow to add user data to the attachment
base_ptr get_attachment() const
return current attachment
void attach(base_ptr attachment_object, void *user_data=0)
attach object to attachment slot
base_ptr attachment
allow to attach some object to group
void * get_attachement_data() const
return current attachment
attach_slot()
init the user data
complete implementation of method actions that only call one method when entering a node
base_ptr get_attachment(base_ptr slot_object)
query the attachment of an attach_slot object.
data::ref_ptr< base, true > base_ptr
ref counted pointer to base
bool attach(base_ptr slot_object, base_ptr attachment_object, void *user_data)
function to attach an object to an object of type attach_slot.
void * get_attachment_data(base_ptr slot_object)
query the user data of the attachment of an attach_slot object.