ug4
|
A base implementation with non-template methods. More...
#include <class.h>
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 More... | |
virtual void | destroy (void *obj) const |
destructur for object More... | |
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 More... | |
virtual const ExportedMethodGroup & | get_const_method_group (size_t ind) const |
returns the i-th method group (all overloads of the i-th function) More... | |
virtual const ExportedMethod & | get_const_overload (size_t funcInd, size_t oInd) const |
returns the i-th overload of a const method More... | |
virtual const ExportedConstructor & | get_constructor (size_t i) const |
get exported constructor More... | |
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 More... | |
virtual const ExportedMethod & | get_method (size_t i) const |
returns the first overload of an exported function More... | |
virtual const ExportedMethodGroup & | get_method_group (size_t ind) const |
returns the i-th method group (all overloads of the i-th function) More... | |
virtual const ExportedMethod & | get_overload (size_t funcInd, size_t oInd) const |
returns the i-th overload of a method More... | |
virtual bool | is_instantiable () const |
is instantiable More... | |
virtual size_t | num_const_methods () const |
number of registered const-methods (overloads are not counted) More... | |
virtual size_t | num_const_overloads (size_t funcInd) const |
returns the number of overloads of a const method More... | |
virtual size_t | num_constructors () const |
number of registered constructors More... | |
virtual size_t | num_methods () const |
number of registered methods (overloads are not counted) More... | |
virtual size_t | num_overloads (size_t funcInd) const |
returns the number of overloads of a method More... | |
virtual void | set_construct_as_smart_pointer (bool enable) |
sets whether the class shall be wrapped in a SmartPtr More... | |
virtual const std::string & | tooltip () const |
tooltip More... | |
virtual | ~ExportedClassBaseImpl () |
destructor More... | |
Public Member Functions inherited from ug::bridge::IExportedClass | |
virtual bool | check_consistency () const |
returns false is consistency-check failed More... | |
virtual const ClassNameNode & | class_name_node () const =0 |
name node of class More... | |
virtual const std::vector< const char * > * | class_names () const =0 |
name-list of class hierarchy More... | |
virtual DeleteFunction | get_delete_function () const =0 |
returns a function which will call delete on the object More... | |
virtual const std::string & | group () const =0 |
get groups More... | |
virtual bool | is_json_constructible () const =0 |
get constructor for construction from json More... | |
virtual const std::string & | name () const =0 |
name of class More... | |
virtual | ~IExportedClass () |
virtual destructor More... | |
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 More... | |
bool | constructor_type_id_registered (size_t typeID) |
returns if a constructor overload is registered More... | |
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 More... | |
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 |
|
protected |
|
protected |