Jpp
JGarbageCollection.hh
Go to the documentation of this file.
1 #ifndef __JTOOLS__JGARBAGECOLLACTION__
2 #define __JTOOLS__JGARBAGECOLLACTION__
3 
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JTOOLS {}
12 namespace JPP { using namespace JTOOLS; }
13 
14 namespace JTOOLS {
15 
16  /**
17  * Garbage collection.
18  *
19  * This class implements the JMappableCollection interface but does nothing.
20  */
21  template<class JKey_t, class JValue_t>
23  public JMappableCollection<JKey_t, JValue_t>
24  {
25  public:
26 
28 
31 
32 
33  /**
34  * Clear.
35  */
36  virtual void clear()
37  {}
38 
39 
40  /**
41  * Get mapped value.
42  *
43  * \param key key
44  * \return value
45  */
47  {
48  return value;
49  }
50 
51  private:
53  };
54 }
55 
56 #endif
JTOOLS::JMappableCollection::key_type
JKey_t key_type
Definition: JMappableCollection.hh:33
JTOOLS::JGarbageCollection::mappablecollection_type
JMappableCollection< JKey_t, JValue_t > mappablecollection_type
Definition: JGarbageCollection.hh:27
JTOOLS::JMappableCollection
Template interface definition for associative collection of elements.
Definition: JMappableCollection.hh:30
JTOOLS::JGarbageCollection::get
virtual mapped_type & get(typename JLANG::JClass< key_type >::argument_type key)
Get mapped value.
Definition: JGarbageCollection.hh:46
JTOOLS::JGarbageCollection
Garbage collection.
Definition: JGarbageCollection.hh:22
JLANG::JClass::argument_type
JArgument< T >::argument_type argument_type
Definition: JClass.hh:82
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JTOOLS::JGarbageCollection::key_type
mappablecollection_type::key_type key_type
Definition: JGarbageCollection.hh:29
JMappableCollection.hh
JTOOLS::JGarbageCollection::mapped_type
mappablecollection_type::mapped_type mapped_type
Definition: JGarbageCollection.hh:30
JTOOLS::JMappableCollection::mapped_type
JValue_t mapped_type
Definition: JMappableCollection.hh:34
JTOOLS::JGarbageCollection::clear
virtual void clear()
Clear.
Definition: JGarbageCollection.hh:36
JTOOLS::JGarbageCollection::value
mapped_type value
Definition: JGarbageCollection.hh:52
JTOOLS
Auxiliary classes and methods for multi-dimensional interpolations and histograms.
Definition: JAbstractCollection.hh:9