载入中...
搜索中...
未找到
Social.h
浏览该文件的文档.
55 bool isAssigned(const std::string& source, const std::string& role, const std::string& target) const;
66 bool setRelation(const std::string& source, const std::string& target, const std::string& type, float value);
70 float addRelation(const std::string& source, const std::string& target, const std::string& type, float delta);
74 bool removeRelation(const std::string& source, const std::string& target, const std::string& type);
76 bool hasRelation(const std::string& source, const std::string& target, const std::string& type) const;
78 float relation(const std::string& source, const std::string& target, const std::string& type, float fallback) const;
80 int relationTargetCount(const std::string& source, const std::string& type, float minimum) const;
82 std::string relationTargetAt(const std::string& source, const std::string& type, float minimum, int index) const;
84 int relationSourceCount(const std::string& target, const std::string& type, float minimum) const;
86 std::string relationSourceAt(const std::string& target, const std::string& type, float minimum, int index) const;
Indexed ownership, control, assignment, and typed-relation graph.
Definition SocialGraph.h:34
bool removeEntityInt(int entity)
Removes an integer-ID entity and every graph reference to it.
Definition Social.cpp:112
std::string controllerOfInt(int entity) const
Gets controller of an integer ID as a canonical key.
Definition Social.cpp:41
std::string relationSourceAt(const std::string &target, const std::string &type, float minimum, int index) const
Gets incoming relation source by deterministic filtered index.
Definition Social.cpp:106
int ownedCount(const std::string &owner) const
Gets count of deterministically ordered entities owned by owner.
Definition Social.cpp:31
bool unassign(const std::string &source, const std::string &role, const std::string &target)
Removes an exact assignment.
Definition Social.cpp:55
int relationTargetCount(const std::string &source, const std::string &type, float minimum) const
Gets outgoing relation target count after threshold filtering.
Definition Social.cpp:96
std::string relationTargetAt(const std::string &source, const std::string &type, float minimum, int index) const
Gets outgoing relation target by deterministic filtered index.
Definition Social.cpp:99
Module_REG(Social)
std::string ownerOf(const std::string &entity) const
Gets owner of a string ID.
Definition Social.cpp:29
bool assign(const std::string &source, const std::string &role, const std::string &target)
Adds a role-based assignment between string IDs.
Definition Social.cpp:49
std::string targetAt(const std::string &source, const std::string &role, int index) const
Gets an assignment target by deterministic index.
Definition Social.cpp:64
std::string controllerOf(const std::string &entity) const
Gets controller of a string ID.
Definition Social.cpp:40
bool setController(const std::string &entity, const std::string &controller)
Sets control between string IDs.
Definition Social.cpp:34
bool setRelation(const std::string &source, const std::string &target, const std::string &type, float value)
Sets a directed typed relation between string IDs.
Definition Social.cpp:74
bool setRelationInt(int source, int target, const std::string &type, float value)
Sets a directed typed relation between integer IDs.
Definition Social.cpp:77
int eventSequence(int index) const
Gets event sequence by index, or zero when out of range.
Definition Social.cpp:116
std::string controlledAt(const std::string &controller, int index) const
Gets a controlled entity by deterministic index.
Definition Social.cpp:45
bool removeEntity(const std::string &entity)
Removes a string-ID entity and every graph reference to it.
Definition Social.cpp:111
int targetCount(const std::string &source, const std::string &role) const
Gets target count for source and role.
Definition Social.cpp:61
bool isAssigned(const std::string &source, const std::string &role, const std::string &target) const
Tests an exact assignment.
Definition Social.cpp:58
bool hasRelation(const std::string &source, const std::string &target, const std::string &type) const
Tests an exact relation.
Definition Social.cpp:89
bool removeRelation(const std::string &source, const std::string &target, const std::string &type)
Removes an exact relation.
Definition Social.cpp:86
int assigneeCount(const std::string &target, const std::string &role) const
Gets assignee count for target and role.
Definition Social.cpp:67
int relationSourceCount(const std::string &target, const std::string &type, float minimum) const
Gets incoming relation source count after threshold filtering.
Definition Social.cpp:103
int controlledCount(const std::string &controller) const
Gets count of deterministically ordered controlled entities.
Definition Social.cpp:42
std::string assigneeAt(const std::string &target, const std::string &role, int index) const
Gets an assignee by deterministic index.
Definition Social.cpp:70
bool assignInt(int source, const std::string &role, int target)
Adds a role-based assignment between integer IDs.
Definition Social.cpp:52
std::string ownedAt(const std::string &owner, int index) const
Gets an owned entity by deterministic index.
Definition Social.cpp:32
bool setControllerInt(int entity, int controller)
Sets control between integer IDs.
Definition Social.cpp:37
std::string idFromInt(int id) const
Returns the canonical graph key for an integer entity ID.
Definition Social.cpp:23
std::string ownerOfInt(int entity) const
Gets owner of an integer ID as a canonical key.
Definition Social.cpp:30
bool setOwner(const std::string &entity, const std::string &owner)
Sets ownership between string IDs.
Definition Social.cpp:25
float addRelation(const std::string &source, const std::string &target, const std::string &type, float delta)
Adds to a relation and returns its new value.
Definition Social.cpp:80
Definition SocialDocument.h:13