Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
ComponentStaticImplementation Class Reference

This class defines an generic implementation for a generic interface that works without any instance, when the CoreClassInfo is enough. More...

Inheritance diagram for ComponentStaticImplementation:
ComponentImplementation CoreBaseObject CoreBaseType

Public Member Functions

 ComponentStaticImplementation (ComponentFactory *factory)
 
virtual bool get_components (const CoreBaseObject &, const CoreBasicArray< unsigned int > &, ComponentCollection &) const final
 Method used to retrieve internal data of the callee organized in a ComponentCollection.
 
virtual unsigned int get_component_count (const CoreBaseObject &) const final
 Return the number of components available for the specified interface/schema.
 
virtual unsigned int get_static_component_count () const override
 Return the number of static components available.
 
- Public Member Functions inherited from ComponentImplementation
 ComponentImplementation (ComponentFactory *factory=0)
 
unsigned int find_property (const CoreString &name, const unsigned int &idx=0) const
 Return the index of the property.
 
const ComponentInterfaceget_interface () const
 Return the interface this class implements.
 
const ComponentSchemaget_schema () const
 Return the schema this class implements.
 
virtual bool get_static_components (ComponentCollection &components) const
 Method used to retrieve static internal data of the callee organized in a ComponentCollection.
 
virtual bool set_components (CoreBaseObject &instance, const CoreBasicArray< unsigned int > &indices, const ComponentCollection &components) const
 Method used to set internal data of the callee.
 
virtual bool get_modified_components (const CoreBaseObject &instance, CoreVector< unsigned int > &modified_component_indices) const
 Return an array of the components that have been modified.
 
- Public Member Functions inherited from CoreBaseObject
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 CoreClassInfoget_class_info () const
 
template<class T >
T * cast ()
 
template<class T >
const T * cast () const
 
- Public Member Functions inherited from CoreBaseType
bool is_kindof (const CoreClassInfo &cinfo) const
 

Additional Inherited Members

- Static Public Member Functions inherited from CoreBaseObject
static const CoreClassInfoclass_info ()
 
template<class T >
static T * cast (CoreBaseObject *object)
 
template<class T >
static const T * cast (const CoreBaseObject *object)
 

Detailed Description

This class defines an generic implementation for a generic interface that works without any instance, when the CoreClassInfo is enough.

Member Function Documentation

virtual unsigned int ComponentStaticImplementation::get_component_count ( const CoreBaseObject instance) const
inlinefinalvirtual

Return the number of components available for the specified interface/schema.

Parameters
[in]instanceinstance to the object so it can access to its internal data

Reimplemented from ComponentImplementation.

virtual bool ComponentStaticImplementation::get_components ( const CoreBaseObject instance,
const CoreBasicArray< unsigned int > &  indices,
ComponentCollection components 
) const
inlinefinalvirtual

Method used to retrieve internal data of the callee organized in a ComponentCollection.

Parameters
[in]instanceinstance to the object so it can access to its internal data
[in]indicesindices of requested components. Indices are assumed valid.
[out]componentscomponents that will be properly filled. Components are assumed to match the requested size.
Returns
false is not implemented

Implements ComponentImplementation.