|
The Pedigree Project 0.1
|
#include <Group.h>
Collaboration diagram for Group:Public Member Functions | |
| Group (size_t gid, String name) | |
| void | join (User *pUser) |
| void | leave (User *pUser) |
| bool | isMember (User *pUser) |
| size_t | getId () const |
| const String & | getName () const |
Private Member Functions | |
| Group () | |
| Group (const Group &) | |
| Group & | operator= (const Group &) |
Private Attributes | |
| size_t | m_Gid |
| String | m_Name |
| List< User * > | m_Users |
| Group::Group | ( | size_t | gid, |
| String | name | ||
| ) |
|
private |
It doesn't make sense for a Group to have public default or copy constructors.
|
inline |
Returns the GID.
Definition at line 50 of file Group.h.
Referenced by ProcFs::addProcess().
Here is the caller graph for this function:
|
inline |
Returns the group name.
Definition at line 54 of file Group.h.
Referenced by UserManager::getGroup().
Here is the caller graph for this function:| bool Group::isMember | ( | User * | pUser | ) |
Queries user membership.
Definition at line 41 of file Group.cc.
References List< T, nodePoolSize >::begin(), List< T, nodePoolSize >::end(), and m_Users.
| void Group::join | ( | User * | pUser | ) |
Adds a user.
Definition at line 28 of file Group.cc.
References m_Users, and List< T, nodePoolSize >::pushBack().
| void Group::leave | ( | User * | pUser | ) |
Removes a user.
Definition at line 32 of file Group.cc.
References List< T, nodePoolSize >::begin(), List< T, nodePoolSize >::end(), List< T, nodePoolSize >::erase(), and m_Users.