| 
    Jpp master_rocky-44-g75b7c4f75
    
   the software that should make you happy 
   | 
 
Map of pair-wise elements. More...
#include <JMap.hh>
  
Public Types | |
| typedef JKey_t | key_type | 
| typedef JValue_t | mapped_type | 
| typedef JCollection< JElement2D< JKey_t, JValue_t >, JDistance_t > | container_type | 
| typedef container_type::const_iterator | const_iterator | 
| typedef container_type::const_reverse_iterator | const_reverse_iterator | 
| typedef container_type::iterator | iterator | 
| typedef container_type::reverse_iterator | reverse_iterator | 
| typedef JElement_t::abscissa_type | abscissa_type | 
| typedef JElement_t::ordinate_type | ordinate_type | 
| typedef JElement_t | value_type | 
| typedef JDistance_t | distance_type | 
| typedef JCollection< JElement_t, JDistance_t > | collection_type | 
| typedef JCollectionElementTransformer< value_type > | transformer_type | 
| typedef std::pair< const_iterator, bool > | pair_type | 
Public Member Functions | |
| JMap () | |
| Default constructor.   | |
| JMap & | add (const JMap &map) | 
| Add map.   | |
| JMap & | sub (const JMap &map) | 
| Subtract map.   | |
| JMap & | mul (const double value) | 
| Scale contents.   | |
| JMap & | div (const double value) | 
| Scale contents.   | |
| virtual void | clear () override | 
| Clear.   | |
| virtual const ordinate_type & | get (typename JClass< abscissa_type >::argument_type x) const override | 
| Get ordinate value.   | |
| virtual ordinate_type & | get (typename JClass< abscissa_type >::argument_type x) override | 
| Get ordinate value.   | |
| virtual int | getSize () const override | 
| Get number of elements.   | |
| virtual abscissa_type | getX (int index) const override | 
| Get abscissa value.   | |
| virtual abscissa_type | getXmin () const override | 
| Get minimal abscissa value.   | |
| virtual abscissa_type | getXmax () const override | 
| Get maximal abscissa value.   | |
| const ordinate_type & | getY (int index) const | 
| Get ordinate value.   | |
| ordinate_type & | getY (int index) | 
| Get ordinate value.   | |
| void | transform (const transformer_type &transformer) | 
| Transform collection.   | |
| void | sort () | 
| Sort elements.   | |
| const_iterator | lower_bound (typename JClass< abscissa_type >::argument_type x) const | 
Get first position of element i, where x >= i->getX().   | |
| iterator | lower_bound (typename JClass< abscissa_type >::argument_type x) | 
Get first position of element i, where x >= i->getX().   | |
| pair_type | insert (const value_type &element) | 
| Insert element.   | |
| void | configure (const JAbstractCollection< abscissa_type > &bounds) | 
| Configure collection.   | |
| void | configure (const JAbstractCollection< abscissa_type > &bounds, typename JClass< ordinate_type >::argument_type value) | 
| Configure collection.   | |
| template<class JFunction1D_t > | |
| void | configure (const JAbstractCollection< abscissa_type > &bounds, const JFunction1D_t &function) | 
| Configure collection.   | |
| bool | is_compatible (const JCollection &collection) const | 
| Test whether collections are compatible.   | |
| JCollection & | negate () | 
| Negate collection.   | |
| JCollection & | add (const JCollection &collection) | 
| Add collection.   | |
| JCollection & | add (typename JClass< ordinate_type >::argument_type value) | 
| Add offset.   | |
| template<class JFunction1D_t > | |
| JCollection & | add (const JFunction1D_t &function) | 
| Add function.   | |
| JCollection & | sub (const JCollection &collection) | 
| Subtract collection.   | |
| JCollection & | sub (typename JClass< ordinate_type >::argument_type value) | 
| Subtract offset.   | |
| template<class JFunction1D_t > | |
| JCollection & | sub (const JFunction1D_t &function) | 
| Subtract function.   | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.   | |
| const JComparator & | getComparator () const | 
| Get comparator.   | |
| const mapped_type & | operator[] (typename JClass< key_type >::argument_type key) const | 
| Get mapped value.   | |
| mapped_type & | operator[] (typename JClass< key_type >::argument_type key) | 
| Get mapped value.   | |
| void | put (typename JClass< key_type > ::argument_type key, typename JClass< mapped_type >::argument_type value) | 
| Put pair-wise element (key,value) into collection.   | |
| bool | is_equal (const JAbstractCollection &collection) const | 
| Test whether abstract collections are equal.   | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.   | |
Public Attributes | |
| JDistance_t | getDistance | 
| Function object for distance evaluation.   | |
Protected Member Functions | |
| void | resize (typename container_type::size_type size) | 
| Resize collection.   | |
Protected Attributes | |
| JComparator | compare | 
| Function object for comparison.   | |
Private Member Functions | |
| void | erase () | 
| void | push_back () | 
| void | pop_back () | 
Map of pair-wise elements.
The key_type and mapped_type refer to the pair-wise element of this map, respectively.
| JKey_t JTOOLS::JMap< JKey_t, JValue_t, JDistance_t >::key_type | 
| JValue_t JTOOLS::JMap< JKey_t, JValue_t, JDistance_t >::mapped_type | 
| JCollection<JElement2D<JKey_t, JValue_t>, JDistance_t> JTOOLS::JMap< JKey_t, JValue_t, JDistance_t >::container_type | 
| container_type::const_iterator JTOOLS::JMap< JKey_t, JValue_t, JDistance_t >::const_iterator | 
| container_type::const_reverse_iterator JTOOLS::JMap< JKey_t, JValue_t, JDistance_t >::const_reverse_iterator | 
| container_type::iterator JTOOLS::JMap< JKey_t, JValue_t, JDistance_t >::iterator | 
| container_type::reverse_iterator JTOOLS::JMap< JKey_t, JValue_t, JDistance_t >::reverse_iterator | 
      
  | 
  inherited | 
