Design Pattern Examples
Overview of object-oriented design patterns
UserList Struct Reference

Represents a list of users. Call UserList_Initialize() to start and UserList_Clear() to release all resources and restore to empty state. More...

#include <Mediator_UserList.h>

Collaboration diagram for UserList:
Collaboration graph

Public Attributes

User ** users
 Array of pointers to User objects.
 
size_t users_count
 Number of pointers in the users list.
 
size_t allocated_count
 Size of the allocated users list.
 

Detailed Description

Represents a list of users. Call UserList_Initialize() to start and UserList_Clear() to release all resources and restore to empty state.

Definition at line 19 of file Mediator_UserList.h.

Member Data Documentation

◆ allocated_count

size_t allocated_count

Size of the allocated users list.

Definition at line 23 of file Mediator_UserList.h.

Referenced by UserList_AddUser(), UserList_Initialize(), and UserList_RemoveUser().

◆ users

◆ users_count

size_t users_count

Number of pointers in the users list.

Definition at line 22 of file Mediator_UserList.h.

Referenced by UserList_AddUser(), UserList_Clear(), UserList_FindUser(), UserList_Initialize(), UserList_RemoveUser(), and Users_GetAllUsers().


The documentation for this struct was generated from the following file: