AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
FactorySelector::PermissibleOrderPred< T > Struct Template Reference

Public Member Functions

 PermissibleOrderPred (T const *obj)
 
template<class Value >
bool operator() (Value const &left, Value const &right) const
 

Private Attributes

T const *const _obj
 

Detailed Description

template<class T>
struct FactorySelector::PermissibleOrderPred< T >

Constructor & Destructor Documentation

◆ PermissibleOrderPred()

template<class T >
FactorySelector::PermissibleOrderPred< T >::PermissibleOrderPred ( T const *  obj)
inline
41: _obj(obj) { }
T const *const _obj
Definition: CreatureAISelector.cpp:50

Member Function Documentation

◆ operator()()

template<class T >
template<class Value >
bool FactorySelector::PermissibleOrderPred< T >::operator() ( Value const &  left,
Value const &  right 
) const
inline
45 {
46 return GetPermitFor(_obj, left) < GetPermitFor(_obj, right);
47 }
int32 GetPermitFor(T const *obj, Value const &value)
Definition: CreatureAISelector.cpp:31

References FactorySelector::PermissibleOrderPred< T >::_obj, and FactorySelector::GetPermitFor().

Member Data Documentation

◆ _obj

template<class T >
T const* const FactorySelector::PermissibleOrderPred< T >::_obj
private