# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLSOUND::CContextSoundContainer Class Template Reference

#include <context_sound.h>

Inheritance diagram for NLSOUND::CContextSoundContainer:

NLSOUND::IContextSoundContainer List of all members.

Private Types

typedef std::hash_map< CContextMatcher<
NbJoker, UseRandom, Shift >,
CSound *, CContextMatcher<
NbJoker, UseRandom, Shift
>::CHash > 
THashContextSound

Private Methods

virtual void init (uint *contextArgsIndex)
virtual void addSound (CSound *sound, const std::string &baseName)
virtual CSoundgetSound (const CSoundContext &context, uint32 randomValue)
void getSoundList (std::vector< std::pair< std::string, CSound * > > &subsounds) const

Private Attributes

uint32 _ContextArgsIndex [NbJoker]
THashContextSound _ContextSounds

template<uint NbJoker, bool UseRandom, uint Shift = 5>
class NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >


Member Typedef Documentation

template<uint NbJoker, bool UseRandom, uint Shift = 5>
typedef std::hash_map<CContextMatcher<NbJoker, UseRandom, Shift>, CSound *, CContextMatcher<NbJoker, UseRandom, Shift>::CHash> NLSOUND::CContextSoundContainer::THashContextSound [private]
 

Definition at line 108 of file context_sound.h.


Member Function Documentation

template<uint NbJoker, bool UseRandom, uint Shift = 5>
virtual void NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::addSound CSound   sound,
const std::string &    baseName
[inline, private, virtual]
 

Implements NLSOUND::IContextSoundContainer.

Definition at line 115 of file context_sound.h.

References _ContextSounds, nlassert, nldebug, nlwarning, and NLMISC::smprintf.

template<uint NbJoker, bool UseRandom, uint Shift = 5>
virtual CSound* NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::getSound const CSoundContext   context,
uint32    randomValue
[inline, private, virtual]
 

Implements NLSOUND::IContextSoundContainer.

Definition at line 222 of file context_sound.h.

References _ContextArgsIndex, and _ContextSounds.

template<uint NbJoker, bool UseRandom, uint Shift = 5>
void NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::getSoundList std::vector< std::pair< std::string, CSound * > > &    subsounds const [inline, private, virtual]
 

Implements NLSOUND::IContextSoundContainer.

Definition at line 239 of file context_sound.h.

References _ContextSounds.

template<uint NbJoker, bool UseRandom, uint Shift = 5>
virtual void NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::init uint   contextArgsIndex [inline, private, virtual]
 

Implements NLSOUND::IContextSoundContainer.

Definition at line 110 of file context_sound.h.

References _ContextArgsIndex.


Member Data Documentation

template<uint NbJoker, bool UseRandom, uint Shift = 5>
uint32 NLSOUND::CContextSoundContainer::_ContextArgsIndex[NbJoker] [private]
 

Definition at line 249 of file context_sound.h.

Referenced by getSound, and init.

template<uint NbJoker, bool UseRandom, uint Shift = 5>
THashContextSound NLSOUND::CContextSoundContainer::_ContextSounds [private]
 

Definition at line 250 of file context_sound.h.

Referenced by addSound, getSound, and getSoundList.


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