OpenBarnyard
 
Loading...
Searching...
No Matches
ASoundManager::SoundEventListSortResults Struct Reference

#include <ASoundManager.h>

Public Member Functions

TINT operator() (const SoundEventList &a_rcVal1, const SoundEventList &a_rcVal2) const
 

Detailed Description

Definition at line 156 of file ASoundManager.h.

Member Function Documentation

◆ operator()()

TINT ASoundManager::SoundEventListSortResults::operator() ( const SoundEventList & a_rcVal1,
const SoundEventList & a_rcVal2 ) const
inline

Definition at line 158 of file ASoundManager.h.

159 {
160 if ( a_rcVal1->Size() <= 0 )
161 return ( a_rcVal2->Size() == 0 ) ? 0 : -1;
162
163 if ( a_rcVal2->Size() <= 0 )
164 return 1;
165
166 return SoundEventSortResults()( *a_rcVal1->Begin(), *a_rcVal2->Begin() );
167 }

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