Jpp  17.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions | Friends | List of all members
JACOUSTICS::JModel Struct Reference

Model for fit to acoustics data. More...

#include <JModel.hh>

Inheritance diagram for JACOUSTICS::JModel:
JMATH::JMath< JFirst_t, JSecond_t > JLANG::JEquals< JFirst_t, JSecond_t > JTOOLS::JHashMapToolkit

Classes

struct  emitter_type
 Map emitter key to model parameters of emitter. More...
 
struct  string_type
 Map string identifier to model parameters of string. More...
 

Public Types

typedef JMODEL::JString JString
 
typedef JMODEL::JEmitter JEmitter
 
typedef size_t parameter_type
 Type definition of fit parameter. More...
 

Public Member Functions

 JModel ()
 Default constructor. More...
 
template<class T >
 JModel (T __begin, T __end)
 Constructor. More...
 
JModeloperator= (const JMATH::JZero &zero)
 Reset parameters. More...
 
void clear ()
 Clear parameters. More...
 
void reset ()
 Reset parameters. More...
 
JModelnegate ()
 Negate model. More...
 
JModeladd (const JModel &model)
 Add model. More...
 
JModelsub (const JModel &model)
 Subtract model. More...
 
JModelmul (const double factor)
 Scale model. More...
 
JModeldiv (const double factor)
 Scale model. More...
 
bool equals (const JModel &model, const double precision=std::numeric_limits< double >::min()) const
 Check equality. More...
 
size_t getN () const
 Get number of fit parameters. More...
 
size_t getIndex (int id, double JString::*p) const
 Get index of fit parameter for given string. More...
 
size_t getIndex (const JEKey &id, double JEmitter::*p) const
 Get index of fit parameter for given emitter. More...
 
double operator[] (const size_t index) const
 Read access to fit parameter value by index. More...
 
double & operator[] (const size_t index)
 Read/write access to fit parameter value by index. More...
 
JFirst_t & mul (const JSecond_t &object)
 Multiply with object. More...
 

Static Public Member Functions

template<class JKey_t , class JValue_t , class JEvaluator_t >
static void reset (JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer)
 Reset buffer. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void set (JHashMap< JKey_t, JValue_t, JEvaluator_t > &target, const JHashMap< JKey_t, JValue_t, JEvaluator_t > &source, const JValue_t &value)
 Set values in target corresponding to keys in source. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void evaluate (JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, JValue_t &(JValue_t::*f1)())
 Evaluate arithmetic operation on buffer. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void evaluate (JHashMap< JKey_t, JValue_t, JEvaluator_t > &first, const JHashMap< JKey_t, JValue_t, JEvaluator_t > &second, JValue_t &(JValue_t::*f1)(const JValue_t &))
 Evaluate arithmetic operation on buffers. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void evaluate (JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, JValue_t &(JValue_t::*f1)(const double), const double factor)
 Evaluate arithmetic operation on buffer. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static bool equals (const JHashMap< JKey_t, JValue_t, JEvaluator_t > &first, const JHashMap< JKey_t, JValue_t, JEvaluator_t > &second)
 Check equality of buffers. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static bool equals (const JHashMap< JKey_t, JValue_t, JEvaluator_t > &first, const JHashMap< JKey_t, JValue_t, JEvaluator_t > &second, const double precision)
 Check equality of buffers. More...
 

Public Attributes

JACOUSTICS::JModel::emitter_type emitter
 
JACOUSTICS::JModel::string_type string
 

Static Private Member Functions

template<class T >
static size_t getIndex (double T::*p)
 Get index of fit parameter in given data structure. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static double getParameter (const JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, const size_t index)
 Get read access to fit parameter value at given index in buffer. More...
 
template<class JKey_t , class JValue_t , class JEvaluator_t >
static double & getParameter (JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, const size_t index)
 Get read/write access to fit parameter value at given index in buffer. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const JModel &model)
 Write model parameters to output stream. More...
 

Detailed Description

Model for fit to acoustics data.

The model consists of string parameters and emitter parameters.
These parameters relate to the string identifer and emitter key, respectively.

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

Member Typedef Documentation

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

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

Type definition of fit parameter.

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

Constructor & Destructor Documentation

JACOUSTICS::JModel::JModel ( )
inline

Default constructor.

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

547  {}
template<class T >
JACOUSTICS::JModel::JModel ( T  __begin,
T  __end 
)
inline

Constructor.

