|
cgv
|
interface for an attachment slot that can store a base pointer More...
#include <attach_slot.h>
Public Member Functions | |
| attach_slot () | |
| init the user data | |
| void | attach (base_ptr attachment_object, void *user_data=0) |
| attach object to attachment slot | |
| void | attach (base_ptr attachment_object, int user_data) |
| attach object to attachment slot | |
| base_ptr | get_attachment () const |
| return current attachment | |
| void * | get_attachement_data () const |
| return current attachment | |
| int | get_attachement_data_int () const |
| return current attachment | |
Protected Attributes | |
| base_ptr | attachment |
| allow to attach some object to group | |
| void * | attachment_user_data |
| allow to add user data to the attachment | |
interface for an attachment slot that can store a base pointer
Definition at line 11 of file attach_slot.h.
| cgv::base::attach_slot::attach_slot | ( | ) |
attach object to attachment slot
Definition at line 20 of file attach_slot.cxx.
References attach().
attach object to attachment slot
attach object to group
Definition at line 14 of file attach_slot.cxx.
References attachment, and attachment_user_data.
Referenced by attach().
| void * cgv::base::attach_slot::get_attachement_data | ( | ) | const |
return current attachment
Definition at line 32 of file attach_slot.cxx.
References attachment_user_data.
| base_ptr cgv::base::attach_slot::get_attachment | ( | ) | const |
|
protected |
allow to attach some object to group
Definition at line 15 of file attach_slot.h.
Referenced by attach(), and get_attachment().
|
protected |
allow to add user data to the attachment
Definition at line 17 of file attach_slot.h.
Referenced by attach(), attach_slot(), and get_attachement_data().