Ares
Public Member Functions

Helpers::Alex::StrictWeakComparer< T, typename std::enable_if< std::is_base_of< ObjectClass, typename std::remove_pointer< typename T >::type >::value >::type > Struct Template Reference

Specialized comparer for all objects derived from ObjectClass. More...

#include <src/Utilities/Helpers.Alex.h>

List of all members.

Public Member Functions

bool operator() (const ObjectClass *lhs, const ObjectClass *rhs) const

Detailed Description

template<typename T>
struct Helpers::Alex::StrictWeakComparer< T, typename std::enable_if< std::is_base_of< ObjectClass, typename std::remove_pointer< typename T >::type >::value >::type >

Specialized comparer for all objects derived from ObjectClass.

This specialization compares the unique ID each ObjectClass has. It ensures the objects are sorted the same way on every computer.


Member Function Documentation

template<typename T >
bool Helpers::Alex::StrictWeakComparer< T, typename std::enable_if< std::is_base_of< ObjectClass, typename std::remove_pointer< typename T >::type >::value >::type >::operator() ( const ObjectClass *  lhs,
const ObjectClass *  rhs 
) const [inline]
                                                                                               {
                                return lhs->UniqueID < rhs->UniqueID;
                        }

The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines