Jpp
Public Member Functions | Public Attributes | Friends | List of all members
JKey Struct Reference

Map key. More...

#include <JHistogramToolkit.hh>

Public Member Functions

 JKey (const char *name, const int index)
 Constructor. More...
 

Public Attributes

std::string name
 
int index
 

Friends

bool operator< (const JKey &first, const JKey &second)
 Less than operator. More...
 

Detailed Description

Map key.

Definition at line 25 of file JHistogramToolkit.hh.

Constructor & Destructor Documentation

◆ JKey()

JKey::JKey ( const char *  name,
const int  index 
)
inline

Constructor.

Parameters
nameparameter name
indexparameter value (= index in user data)

Definition at line 32 of file JHistogramToolkit.hh.

34  {
35  this->name = name;
36  this->index = index;
37  }

Friends And Related Function Documentation

◆ operator<

bool operator< ( const JKey first,
const JKey second 
)
friend

Less than operator.

Parameters
firstfirst key
secondsecond key
Returns
true if index of first key less than that of second; else false

Definition at line 47 of file JHistogramToolkit.hh.

48  {
49  return first.index < second.index;
50  }

Member Data Documentation

◆ name

std::string JKey::name

Definition at line 52 of file JHistogramToolkit.hh.

◆ index

int JKey::index

Definition at line 53 of file JHistogramToolkit.hh.


The documentation for this struct was generated from the following file:
JKey::name
std::string name
Definition: JHistogramToolkit.hh:52
JKey::index
int index
Definition: JHistogramToolkit.hh:53