Design Pattern Examples
Overview of object-oriented design patterns
ItemPair Class Reference

Represents a key/value pair where the key and value are strings. More...

#include <Iterator_Class.h>

Collaboration diagram for ItemPair:
Collaboration graph

Public Member Functions

 ItemPair ()
 Default Constructor.
 
 ItemPair (std::string key, std::string value)
 Constructor.
 

Public Attributes

std::string Key
 
std::string Value
 

Detailed Description

Represents a key/value pair where the key and value are strings.

Definition at line 25 of file Iterator_Class.h.

Constructor & Destructor Documentation

◆ ItemPair() [1/2]

ItemPair ( )
inline

Default Constructor.

Definition at line 34 of file Iterator_Class.h.

◆ ItemPair() [2/2]

ItemPair ( std::string  key,
std::string  value 
)
inline

Constructor.

Parameters
keyThe key to use.
valueThe value to use.

Definition at line 44 of file Iterator_Class.h.

Member Data Documentation

◆ Key

std::string Key

Definition at line 28 of file Iterator_Class.h.

Referenced by DesignPatternExamples_cpp::Iterator_Exercise().

◆ Value

std::string Value

Definition at line 29 of file Iterator_Class.h.

Referenced by DesignPatternExamples_cpp::Iterator_Exercise().


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