OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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

◆ ID_t

Definition at line 46 of file UserList.h.

◆ iterator_user

Definition at line 43 of file UserList.h.

◆ Key

Definition at line 41 of file UserList.h.

◆ size_type_user

Definition at line 45 of file UserList.h.

◆ UserList_t

Definition at line 42 of file UserList.h.

Constructor & Destructor Documentation

◆ UserList()

UserList::UserList ( )

Definition at line 34 of file UserList.cpp.

◆ ~UserList()

UserList::~UserList ( )
virtual

Definition at line 39 of file UserList.cpp.

References a, begin_user(), and end_user().

Here is the call graph for this function:

Member Function Documentation

◆ begin_user()

UserList::iterator_user UserList::begin_user ( )

Definition at line 77 of file UserList.cpp.

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

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

Here is the call graph for this function:

◆ checkinUser()

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, MeshType >::checkin().

Here is the call graph for this function:

◆ checkoutUser() [1/2]

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:

◆ checkoutUser() [2/2]

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, MeshType >::checkout(), and checkoutUser().

Here is the call graph for this function:

◆ end_user()

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(), FieldLayout< Dim >::end_if(), Mesh< Dim >::end_if(), getUser(), and ~UserList().

Here is the call graph for this function:

◆ getNumUsers()

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 FieldLayout< Dim >::size_if(), and Mesh< Dim >::size_if().

Here is the call graph for this function:

◆ getUser()

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:

◆ getUserListID()

UserList::ID_t UserList::getUserListID ( ) const

◆ haveUser()

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

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().

◆ userlistID

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: