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

Represents the strategy to use for sorting EntryInformation objects. More...

#include <Strategy_SortStrategy.h>

Collaboration diagram for SortStrategy:
Collaboration graph

Public Attributes

const char * name
 Name of the strategy (for display purposes)
 
CompareFunction compareFunction
 Compare function that determines the order of two entries.
 
bool reversedSort
 True if to reverse the order of the sort.
 

Detailed Description

Represents the strategy to use for sorting EntryInformation objects.

Definition at line 72 of file Strategy_SortStrategy.h.

Member Data Documentation

◆ compareFunction

CompareFunction compareFunction

Compare function that determines the order of two entries.

Definition at line 75 of file Strategy_SortStrategy.h.

Referenced by Sort_Entries(), and SortStrategy_Initialize().

◆ name

const char* name

Name of the strategy (for display purposes)

Definition at line 74 of file Strategy_SortStrategy.h.

Referenced by Display_Entries(), and SortStrategy_Initialize().

◆ reversedSort

bool reversedSort

True if to reverse the order of the sort.

Definition at line 76 of file Strategy_SortStrategy.h.

Referenced by Display_Entries(), Sort_Entries(), and SortStrategy_Initialize().


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