|
WSF
|
A class to support the concept of 'groups' and 'group membership'. More...
#include <WsfGroup.hpp>


Public Types | |
| using | GroupPair = std::pair<size_t, unsigned int> |
| using | MemberList = std::vector<GroupPair> |
| Public Types inherited from WsfObject | |
| typedef std::vector< WsfStringId > | TypeList |
| The list of types returned by GetTypeList. | |
Public Member Functions | |
| WsfGroup ()=default | |
| WsfGroup (WsfStringId aNameId) | |
| WsfGroup & | operator= (const WsfGroup &)=delete |
| ~WsfGroup () override | |
| WsfGroup * | Clone () const override |
| virtual | |
| const char * | GetScriptClassName () const override |
| MemberList::iterator | Find (size_t aPlatformIndex, unsigned int aPlatformPartId) |
| Find a member of this group. | |
| virtual void | Initialize () |
| virtual | |
| bool | IsGroupMember (size_t aPlatformIndex, unsigned int aPlatformPartId=0) |
| determine if the given platform or platform part is a member of the group | |
| void | JoinGroup (size_t aPlatformIndex, unsigned int aPlatformPartId=0) |
| Add a new member to this group. | |
| void | LeaveGroup (size_t aPlatformIndex, unsigned int aPlatformPartId=0) |
| Remove a member of this group. | |
| MemberList & | GetMembers () |
| const MemberList & | GetMembers () const |
| bool | ProcessInput (UtInput &aInput) override |
| virtual | |
| Public Member Functions inherited from WsfObject | |
| WsfObject () | |
| This is the constructor for the WsfObject class. | |
| ~WsfObject () override | |
| This is the destructor for the WsfObject class. | |
| const char * | GetScriptClassName () const override |
| const std::string & | GetType () const |
| WsfStringId | GetTypeId () const |
| Get the string ID of the 'type' of the object. | |
| void | SetType (WsfStringId aType) |
| const std::string & | GetBaseType () const |
| WsfStringId | GetBaseTypeId () const |
| const TypeList & | GetTypeList () const |
| bool | IsA_TypeOf (WsfStringId aType) const |
| WsfObject & | operator= (const WsfObject &aRhs) |
| Assignment operator. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
| const std::string & | GetName () const |
| WsfStringId | GetNameId () const |
| void | SetName (WsfStringId aName) |
| Public Member Functions inherited from WsfAuxDataEnabled | |
| WsfAuxDataEnabled ()=default | |
| WsfAuxDataEnabled (const WsfAuxDataEnabled &aSrc)=default | |
| WsfAuxDataEnabled & | operator= (const WsfAuxDataEnabled &aRhs) |
| WsfAuxDataEnabled (WsfAuxDataEnabled &&)=default | |
| WsfAuxDataEnabled & | operator= (WsfAuxDataEnabled &&)=default |
| virtual | ~WsfAuxDataEnabled () noexcept |
| void | SetAuxData (const WsfAttributeContainer &aAuxData) |
| void | DeleteAuxData () |
| Delete the aux data container from the object. | |
| void | MergeAuxData (const WsfAuxDataEnabled &aSrc) |
| Merge the object's aux data with aux data from an existing object. | |
| void | UpdateAuxData (const WsfAuxDataEnabled &aSrc) |
| Update the object's aux data with aux data from an existing object. | |
| bool | HasAuxData () const |
| Returns true if this object has aux data. | |
| bool | ProcessInput (UtInput &aInput) |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| (De)serialization for XIO | |
| WsfAttributeContainer & | GetAuxData () |
| const WsfAttributeContainer & | GetAuxData () const noexcept |
| const WsfAttributeContainer & | GetAuxDataConst () const noexcept |
Static Public Member Functions | |
| static UtScriptClass * | CreateScriptClass (const std::string &aClassName, UtScriptTypes *aScriptTypesPtr) |
Protected Member Functions | |
| WsfGroup (const WsfGroup &aSrc)=default | |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
Additional Inherited Members | |
| Static Public Attributes inherited from WsfAuxDataEnabled | |
| static UtCallbackListN< void(const WsfAuxDataEnabled *)> | AuxDataAccessed |
| static UtCallbackListN< void(const WsfAuxDataEnabled *)> | AuxDataDestroyed |
A class to support the concept of 'groups' and 'group membership'.
| using WsfGroup::GroupPair = std::pair<size_t, unsigned int> |
| using WsfGroup::MemberList = std::vector<GroupPair> |
|
default |
References WsfGroup().
Referenced by Clone(), operator=(), WsfGroup(), and WsfGroup().
| WsfGroup::WsfGroup | ( | WsfStringId | aNameId | ) |
References WsfObject::SetName().
|
override |
|
protecteddefault |
References WsfGroup().
|
overridevirtual |
|
static |
References Find(), Initialize(), IsGroupMember(), JoinGroup(), and LeaveGroup().
| WsfGroup::MemberList::iterator WsfGroup::Find | ( | size_t | aPlatformIndex, |
| unsigned int | aPlatformPartId ) |
Find a member of this group.
Referenced by CreateScriptClass(), IsGroupMember(), and LeaveGroup().
|
inline |
Referenced by wsf::comm::util::SelectRecipients().
|
inline |
|
override |
|
virtual |
virtual
Referenced by CreateScriptClass().
| bool WsfGroup::IsGroupMember | ( | size_t | aPlatformIndex, |
| unsigned int | aPlatformPartId = 0 ) |
determine if the given platform or platform part is a member of the group
References Find().
Referenced by CreateScriptClass(), and JoinGroup().
| void WsfGroup::JoinGroup | ( | size_t | aPlatformIndex, |
| unsigned int | aPlatformPartId = 0 ) |
Add a new member to this group.
References IsGroupMember().
Referenced by CreateScriptClass(), and WsfGroupList::JoinGroup().
| void WsfGroup::LeaveGroup | ( | size_t | aPlatformIndex, |
| unsigned int | aPlatformPartId = 0 ) |
Remove a member of this group.
References Find().
Referenced by CreateScriptClass(), and WsfGroupList::LeaveGroup().
References WsfGroup().
|
overridevirtual |