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

Represents an association between a string and an integer. More...

#include <mapofint.h>

Collaboration diagram for MapOfIntEntry:
Collaboration graph

Public Attributes

const char * key
 Key associated with this integer. Borrowed pointer.
 
int value
 The integer value.
 

Detailed Description

Represents an association between a string and an integer.

Definition at line 15 of file mapofint.h.

Member Data Documentation

◆ key

const char* key

Key associated with this integer. Borrowed pointer.

Definition at line 17 of file mapofint.h.

Referenced by MapOfInt_Add(), and MapOfInt_Find().

◆ value

int value

The integer value.

Definition at line 18 of file mapofint.h.

Referenced by MapOfInt_Add(), Shop_AddItemToInventory(), Shop_IsItemInStock(), and Shop_PickupOrder().


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