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

Represents an expandable list of pointers to BigResource objects. Use the BigResourceList_Clear() to free up the resources in the list. Use the BigResourceList_AddResource() to add a BigResource object to the list (and also take ownership of the BigResource object). More...

Collaboration diagram for BigResourceList:
Collaboration graph

Public Attributes

BigResource ** resources
 Dynamic list of pointers to BigResource objects.
 
size_t resources_count
 Number of BigResource objects in the list.
 

Detailed Description

Represents an expandable list of pointers to BigResource objects. Use the BigResourceList_Clear() to free up the resources in the list. Use the BigResourceList_AddResource() to add a BigResource object to the list (and also take ownership of the BigResource object).

Definition at line 18 of file Flyweight_BigResourceManager.c.

Member Data Documentation

◆ resources

BigResource** resources

Dynamic list of pointers to BigResource objects.

Definition at line 20 of file Flyweight_BigResourceManager.c.

Referenced by BigResourceList_AddResource(), BigResourceList_Clear(), and BigResourceManager_GetResource().

◆ resources_count

size_t resources_count

Number of BigResource objects in the list.

Definition at line 21 of file Flyweight_BigResourceManager.c.

Referenced by BigResourceList_AddResource(), BigResourceList_Clear(), and BigResourceManager_GetResource().


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