#include <nap/group.h>
Public Member Functions | |
| Group () | |
| virtual bool | init (utility::ErrorState &errorState) override |
| rtti::ObjectPtr< T > | findObject (const std::string &id) const |
| rtti::ObjectPtr< T > | findObjectRecursive (const std::string &id) const |
| template<typename M > | |
| rtti::ObjectPtr< M > | findObject (const std::string &id) const |
| template<typename M > | |
| rtti::ObjectPtr< M > | findObjectRecursive (const std::string &id) const |
| NAPAPI | Group () |
Public Member Functions inherited from IGroup | |
| IGroup (rtti::TypeInfo memberType, std::string &&membersName, std::string &&childrenName) | |
| rtti::TypeInfo | getMemberType () const |
| rttr::property | getMembersProperty () const |
| rttr::property | getChildrenProperty () const |
| const std::string & | membersPropertyName () const |
| const std::string & | childrenPropertyName () const |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| virtual void | onDestroy () |
| Object (Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| Object (Object &&)=delete | |
| Object & | operator= (Object &&)=delete |
Public Attributes | |
| std::vector< rtti::ObjectPtr< T > > | mMembers |
| Property: 'Members' The members that belong to this group. More... | |
| std::vector< rtti::ObjectPtr< Group< T > > > | mChildren |
| Property: 'Children' The sub groups. More... | |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Groups together a set of objects of a specific type.
| Group | ( | ) |
Constructs a group with members of type T
| NAPAPI Group | ( | ) |
| rtti::ObjectPtr< M > findObject | ( | const std::string & | id | ) | const |
Attempts to find a member in this group with the given ID.
| id | member ID |
| rtti::ObjectPtr<M> findObject | ( | const std::string & | id | ) | const |
Attempts to find a member in this group, with the given ID, as type M
| id | member ID |
| rtti::ObjectPtr< M > findObjectRecursive | ( | const std::string & | id | ) | const |
Attempts to find a member in this group and all child groups with the given ID.
| id | member ID |
| rtti::ObjectPtr<M> findObjectRecursive | ( | const std::string & | id | ) | const |
Attempts to find a member in this group, and all child groups, with the given ID as type M.
| id | member ID |
|
overridevirtual |
Initialize this group
| errorState | contains the error if initialization fails |
Reimplemented from Object.
| std::vector<rtti::ObjectPtr<Group<T> > > mChildren |
Property: 'Children' The sub groups.
| std::vector<rtti::ObjectPtr<T> > mMembers |
Property: 'Members' The members that belong to this group.