Public Member Functions | Private Member Functions | List of all members
MemberGroupSDict Class Reference

#include <membergroup.h>

Inheritance diagram for MemberGroupSDict:
SIntDict< MemberGroup >

Public Member Functions

 MemberGroupSDict (int size=17)
 
 ~MemberGroupSDict ()
 
- Public Member Functions inherited from SIntDict< MemberGroup >
 SIntDict (int size=17)
 
virtual ~SIntDict ()
 
void append (int key, const MemberGroup *d)
 
void prepend (int key, const MemberGroup *d)
 
bool remove (int key)
 
void sort ()
 
void inSort (int key, const MemberGroup *d)
 
void setAutoDelete (bool val)
 
MemberGroupfind (int key)
 
MemberGroupoperator[] (int key) const
 
MemberGroupat (uint i)
 
void clear ()
 
int count ()
 

Private Member Functions

int compareValues (const MemberGroup *item1, const MemberGroup *item2) const
 

Detailed Description

A sorted dictionary of MemberGroup objects.

Definition at line 129 of file membergroup.h.

Constructor & Destructor Documentation

MemberGroupSDict::MemberGroupSDict ( int  size = 17)
inline

Definition at line 132 of file membergroup.h.

decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
MemberGroupSDict::~MemberGroupSDict ( )
inline

Definition at line 133 of file membergroup.h.

133 {}

Member Function Documentation

int MemberGroupSDict::compareValues ( const MemberGroup item1,
const MemberGroup item2 
) const
inlineprivatevirtual

Function that is used to compare two items when sorting. Overload this to properly sort items.

See also
inSort()

Reimplemented from SIntDict< MemberGroup >.

Definition at line 135 of file membergroup.h.

136  {
137  return item1->groupId() - item2->groupId();
138  }
int groupId() const
Definition: membergroup.h:48

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