Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
JACOUSTICS::JModel::emitter_map::JHashMapHelper Struct Reference

Auxiliary class for multiple associative map operators. More...

Public Member Functions

 JHashMapHelper (JHashMap< JEKey, JEmitter > &map, int id)
 Constructor. More...
 
JEmitteroperator[] (const int counter)
 Get value corresponding to event counter (i.e. second part of JEKey). More...
 

Private Attributes

JHashMap< JEKey, JEmitter > & map
 
int id
 

Detailed Description

Auxiliary class for multiple associative map operators.

Definition at line 636 of file JAcoustics/JModel.hh.

Constructor & Destructor Documentation

JACOUSTICS::JModel::emitter_map::JHashMapHelper::JHashMapHelper ( JHashMap< JEKey, JEmitter > &  map,
int  id 
)
inline

Constructor.

Parameters
mapmap
idemitter identifier

Definition at line 643 of file JAcoustics/JModel.hh.

643  :
644  map(map),
645  id (id)
646  {}

Member Function Documentation

JEmitter& JACOUSTICS::JModel::emitter_map::JHashMapHelper::operator[] ( const int  counter)
inline

Get value corresponding to event counter (i.e. second part of JEKey).

Parameters
counterevent counter
Returns
emitter

Definition at line 655 of file JAcoustics/JModel.hh.

656  {
657  return map[JEKey(id, counter)];
658  }
Emitter key.
Definition: JEKey.hh:29

Member Data Documentation

JHashMap<JEKey, JEmitter>& JACOUSTICS::JModel::emitter_map::JHashMapHelper::map
private

Definition at line 661 of file JAcoustics/JModel.hh.

int JACOUSTICS::JModel::emitter_map::JHashMapHelper::id
private

Definition at line 662 of file JAcoustics/JModel.hh.


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