OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | List of all members
UserList Class Reference

#include <UserList.h>

Inheritance diagram for UserList:
Inheritance graph
[legend]
Collaboration diagram for UserList:
Collaboration graph
[legend]

Public Types

typedef User::ID_t Key
 
typedef vmap< Key, User * > UserList_t
 
typedef UserList_t::iterator iterator_user
 
typedef UserList_t::size_type size_type_user
 
typedef User::ID_t ID_t
 

Public Member Functions

 UserList ()
 
virtual ~UserList ()
 
size_type_user getNumUsers () const
 
ID_t getUserListID () const
 
bool haveUser (Key key) const
 
UsergetUser (Key key)
 
iterator_user begin_user ()
 
iterator_user end_user ()
 
virtual ID_t checkinUser (User &user)
 
virtual void checkoutUser (Key key, bool informuser=false)
 
virtual void checkoutUser (const User &user, bool informuser=false)
 

Private Attributes

UserList_t userlist
 
ID_t userlistID
 

Detailed Description

Definition at line 37 of file UserList.h.

Member Typedef Documentation

Definition at line 46 of file UserList.h.

Definition at line 43 of file UserList.h.

Definition at line 41 of file UserList.h.

Definition at line 45 of file UserList.h.

Definition at line 42 of file UserList.h.

Constructor & Destructor Documentation

UserList::UserList ( )

Definition at line 34 of file UserList.cpp.

UserList::~UserList ( )
virtual

Definition at line 39 of file UserList.cpp.

References begin_user(), and end_user().

Here is the call graph for this function:

Member Function Documentation

UserList::iterator_user UserList::begin_user ( )

Definition at line 77 of file UserList.cpp.

References vmap< Key, T, Compare >::begin(), and userlist.

Referenced by Mesh< Dim >::begin_if(), FieldLayout< Dim >::begin_if(), and ~UserList().

Here is the call graph for this function:

UserList::ID_t UserList::checkinUser ( User user)
virtual

Definition at line 109 of file UserList.cpp.

References User::get_Id(), haveUser(), userlist, and userlistID.

Referenced by Mesh< Dim >::checkin(), and RegionLayout< T, Dim, Mesh >::checkin().

Here is the call graph for this function:

void UserList::checkoutUser ( Key  key,
bool  informuser = false 
)
virtual

Definition at line 124 of file UserList.cpp.

References end_user(), vmap< Key, T, Compare >::erase(), vmap< Key, T, Compare >::find(), and userlist.

Referenced by Mesh< Dim >::checkout(), RegionLayout< T, Dim, Mesh >::checkout(), and checkoutUser().

Here is the call graph for this function:

void UserList::checkoutUser ( const User user,
bool  informuser = false 
)
virtual

Definition at line 138 of file UserList.cpp.

References checkoutUser(), and User::get_Id().

Here is the call graph for this function:

UserList::iterator_user UserList::end_user ( )

Definition at line 84 of file UserList.cpp.

References vmap< Key, T, Compare >::end(), and userlist.

Referenced by checkoutUser(), Mesh< Dim >::end_if(), FieldLayout< Dim >::end_if(), getUser(), and ~UserList().

Here is the call graph for this function:

UserList::size_type_user UserList::getNumUsers ( ) const

Definition at line 47 of file UserList.cpp.

References vmap< Key, T, Compare >::size(), and userlist.

Referenced by Mesh< Dim >::size_if(), and FieldLayout< Dim >::size_if().

Here is the call graph for this function:

User & UserList::getUser ( Key  key)

Definition at line 68 of file UserList.cpp.

References end_user(), vmap< Key, T, Compare >::find(), PInsist, and userlist.

Here is the call graph for this function:

UserList::ID_t UserList::getUserListID ( ) const
bool UserList::haveUser ( Key  key) const

Definition at line 61 of file UserList.cpp.

References vmap< Key, T, Compare >::count(), and userlist.

Referenced by checkinUser().

Here is the call graph for this function:

Member Data Documentation

UserList_t UserList::userlist
private

Definition at line 100 of file UserList.h.

Referenced by begin_user(), checkinUser(), checkoutUser(), end_user(), getNumUsers(), getUser(), and haveUser().

ID_t UserList::userlistID
private

Definition at line 103 of file UserList.h.

Referenced by checkinUser(), and getUserListID().


The documentation for this class was generated from the following files: