Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
This class defines a proxy to a generic implementation for an interface. More...
Public Member Functions | |
ComponentProxy (CoreBaseObject *instance, const ComponentImplementation *impl, ComponentFactoryHandler *handler) | |
unsigned int | find_property (const CoreString &name, const unsigned int &idx=0) const |
Return the index of the property. | |
const ComponentInterface * | get_interface () const |
Return the interface this class implements. | |
const ComponentSchema * | get_schema () const |
Return the schema this class implements. | |
bool | set_components (const CoreBasicArray< unsigned int > &indices, const ComponentCollection &components) const |
Method used to set the components of the callee. | |
bool | set_components (const ComponentCollection &components) |
Set all components with the specified ones. | |
bool | set_component (const unsigned int &component_idx, const ComponentCollection &component) |
Set the component at the specified index. | |
bool | get_components (const CoreBasicArray< unsigned int > &indices, ComponentCollection &components) const |
Method used to retrieve internal data of the callee organized in a ComponentCollection. | |
bool | get_components (ComponentCollection &components, Monitorable &monitorable) const |
Retrieve all components and register a monitor to notify user from dirtiness. | |
bool | get_components (ComponentCollection &components) const |
Retrieve all components. | |
bool | get_component (const unsigned int &component_idx, ComponentCollection &component) const |
Retrieve the specified component. | |
unsigned int | get_component_count () const |
Return the number of component available for the specified interface/schema. | |
const ComponentImplementation * | get_implementation () const |
Return the ComponentImplementation. | |
CoreBaseObject * | get_instance () |
Return a pointer to the instance. | |
const CoreBaseObject * | get_instance () const |
bool | is_null () const |
Return true if the implementation is null. | |
![]() | |
bool | is_kindof (const CoreBaseObject &object) const |
virtual size_t | get_memory_size () const |
CoreString | get_class_info_name () const |
const unsigned long & | get_class_info_id () const |
virtual bool | is_kindof (const CoreClassInfo &cinfo) const |
virtual const CoreClassInfo & | get_class_info () const |
template<class T > | |
T * | cast () |
template<class T > | |
const T * | cast () const |
![]() | |
bool | is_kindof (const CoreClassInfo &cinfo) const |
Friends | |
class | ComponentFactoryHandler |
Additional Inherited Members | |
![]() | |
static const CoreClassInfo & | class_info () |
template<class T > | |
static T * | cast (CoreBaseObject *object) |
template<class T > | |
static const T * | cast (const CoreBaseObject *object) |
This class defines a proxy to a generic implementation for an interface.
|
inline |
Return the index of the property.
[in] | name | name of the property |
[in] | idx | starting index (useful if you need to iterate over properties sharing the same name). |
|
inline |
Retrieve the specified component.
[in] | component_idx | index of the component (indices must be valid [0, get_component_count()]). |
[out] | component | component collection that will be properly filled with the required component. |
|
inline |
Method used to retrieve internal data of the callee organized in a ComponentCollection.
[in] | indices | indices of requested components (indices must be valid [0, get_component_count()]). |
[out] | components | components that will be properly filled. |
bool ComponentProxy::get_components | ( | ComponentCollection & | components, |
Monitorable & | monitorable | ||
) | const |
Retrieve all components and register a monitor to notify user from dirtiness.
[out] | components | components that will be properly filled. |
[in] | components | monitor object. |
|
inline |
Retrieve all components.
[out] | components | components that will be properly filled. |
|
inline |
Return the ComponentImplementation.
|
inline |
Return the interface this class implements.
|
inline |
Return the schema this class implements.
|
inline |
Set the component at the specified index.
[in] | component_idx | index of the component (indices must be valid [0, get_component_count()]). |
[in] | component | component that will be copied. |
|
inline |
Method used to set the components of the callee.
[in] | indices | component indices that are modified (indices must be valid [0, get_component_count()]). |
[in] | components | components that will be copied. |
|
inline |
Set all components with the specified ones.
[in] | components | components that will be copied |