|
Sen API
Sen Libraries
|
A sen object. More...
#include <object.h>
Public Member Functions | |
| Object ()=default | |
| virtual | ~Object ()=default |
| virtual const std::string & | getName () const noexcept=0 |
| The name given to the object upon construction. | |
| virtual ObjectId | getId () const noexcept=0 |
| Global unique object identification. | |
| virtual ConstTypeHandle< ClassType > | getClass () const noexcept=0 |
| Reflection information. | |
| virtual NativeObject * | asNativeObject () noexcept |
| Helper that checks if the object is local (without dynamic casts). | |
| virtual const NativeObject * | asNativeObject () const noexcept |
| Helper that checks if the object is local (without dynamic casts). | |
| virtual impl::ProxyObject * | asProxyObject () noexcept |
| Helper that checks if the object is a proxy (without dynamic casts). | |
| virtual const impl::ProxyObject * | asProxyObject () const noexcept |
| Helper that checks if the object is a proxy (without dynamic casts). | |
| virtual const std::string & | getLocalName () const noexcept=0 |
| An alias used as an alternate way of identifying this object locally. | |
| virtual TimeStamp | getLastCommitTime () const noexcept=0 |
| The point in time when the last commit was called. | |
| virtual Var | getPropertyUntyped (const Property *prop) const =0 |
| Variant-based property getter. | |
| virtual void | invokeUntyped (const Method *method, const VarList &args, MethodCallback< Var > &&onDone={})=0 |
| Reflection- and variant- based interface for (asynchronously) invoking a method on this object. This mechanism is meant to be used only when the natively generated functions are not available or when performance or type safety are of no particular concern. NOLINTNEXTLINE(google-default-arguments). | |
| virtual ConnectionGuard | onPropertyChangedUntyped (const Property *prop, EventCallback< VarList > &&callback)=0 |
| Reflection-based interface for detecting property changes. | |
| virtual ConnectionGuard | onEventUntyped (const Event *ev, EventCallback< VarList > &&callback)=0 |
| Reflection-based interface for reacting to events. | |
| virtual void | invokeAllPropertyCallbacks ()=0 |
| Helper method that invokes all the registered property callbacks, even if/when the property has not changed. This might prove helpful in situations where the initialization code is similar to the one of these callbacks. | |
Protected Member Functions | |
| virtual void | senImplRemoveTypedConnection (ConnId id)=0 |
| virtual void | senImplRemoveUntypedConnection (ConnId id, MemberHash memberHash)=0 |
| virtual void | senImplEventEmitted (MemberHash id, std::function< VarList()> &&argsGetter, const EventInfo &info)=0 |
| ObjectId | senImplMakeId (std::string_view objectName) const |
| Creates a unique id. | |
| ConnectionGuard | senImplMakeConnectionGuard (ConnId id, MemberHash member, bool typed) |
| Creates a guard for a callback. | |
| virtual void | senImplWriteAllPropertiesToStream (OutputStream &out) const =0 |
| Writes all properties to out. | |
| virtual void | senImplWriteStaticPropertiesToStream (OutputStream &out) const =0 |
| Writes all static properties to out. | |
| virtual void | senImplWriteDynamicPropertiesToStream (OutputStream &out) const =0 |
| Writes all dynamic properties to out. | |
Static Protected Member Functions | |
| static void | senImplValidateName (std::string_view name) |
| Throws std::exception if the name is not valid. | |
| static std::string | senImplComputeLocalName (std::string_view name, std::string_view prefix) |
| The name, with a prefix (if any). | |
Friends | |
| class | ConnectionGuard |
| template<typename... T> | |
| class | impl::EventBuffer |
| void | impl::writeAllPropertiesToStream (const Object *instance, OutputStream &out) |
A sen object.
|
default |
|
virtualdefault |
|
nodiscardpure virtualnoexcept |
The name given to the object upon construction.
Implemented in sen::NativeObject.
|
nodiscardpure virtualnoexcept |
Global unique object identification.
Implemented in sen::NativeObject.
|
nodiscardpure virtualnoexcept |
Reflection information.
|
inlinenodiscardvirtualnoexcept |
Helper that checks if the object is local (without dynamic casts).
Reimplemented in sen::NativeObject.
|
inlinenodiscardvirtualnoexcept |
Helper that checks if the object is local (without dynamic casts).
Reimplemented in sen::NativeObject.
|
inlinenodiscardvirtualnoexcept |
Helper that checks if the object is a proxy (without dynamic casts).
|
inlinenodiscardvirtualnoexcept |
Helper that checks if the object is a proxy (without dynamic casts).
|
nodiscardpure virtualnoexcept |
An alias used as an alternate way of identifying this object locally.
Implemented in sen::NativeObject.
|
nodiscardpure virtualnoexcept |
The point in time when the last commit was called.
Implemented in sen::NativeObject.
Variant-based property getter.
Implemented in sen::NativeObject.
|
pure virtual |
Reflection- and variant- based interface for (asynchronously) invoking a method on this object. This mechanism is meant to be used only when the natively generated functions are not available or when performance or type safety are of no particular concern. NOLINTNEXTLINE(google-default-arguments).
Implemented in sen::NativeObject.
|
nodiscardpure virtual |
Reflection-based interface for detecting property changes.
Implemented in sen::NativeObject.
|
nodiscardpure virtual |
Reflection-based interface for reacting to events.
Implemented in sen::NativeObject.
|
pure virtual |
Helper method that invokes all the registered property callbacks, even if/when the property has not changed. This might prove helpful in situations where the initialization code is similar to the one of these callbacks.
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in sen::NativeObject.
|
protectedpure virtual |
Implemented in sen::NativeObject.
|
nodiscardprotected |
Creates a unique id.
|
nodiscardprotected |
Creates a guard for a callback.
|
staticprotected |
Throws std::exception if the name is not valid.
|
staticnodiscardprotected |
The name, with a prefix (if any).
|
protectedpure virtual |
Writes all properties to out.
|
protectedpure virtual |
Writes all static properties to out.
|
protectedpure virtual |
Writes all dynamic properties to out.
|
friend |
|
friend |
|
friend |