OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
UserList Class Reference

#include <UserList.h>

Inheritance diagram for UserList:
Collaboration diagram for UserList:

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::~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()

◆ 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 FieldLayout< Dim >::checkin(), Mesh< Dim >::checkin(), and RegionLayout< T, Dim, Mesh >::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(), and userlist.

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

Here is the call graph for this function:

◆ end_user()

◆ getNumUsers()

UserList::size_type_user UserList::getNumUsers ( ) const

Definition at line 47 of file UserList.cpp.

References userlist.

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

◆ getUser()

User & UserList::getUser ( Key key)

Definition at line 68 of file UserList.cpp.

◆ getUserListID()

◆ haveUser()

bool UserList::haveUser ( Key key) const

Definition at line 61 of file UserList.cpp.

References userlist.

Referenced by checkinUser().

Member Data Documentation

◆ userlist

◆ userlistID

ID_t UserList::userlistID
private

Definition at line 103 of file UserList.h.

Referenced by checkinUser(), getUserListID(), and UserList().


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