Definition at line 82 of file JCollection.hh.
      
  | 
  inherited | 
Definition at line 83 of file JCollection.hh.
      
  | 
  inherited | 
Definition at line 84 of file JCollection.hh.
      
  | 
  inherited | 
Definition at line 85 of file JCollection.hh.
      
  | 
  inherited | 
Definition at line 87 of file JCollection.hh.
      
  | 
  inherited | 
Definition at line 96 of file JCollection.hh.
      
  | 
  inherited | 
Definition at line 97 of file JCollection.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Add map.
| map | map | 
Definition at line 60 of file JMap.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Scale contents.
| value | multiplication factor | 
      
  | 
  inline | 
Scale contents.
| value | division factor | 
      
  | 
  inlineoverridevirtualinherited | 
Clear.
Implements JTOOLS::JMappableCollection< JElement_t::abscissa_type, JElement_t::ordinate_type >.
Definition at line 150 of file JCollection.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get ordinate value.
| x | abscissa value | 
Implements JTOOLS::JMappableCollection< JElement_t::abscissa_type, JElement_t::ordinate_type >.
Definition at line 162 of file JCollection.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get ordinate value.
| x | abscissa value | 
Implements JTOOLS::JMappableCollection< JElement_t::abscissa_type, JElement_t::ordinate_type >.
Definition at line 180 of file JCollection.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get number of elements.
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 197 of file JCollection.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get abscissa value.
| index | index | 
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 209 of file JCollection.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get minimal abscissa value.
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 220 of file JCollection.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get maximal abscissa value.
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 231 of file JCollection.hh.
      
  | 
  inlineinherited | 
Get ordinate value.
| index | index | 
Definition at line 244 of file JCollection.hh.
      
  | 
  inlineinherited | 
Get ordinate value.
| index | index | 
Definition at line 256 of file JCollection.hh.
      
  | 
  inlineinherited | 
Transform collection.
| transformer | element transformer | 
Definition at line 267 of file JCollection.hh.
      
  | 
  inlineinherited | 
Sort elements.
Definition at line 280 of file JCollection.hh.
      
  | 
  inlineinherited | 
Get first position of element i, where x >= i->getX(). 
| x | abscissa value | 
Definition at line 292 of file JCollection.hh.
      
  | 
  inlineinherited | 
Get first position of element i, where x >= i->getX(). 
| x | abscissa value | 
Definition at line 304 of file JCollection.hh.
      
  | 
  inlineinherited | 
Insert element.
| element | element | 
Definition at line 316 of file JCollection.hh.
      
  | 
  inlineinherited | 
Configure collection.
| bounds | abscissa values | 
Definition at line 332 of file JCollection.hh.
      
  | 
  inlineinherited | 
Configure collection.
| bounds | abscissa values | 
| value | ordinate value | 
Definition at line 344 of file JCollection.hh.
      
  | 
  inlineinherited | 
Configure collection.
| bounds | abscissa values | 
| function | function | 
Definition at line 365 of file JCollection.hh.
      
  | 
  inlineinherited | 
Test whether collections are compatible.
| collection | collection | 
Definition at line 394 of file JCollection.hh.
      
  | 
  inlineinherited | 
Negate collection.
Definition at line 436 of file JCollection.hh.
      
  | 
  inlineinherited | 
Add collection.
| collection | collection | 
Definition at line 452 of file JCollection.hh.
      
  | 
  inlineinherited | 
Add offset.
| value | offset | 
Definition at line 600 of file JCollection.hh.
      
  | 
  inlineinherited | 
Add function.
| function | function | 
Definition at line 633 of file JCollection.hh.
      
  | 
  inlineinherited | 
Subtract collection.
| collection | collection | 
Definition at line 508 of file JCollection.hh.
      
  | 
  inlineinherited | 
Subtract offset.
| value | offset | 
Definition at line 616 of file JCollection.hh.
      
  | 
  inlineinherited | 
Subtract function.
| function | function | 
Definition at line 650 of file JCollection.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineprotectedinherited | 
Resize collection.
| size | size | 
Definition at line 788 of file JCollection.hh.
      
  | 
  privateinherited | 
      
  | 
  privateinherited | 
      
  | 
  privateinherited | 
      
  | 
  inlineinherited | 
Get mapped value.
| key | key | 
Definition at line 73 of file JMappableCollection.hh.
      
  | 
  inlineinherited | 
Get mapped value.
| key | key | 
Definition at line 85 of file JMappableCollection.hh.
      
  | 
  inlineinherited | 
Put pair-wise element (key,value) into collection.
| key | key | 
| value | value | 
Definition at line 97 of file JMappableCollection.hh.
      
  | 
  inlineinherited | 
Test whether abstract collections are equal.
| collection | abstract collection | 
Definition at line 72 of file JAbstractCollection.hh.
      
  | 
  inlineinherited | 
      
  | 
  inherited | 
Function object for distance evaluation.
Definition at line 773 of file JCollection.hh.
      
  | 
  protectedinherited | 
Function object for comparison.
Definition at line 780 of file JCollection.hh.