This constructor can be used to set up a default model (i.e. all values at zero) for the given set of hits.
The data type corresponding to the hits should provide for the following policy methods.

   int      getString();        // get string identifier
   JEkey    getEKey();          // get emitter key
Parameters
__beginbegin of hits
__endend of hits

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

565  {
566  for (T hit = __begin; hit != __end; ++hit) {
567 
568  if (!this->string.has(hit->getString())) {
569  this->string[hit->getString()] = JString();
570  }
571 
572  if (!this->emitter.has(hit->getEKey())) {
573  this->emitter[hit->getEKey()] = JEmitter();
574  }
575  }
576  }
JMODEL::JEmitter JEmitter
do set_variable OUTPUT_DIRECTORY $WORKDIR T
JMODEL::JString JString
JACOUSTICS::JModel::emitter_type emitter
bool has(const T &value) const
Test whether given value is present.

Member Function Documentation

JModel& JACOUSTICS::JModel::operator= ( const JMATH::JZero zero)
inline

Reset parameters.

Parameters
zerozero
Returns
this model

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

586  {
587  this->reset();
588 
589  return *this;
590  }
void reset()
Reset parameters.
void JACOUSTICS::JModel::clear ( )
inline

Clear parameters.

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

597  {
598  string .clear();
599  emitter.clear();
600  }
virtual void clear() override
Clear.
Definition: JHashMap.hh:107
JACOUSTICS::JModel::emitter_type emitter
void JACOUSTICS::JModel::reset ( )
inline

Reset parameters.

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

607  {
608  reset(string);
609  reset(emitter);
610  }
JACOUSTICS::JModel::emitter_type emitter
void reset()
Reset parameters.
JModel& JACOUSTICS::JModel::negate ( )
inline

Negate model.

Returns
this model

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

619  {
620  evaluate(this->string, &JString ::negate);
622 
623  return *this;
624  }
static void evaluate(JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, JValue_t &(JValue_t::*f1)())
Evaluate arithmetic operation on buffer.
JString & negate()
Negate string.
JACOUSTICS::JModel::emitter_type emitter
JEmitter & negate()
Negate emitter.
JModel& JACOUSTICS::JModel::add ( const JModel model)
inline

Add model.

Parameters
modelmodel
Returns
this model

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

634  {
635  evaluate(this->string, model.string, &JString ::add);
636  evaluate(this->emitter, model.emitter, &JEmitter::add);
637 
638  return *this;
639  }
static void evaluate(JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, JValue_t &(JValue_t::*f1)())
Evaluate arithmetic operation on buffer.
JEmitter & add(const JEmitter &emitter)
Add emitter.
JString & add(const JString &string)
Add string.
JACOUSTICS::JModel::string_type string
JACOUSTICS::JModel::emitter_type emitter
JModel& JACOUSTICS::JModel::sub ( const JModel model)
inline

Subtract model.

Parameters
modelmodel
Returns
this model

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

649  {
650  evaluate(this->string, model.string, &JString ::sub);
651  evaluate(this->emitter, model.emitter, &JEmitter::sub);
652 
653  return *this;
654  }
JEmitter & sub(const JEmitter &emitter)
Subtract emitter.
static void evaluate(JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, JValue_t &(JValue_t::*f1)())
Evaluate arithmetic operation on buffer.
JString & sub(const JString &string)
Subtract string.
JACOUSTICS::JModel::string_type string
JACOUSTICS::JModel::emitter_type emitter
JModel& JACOUSTICS::JModel::mul ( const double  factor)
inline

Scale model.

Parameters
factormultiplication factor
Returns
this model

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

664  {
665  evaluate(this->string, &JString ::mul, factor);
666  evaluate(this->emitter, &JEmitter::mul, factor);
667 
668  return *this;
669  }
JString & mul(const double factor)
Scale string.
JEmitter & mul(const double factor)
Scale emitter.
static void evaluate(JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, JValue_t &(JValue_t::*f1)())
Evaluate arithmetic operation on buffer.
JACOUSTICS::JModel::emitter_type emitter
JModel& JACOUSTICS::JModel::div ( const double  factor)
inline

Scale model.

Parameters
factordivision factor
Returns
this model

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

679  {
680  evaluate(this->string, &JString ::div, factor);
681  evaluate(this->emitter, &JEmitter::div, factor);
682 
683  return *this;
684  }
static void evaluate(JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, JValue_t &(JValue_t::*f1)())
Evaluate arithmetic operation on buffer.
JEmitter & div(const double factor)
Scale emitter.
JString & div(const double factor)
Scale string.
JACOUSTICS::JModel::emitter_type emitter
bool JACOUSTICS::JModel::equals ( const JModel model,
const double  precision = std::numeric_limits<double>::min() 
) const
inline

