|
ug4
|
A base implementation with non-template methods. More...
#include <class.h>
Inheritance diagram for ug::bridge::ExportedClassBaseImpl:Classes | |
| struct | ConstructorOverload |
Public Member Functions | |
| virtual bool | construct_as_smart_pointer () const |
| returns whether the class shall be wrapped in a SmartPtr on construction | |
| virtual void | destroy (void *obj) const |
| destructur for object | |
| ExportedClassBaseImpl (const std::string &tooltip) | |
| virtual const ExportedMethodGroup * | get_const_exported_method_group (const std::string &name) const |
| virtual const ExportedMethod & | get_const_method (size_t i) const |
| returns the first overload of an exported const function | |
| virtual const ExportedMethodGroup & | get_const_method_group (size_t ind) const |
| returns the i-th method group (all overloads of the i-th function) | |
| virtual const ExportedMethod & | get_const_overload (size_t funcInd, size_t oInd) const |
| returns the i-th overload of a const method | |
| virtual const ExportedConstructor & | get_constructor (size_t i) const |
| get exported constructor | |
| virtual const ExportedMethodGroup * | get_exported_method_group (const std::string &name) const |
| virtual const boost::optional< ExportedConstructor & > | get_json_constructor () const |
| get constructor for construction from json | |
| virtual const ExportedMethod & | get_method (size_t i) const |
| returns the first overload of an exported function | |
| virtual const ExportedMethodGroup & | get_method_group (size_t ind) const |
| returns the i-th method group (all overloads of the i-th function) | |
| virtual const ExportedMethod & | get_overload (size_t funcInd, size_t oInd) const |
| returns the i-th overload of a method | |
| virtual bool | is_instantiable () const |
| is instantiable | |
| virtual size_t | num_const_methods () const |
| number of registered const-methods (overloads are not counted) | |
| virtual size_t | num_const_overloads (size_t funcInd) const |
| returns the number of overloads of a const method | |
| virtual size_t | num_constructors () const |
| number of registered constructors | |
| virtual size_t | num_methods () const |
| number of registered methods (overloads are not counted) | |
| virtual size_t | num_overloads (size_t funcInd) const |
| returns the number of overloads of a method | |
| virtual void | set_construct_as_smart_pointer (bool enable) |
| sets whether the class shall be wrapped in a SmartPtr | |
| virtual const std::string & | tooltip () const |
| tooltip | |
| virtual | ~ExportedClassBaseImpl () |
| destructor | |
Public Member Functions inherited from ug::bridge::IExportedClass | |
| virtual bool | check_consistency () const |
| returns false is consistency-check failed | |
| virtual const ClassNameNode & | class_name_node () const =0 |
| name node of class | |
| virtual const std::vector< const char * > * | class_names () const =0 |
| name-list of class hierarchy | |
| virtual DeleteFunction | get_delete_function () const =0 |
| returns a function which will call delete on the object | |
| virtual const std::string & | group () const =0 |
| get groups | |
| virtual bool | is_json_constructible () const =0 |
| get constructor for construction from json | |
| virtual const std::string & | name () const =0 |
| name of class | |
| virtual | ~IExportedClass () |
| virtual destructor | |
Protected Types | |
| typedef void(* | DestructorFunc) (void *) |
Protected Member Functions | |
| bool | constmethodname_registered (const std::string &name) |
| returns true if methodname is already used by a method in this class | |
| bool | constructor_type_id_registered (size_t typeID) |
| returns if a constructor overload is registered | |
| ExportedMethodGroup * | get_const_exported_method_group (const std::string &name) |
| ExportedMethodGroup * | get_exported_method_group (const std::string &name) |
| bool | methodname_registered (const std::string &name) |
| returns true if methodname is already used by a method in this class | |
Protected Attributes | |
| bool | m_constructAsSmartPtr |
| DestructorFunc | m_destructor |
| std::string | m_tooltip |
| std::vector< ExportedMethodGroup * > | m_vConstMethod |
| std::vector< ConstructorOverload > | m_vConstructor |
| std::vector< ExportedMethodGroup * > | m_vMethod |
Private Member Functions | |
| ExportedClassBaseImpl () | |
| ExportedClassBaseImpl (const ExportedClassBaseImpl &other) | |
Additional Inherited Members | |
Public Types inherited from ug::bridge::IExportedClass | |
| typedef void(* | DeleteFunction) (const void *) |
A base implementation with non-template methods.
Speeds up compilation times.
|
protected |
|
private |
|
private |
| ug::bridge::ExportedClassBaseImpl::ExportedClassBaseImpl | ( | const std::string & | tooltip | ) |
|
virtual |
destructor
References m_vConstMethod, m_vConstructor, and m_vMethod.
|
protected |
returns true if methodname is already used by a method in this class
References m_vConstMethod, and ug::bridge::IExportedClass::name().
|
virtual |
returns whether the class shall be wrapped in a SmartPtr on construction
Implements ug::bridge::IExportedClass.
References m_constructAsSmartPtr.
|
protected |
returns if a constructor overload is registered
References m_vConstructor.
Referenced by ug::bridge::ExportedClass< TClass >::add_constructor().
|
virtual |
|
protected |
References m_vConstMethod, and ug::bridge::IExportedClass::name().
|
virtual |
Implements ug::bridge::IExportedClass.
References m_vConstMethod, and ug::bridge::IExportedClass::name().
Referenced by ug::bridge::ExportedClass< TClass >::add_method().
|
virtual |
returns the first overload of an exported const function
Implements ug::bridge::IExportedClass.
References m_vConstMethod.
|
virtual |
returns the i-th method group (all overloads of the i-th function)
Implements ug::bridge::IExportedClass.
References m_vConstMethod.
|
virtual |
returns the i-th overload of a const method
Implements ug::bridge::IExportedClass.
References m_vConstMethod.
|
virtual |
|
protected |
References m_vMethod, and ug::bridge::IExportedClass::name().
|
virtual |
Implements ug::bridge::IExportedClass.
References m_vMethod, and ug::bridge::IExportedClass::name().
Referenced by ug::bridge::ExportedClass< TClass >::add_method().
|
virtual |
get constructor for construction from json
Implements ug::bridge::IExportedClass.
References ug::GetUniqueTypeID(), ug::bridge::IExportedClass::is_json_constructible(), and m_vConstructor.
|
virtual |
returns the first overload of an exported function
Implements ug::bridge::IExportedClass.
References m_vMethod.
|
virtual |
returns the i-th method group (all overloads of the i-th function)
Implements ug::bridge::IExportedClass.
References m_vMethod.
|
virtual |
|
virtual |
|
protected |
returns true if methodname is already used by a method in this class
References m_vMethod, and ug::bridge::IExportedClass::name().
|
virtual |
number of registered const-methods (overloads are not counted)
Implements ug::bridge::IExportedClass.
References m_vConstMethod.
|
virtual |
returns the number of overloads of a const method
Implements ug::bridge::IExportedClass.
References m_vConstMethod.
|
virtual |
|
virtual |
number of registered methods (overloads are not counted)
Implements ug::bridge::IExportedClass.
References m_vMethod.
|
virtual |
returns the number of overloads of a method
Implements ug::bridge::IExportedClass.
References m_vMethod.
|
virtual |
sets whether the class shall be wrapped in a SmartPtr
Returns a reference to this, so that it can be used in a chained call.
References m_constructAsSmartPtr.
|
virtual |
tooltip
Implements ug::bridge::IExportedClass.
References m_tooltip.
Referenced by ug::bridge::ExportedClass< TClass >::add_constructor(), and ug::bridge::ExportedClass< TClass >::add_method().
|
protected |
Referenced by construct_as_smart_pointer(), and set_construct_as_smart_pointer().
|
protected |
Referenced by ug::bridge::ExportedClass< TClass >::add_constructor(), and destroy().
|
protected |
Referenced by tooltip().
|
protected |
Referenced by ug::bridge::ExportedClass< TClass >::add_method(), constmethodname_registered(), get_const_exported_method_group(), get_const_exported_method_group(), get_const_method(), get_const_method_group(), get_const_overload(), num_const_methods(), num_const_overloads(), and ~ExportedClassBaseImpl().
|
protected |
|
protected |