Check equality.

Parameters
modelmodel
precisionprecision
Returns
true if models are equal; else false

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

696  {
697  return (equals(this->string, model.string, precision) &&
698  equals(this->emitter, model.emitter, precision));
699  }
bool equals(const JModel &model, const double precision=std::numeric_limits< double >::min()) const
Check equality.
JACOUSTICS::JModel::string_type string
JACOUSTICS::JModel::emitter_type emitter
size_t JACOUSTICS::JModel::getN ( ) const
inline

Get number of fit parameters.

Returns
number of parameters

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

732  {
733  return emitter.getN() + string.getN();
734  }
JACOUSTICS::JModel::emitter_type emitter
size_t getN() const
Get number of fit parameters.
size_t JACOUSTICS::JModel::getIndex ( int  id,
double JString::*  p 
) const
inline

Get index of fit parameter for given string.

Parameters
idstring identifier
ppointer to data member
Returns
parameter

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

745  {
746  if (string.has(id))
747  return emitter.getN() + string.getIndex(id) * JString::getN() + getIndex(p);
748  else
749  THROW(JValueOutOfRange, "Invalid identifier " << id);
750  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
static size_t getN()
Get number of fit parameters.
size_t getIndex(int id, double JString::*p) const
Get index of fit parameter for given string.
JACOUSTICS::JModel::emitter_type emitter
size_t getN() const
Get number of fit parameters.
size_t JACOUSTICS::JModel::getIndex ( const JEKey id,
double JEmitter::*  p 
) const
inline

Get index of fit parameter for given emitter.

Parameters
idemitter key
ppointer to data member
Returns
parameter

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

761  {
762  if (emitter.has(id))
763  return emitter.getIndex(id) * JEmitter::getN() + getIndex(p);
764  else
765  THROW(JValueOutOfRange, "Invalid identifier " << id);
766  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
int getIndex(const T &value) const
Get index of given value.
static size_t getN()
Get number of fit parameters.
size_t getIndex(int id, double JString::*p) const
Get index of fit parameter for given string.
JACOUSTICS::JModel::emitter_type emitter
bool has(const T &value) const
Test whether given value is present.
double JACOUSTICS::JModel::operator[] ( const size_t  index) const
inline

Read access to fit parameter value by index.

Parameters
indexindex
Returns
value

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

776  {
777  size_t i = index;
778 
779  if (i < emitter.getN()) { return getParameter(emitter, i); }
780 
781  i -= emitter.getN();
782 
783  if (i < string .getN()) { return getParameter(string, i); }
784 
785  THROW(JIndexOutOfRange, "Invalid index " << index << " >= " << getN());
786  }
size_t getN() const
Get number of fit parameters.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
static double getParameter(const JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, const size_t index)
Get read access to fit parameter value at given index in buffer.
JACOUSTICS::JModel::emitter_type emitter
size_t getN() const
Get number of fit parameters.
double& JACOUSTICS::JModel::operator[] ( const size_t  index)
inline

Read/write access to fit parameter value by index.

Parameters
indexindex
Returns
value

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

796  {
797  size_t i = index;
798 
799  if (i < emitter.getN()) { return getParameter(emitter, i); }
800 
801  i -= emitter.getN();
802 
803  if (i < string .getN()) { return getParameter(string, i); }
804 
805  THROW(JIndexOutOfRange, "Invalid index " << index << " >= " << getN());
806  }
size_t getN() const
Get number of fit parameters.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
static double getParameter(const JHashMap< JKey_t, JValue_t, JEvaluator_t > &buffer, const size_t index)
Get read access to fit parameter value at given index in buffer.
JACOUSTICS::JModel::emitter_type emitter
size_t getN() const
Get number of fit parameters.
template<class T >
static size_t JACOUSTICS::JModel::getIndex ( double T::*  p)
inlinestaticprivate

Get index of fit parameter in given data structure.

Parameters
ppointer to data member
Returns
index

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

903  {
904  T* __p__ = NULL;
905 
906  return ((double*) &(__p__->*p) - (double*) __p__);
907  }
do set_variable OUTPUT_DIRECTORY $WORKDIR T
template<class JKey_t , class JValue_t , class JEvaluator_t >
static double JACOUSTICS::JModel::getParameter ( const JHashMap< JKey_t, JValue_t, JEvaluator_t > &  buffer,
const size_t  index 
)
inlinestaticprivate

Get read access to fit parameter value at given index in buffer.

Parameters
bufferbuffer
indexindex
Returns
value

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

919  {
920  const size_t pos = index / JValue_t::getN(); // position of element in buffer
921  const size_t offset = index % JValue_t::getN(); // offset of parameter in element
922 
923  const JValue_t& value = buffer.data()[pos].second; // value of element at given position
924 
925  return ((const double*) &value)[offset]; // parameter at given offset
926  }
double getN(const JRange< T > &range, const double R)
Get expected number of occurrences due to given rate within specified interval.
Definition: JRange.hh:713
template<class JKey_t , class JValue_t , class JEvaluator_t >
static double& JACOUSTICS::JModel::getParameter ( JHashMap< JKey_t, JValue_t, JEvaluator_t > &  buffer,
const size_t  index 
)
inlinestaticprivate

Get read/write access to fit parameter value at given index in buffer.

Parameters
bufferbuffer
indexindex
Returns
value

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

938  {
939  const size_t pos = index / JValue_t::getN(); // position of element in buffer
940  const size_t offset = index % JValue_t::getN(); // offset of parameter in element
941 
942  JValue_t& value = buffer.data()[pos].second; // value of element at given position
943 
944  return ((double*) &value)[offset]; // parameter at given offset
945  }
double getN(const JRange< T > &range, const double R)
Get expected number of occurrences due to given rate within specified interval.
Definition: JRange.hh:713
template<class JFirst_t, class JSecond_t = JNullType>
JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul ( const JSecond_t &  object)
inlineinherited

Multiply with object.

Parameters
objectobject
Returns
result object

Definition at line 357 of file JMath.hh.

358  {
359  return static_cast<JFirst_t&>(*this) = JCalculator<JFirst_t>::calculator.mul(static_cast<const JFirst_t&>(*this), object);
360  }
Auxiliary class for arithmetic operations on objects.
Definition: JCalculator.hh:18
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void JTOOLS::JHashMapToolkit::reset ( JHashMap< JKey_t, JValue_t, JEvaluator_t > &  buffer)
inlinestaticinherited

Reset buffer.

Parameters
bufferbuffer

Definition at line 32 of file JHashMapToolkit.hh.

33  {
34  for (typename JHashMap<JKey_t, JValue_t, JEvaluator_t>::iterator i = buffer.begin(); i != buffer.end(); ++i) {
35  i->second = JValue_t();
36  }
37  }
container_type::iterator iterator
Definition: JHashMap.hh:88
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void JTOOLS::JHashMapToolkit::set ( JHashMap< JKey_t, JValue_t, JEvaluator_t > &  target,
const JHashMap< JKey_t, JValue_t, JEvaluator_t > &  source,
const JValue_t &  value 
)
inlinestaticinherited

Set values in target corresponding to keys in source.

Parameters
targettarget buffer
sourcesource buffer
valuevalue

Definition at line 48 of file JHashMapToolkit.hh.

51  {
52  target.clear();
53 
54  for (typename JHashMap<JKey_t, JValue_t, JEvaluator_t>::const_iterator i = source.begin(); i != source.end(); ++i) {
55  target[i->first] = value;
56  }
57  }
virtual void clear() override
Clear.
Definition: JHashMap.hh:107
container_type::const_iterator const_iterator
Definition: JHashMap.hh:86
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void JTOOLS::JHashMapToolkit::evaluate ( JHashMap< JKey_t, JValue_t, JEvaluator_t > &  buffer,
JValue_t &(JValue_t::*)()  f1 
)
inlinestaticinherited

Evaluate arithmetic operation on buffer.

Parameters
bufferbuffer
f1operation

Definition at line 67 of file JHashMapToolkit.hh.

69  {
70  for (typename JHashMap<JKey_t, JValue_t, JEvaluator_t>::iterator i = buffer.begin(); i != buffer.end(); ++i) {
71  (i->second.*f1)();
72  }
73  }
const JPolynome f1(1.0, 2.0, 3.0)
Function.
container_type::iterator iterator
Definition: JHashMap.hh:88
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void JTOOLS::JHashMapToolkit::evaluate ( JHashMap< JKey_t, JValue_t, JEvaluator_t > &  first,
const JHashMap< JKey_t, JValue_t, JEvaluator_t > &  second,
JValue_t &(JValue_t::*)(const JValue_t &)  f1 
)
inlinestaticinherited

Evaluate arithmetic operation on buffers.

Parameters
firstfirst buffer
secondsecond buffer
f1operation

Definition at line 84 of file JHashMapToolkit.hh.

87  {
88  for (typename JHashMap<JKey_t, JValue_t, JEvaluator_t>::const_iterator i = second.begin(); i != second.end(); ++i) {
89  (first[i->first].*f1)(i->second);
90  }
91  }
const JPolynome f1(1.0, 2.0, 3.0)
Function.
container_type::const_iterator const_iterator
Definition: JHashMap.hh:86
template<class JKey_t , class JValue_t , class JEvaluator_t >
static void JTOOLS::JHashMapToolkit::evaluate ( JHashMap< JKey_t, JValue_t, JEvaluator_t > &  buffer,
JValue_t &(JValue_t::*)(const double)  f1,
const double  factor 
)
inlinestaticinherited

Evaluate arithmetic operation on buffer.

Parameters
bufferbuffer
f1operation
factorfactor

Definition at line 102 of file JHashMapToolkit.hh.

105  {
106  for (typename JHashMap<JKey_t, JValue_t, JEvaluator_t>::iterator i = buffer.begin(); i != buffer.end(); ++i) {
107  (i->second.*f1)(factor);
108  }
109  }
const JPolynome f1(1.0, 2.0, 3.0)
Function.
container_type::iterator iterator
Definition: JHashMap.hh:88
template<class JKey_t , class JValue_t , class JEvaluator_t >
static bool JTOOLS::JHashMapToolkit::equals ( const JHashMap< JKey_t, JValue_t, JEvaluator_t > &  first,
const JHashMap< JKey_t, JValue_t, JEvaluator_t > &  second 
)
inlinestaticinherited

Check equality of buffers.

Parameters
firstfirst buffer
secondsecond buffer
Returns
true if buffers are equal; else false

Definition at line 120 of file JHashMapToolkit.hh.

122  {
124  p = first .begin(),
125  q = second.begin(); ; ++p, ++q) {
126 
127  if (p != first.end() && q != second.end()) {
128 
129  if (p->first != q->first || p->second != q->second) {
130  return false;
131  }
132 
133  } else if (p == first.end() && q == second.end()) {
134 
135  return true;
136 
137  } else {
138 
139  return false;
140  }
141  }
142  }
container_type::const_iterator const_iterator
Definition: JHashMap.hh:86
template<class JKey_t , class JValue_t , class JEvaluator_t >
static bool JTOOLS::JHashMapToolkit::equals ( const JHashMap< JKey_t, JValue_t, JEvaluator_t > &  first,
const JHashMap< JKey_t, JValue_t, JEvaluator_t > &  second,
const double  precision 
)
inlinestaticinherited

Check equality of buffers.

Parameters
firstfirst buffer
secondsecond buffer
precisionprecision
Returns
true if buffers are equal; else false

Definition at line 154 of file JHashMapToolkit.hh.

157  {
159  p = first .begin(),
160  q = second.begin(); ; ++p, ++q) {
161 
162  if (p != first.end() && q != second.end()) {
163 
164  if (p->first != q->first || !p->second.equals(q->second, precision)) {
165  return false;
166  }
167 
168  } else if (p == first.end() && q == second.end()) {
169 
170  return true;
171 
172  } else {
173 
174  return false;
175  }
176  }
177  }
container_type::const_iterator const_iterator
Definition: JHashMap.hh:86

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JModel model 
)
friend

Write model parameters to output stream.

Parameters
outoutput stream
modelmodel
Returns
output stream

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

710  {
711  using namespace std;
712  using namespace JPP;
713 
714  for (JHashMap<int, JString>::const_iterator i = model.string.begin(); i != model.string.end(); ++i) {
715  out << "string: " << setw(4) << i->first << ' ' << i->second << endl;
716  }
717 
718  for (JHashMap<JEKey, JEmitter>::const_iterator i = model.emitter.begin(); i != model.emitter.end(); ++i) {
719  out << "emitter: " << setw(3) << i->first << ' ' << i->second << endl;
720  }
721 
722  return out;
723  }
JACOUSTICS::JModel::string_type string
JACOUSTICS::JModel::emitter_type emitter
container_type::const_iterator const_iterator
Definition: JHashMap.hh:86

Member Data Documentation

JACOUSTICS::JModel::emitter_type JACOUSTICS::JModel::emitter
JACOUSTICS::JModel::string_type JACOUSTICS::JModel::string

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