| 
    Jpp
    15.0.5
    
   the software that should make you happy 
   | 
 
General purpose class for collection of elements, see: Collection of elements. . More...
#include <JCollection.hh>
  
 Classes | |
| struct | JComparator | 
| Auxiliary class for ordering of objects in the collection by their abscissa values.  More... | |
Public Types | |
| 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 std::vector< value_type > | 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  JCollectionElementTransformer < value_type >  | transformer_type | 
| typedef std::pair < const_iterator, bool >  | pair_type | 
| typedef JElement_t::abscissa_type | key_type | 
| typedef JElement_t::ordinate_type | mapped_type | 
Public Member Functions | |
| JCollection () | |
| Default constructor.  More... | |
| virtual void | clear () override | 
| Clear.  More... | |
| virtual const ordinate_type & | get (typename JClass< abscissa_type >::argument_type x) const override | 
| Get ordinate value.  More... | |
| virtual ordinate_type & | get (typename JClass< abscissa_type >::argument_type x) override | 
| Get ordinate value.  More... | |
| virtual int | getSize () const override | 
| Get number of elements.  More... | |
| virtual abscissa_type | getX (int index) const override | 
| Get abscissa value.  More... | |
| virtual abscissa_type | getXmin () const override | 
| Get minimal abscissa value.  More... | |
| virtual abscissa_type | getXmax () const override | 
| Get maximal abscissa value.  More... | |
| const ordinate_type & | getY (int index) const | 
| Get ordinate value.  More... | |
| ordinate_type & | getY (int index) | 
| Get ordinate value.  More... | |
| void | transform (const transformer_type &transformer) | 
| Transform collection.  More... | |
| void | sort () | 
| Sort elements.  More... | |
| const_iterator | lower_bound (typename JClass< abscissa_type >::argument_type x) const | 
Get first position of element i, where x >= i->getX().  More... | |
| iterator | lower_bound (typename JClass< abscissa_type >::argument_type x) | 
Get first position of element i, where x >= i->getX().  More... | |
| pair_type | insert (const value_type &element) | 
| Insert element.  More... | |
| void | configure (const JAbstractCollection< abscissa_type > &bounds) | 
| Configure collection.  More... | |
| void | configure (const JAbstractCollection< abscissa_type > &bounds, typename JClass< ordinate_type >::argument_type value) | 
| Configure collection.  More... | |
| template<class JFunction1D_t > | |
| void | configure (const JAbstractCollection< abscissa_type > &bounds, const JFunction1D_t &function) | 
| Configure collection.  More... | |
| bool | is_compatible (const JCollection &collection) const | 
| Test whether collections are compatible.  More... | |
| JCollection & | negate () | 
| Negate collection.  More... | |
| JCollection & | add (const JCollection &collection) | 
| Add collection.  More... | |
| JCollection & | sub (const JCollection &collection) | 
| Subtract collection.  More... | |
| JCollection & | mul (const double value) | 
| Scale contents.  More... | |
| JCollection & | div (const double value) | 
| Scale contents.  More... | |
| JCollection & | add (typename JClass< ordinate_type >::argument_type value) | 
| Add offset.  More... | |
| JCollection & | sub (typename JClass< ordinate_type >::argument_type value) | 
| Subtract offset.  More... | |
| template<class JFunction1D_t > | |
| JCollection & | add (const JFunction1D_t &function) | 
| Add function.  More... | |
| template<class JFunction1D_t > | |
| JCollection & | sub (const JFunction1D_t &function) | 
| Subtract function.  More... | |
| const JComparator & | getComparator () const | 
| Get comparator.  More... | |
| const mapped_type & | operator[] (typename JClass< key_type >::argument_type key) const | 
| Get mapped value.  More... | |
| mapped_type & | operator[] (typename JClass< key_type >::argument_type key) | 
| Get mapped value.  More... | |
| void | put (typename JClass< key_type >::argument_type key, typename JClass< mapped_type >::argument_type value) | 
| Put pair-wise element (key,value) into collection.  More... | |
| bool | is_equal (const JAbstractCollection &collection) const | 
| Test whether abstract collections are equal.  More... | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.  More... | |
Public Attributes | |
| JDistance_t | getDistance | 
| Function object for distance evaluation.  More... | |
Protected Member Functions | |
| void | resize (typename container_type::size_type size) | 
| Resize collection.  More... | |
Protected Attributes | |
| JComparator | compare | 
| Function object for comparison.  More... | |
Private Member Functions | |
| void | erase () | 
| void | push_back () | 
| void | pop_back () | 
Friends | |
| JCollection & | operator+= (JCollection &collection, typename JClass< ordinate_type >::argument_type value) | 
| Add offset to collaction.  More... | |
| JCollection & | operator-= (JCollection &collection, typename JClass< ordinate_type >::argument_type value) | 
| Subtract offset from collaction.  More... | |
| template<class JFunction1D_t > | |
| JCollection & | operator+= (JCollection &collection, const JFunction1D_t &function) | 
| Add function.  More... | |
| template<class JFunction1D_t > | |
| JCollection & | operator-= (JCollection &collection, const JFunction1D_t &function) | 
| Subtract function.  More... | |
| JReader & | operator>> (JReader &in, JCollection &collection) | 
| Read collection from input.  More... | |
| JWriter & | operator<< (JWriter &out, const JCollection &collection) | 
| Write collection to output.  More... | |
General purpose class for collection of elements, see: Collection of elements. .
This class implements the JMappableCollection and JAbstractCollection interfaces.
The data type of the elements of the collection should have the following policy type definition and member methods.
     typedef <abscissa type>   abscissa_type;
     typedef <ordinate type>   ordinate_type;(constructor)(abscissa_type, ordinate_type);
     abscissa_type  getX() const;
     ordinate_type  getY() const;
     ordinate_type& getY();
  The elements in a collection are sorted according to their abscissa values and the given distance operator. The distance operator constitues a binary method returning the distance between two abscissa values; The default distance operator is JDistance.
For the binary I/O of a collection of elements, the data structure of the elements should provide for an implementation of the following operators:
        JReader& operator>>(JReader& in);
        JWriter& operator<<(JWriter& out);
   
Definition at line 73 of file JCollection.hh.
| typedef JElement_t::abscissa_type JTOOLS::JCollection< JElement_t, JDistance_t >::abscissa_type | 
Definition at line 82 of file JCollection.hh.
| typedef JElement_t::ordinate_type JTOOLS::JCollection< JElement_t, JDistance_t >::ordinate_type | 
Definition at line 83 of file JCollection.hh.
| typedef JElement_t JTOOLS::JCollection< JElement_t, JDistance_t >::value_type | 
Definition at line 84 of file JCollection.hh.
| typedef JDistance_t JTOOLS::JCollection< JElement_t, JDistance_t >::distance_type | 
Definition at line 85 of file JCollection.hh.
| typedef JCollection<JElement_t, JDistance_t> JTOOLS::JCollection< JElement_t, JDistance_t >::collection_type | 
Definition at line 87 of file JCollection.hh.
| typedef std::vector<value_type> JTOOLS::JCollection< JElement_t, JDistance_t >::container_type | 
Definition at line 89 of file JCollection.hh.
| typedef container_type::const_iterator JTOOLS::JCollection< JElement_t, JDistance_t >::const_iterator | 
Definition at line 91 of file JCollection.hh.
| typedef container_type::const_reverse_iterator JTOOLS::JCollection< JElement_t, JDistance_t >::const_reverse_iterator | 
Definition at line 92 of file JCollection.hh.
| typedef container_type::iterator JTOOLS::JCollection< JElement_t, JDistance_t >::iterator | 
Definition at line 93 of file JCollection.hh.
| typedef container_type::reverse_iterator JTOOLS::JCollection< JElement_t, JDistance_t >::reverse_iterator | 
Definition at line 94 of file JCollection.hh.
| typedef JCollectionElementTransformer<value_type> JTOOLS::JCollection< JElement_t, JDistance_t >::transformer_type | 
Definition at line 96 of file JCollection.hh.
| typedef std::pair<const_iterator, bool> JTOOLS::JCollection< JElement_t, JDistance_t >::pair_type | 
Definition at line 97 of file JCollection.hh.
      
  | 
  inherited | 
Definition at line 33 of file JMappableCollection.hh.
      
  | 
  inherited | 
Definition at line 34 of file JMappableCollection.hh.
      
  | 
  inline | 
      
  | 
  inlineoverridevirtual | 
Clear.
Implements JTOOLS::JMappableCollection< JElement_t::abscissa_type, JElement_t::ordinate_type >.
Definition at line 150 of file JCollection.hh.
      
  | 
  inlineoverridevirtual | 
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.
      
  | 
  inlineoverridevirtual | 
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.
      
  | 
  inlineoverridevirtual | 
Get number of elements.
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 197 of file JCollection.hh.
      
  | 
  inlineoverridevirtual | 
Get abscissa value.
| index | index | 
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 209 of file JCollection.hh.
      
  | 
  inlineoverridevirtual | 
Get minimal abscissa value.
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 220 of file JCollection.hh.
      
  | 
  inlineoverridevirtual | 
Get maximal abscissa value.
Implements JTOOLS::JAbstractCollection< JElement_t::abscissa_type >.
Definition at line 231 of file JCollection.hh.
      
  | 
  inline | 
Get ordinate value.
| index | index | 
Definition at line 244 of file JCollection.hh.
      
  | 
  inline | 
Get ordinate value.
| index | index | 
Definition at line 256 of file JCollection.hh.
      
  | 
  inline | 
Transform collection.
| transformer | element transformer | 
Definition at line 267 of file JCollection.hh.
      
  | 
  inline | 
Sort elements.
Definition at line 282 of file JCollection.hh.
      
  | 
  inline | 
Get first position of element i, where x >= i->getX(). 
| x | abscissa value | 
Definition at line 294 of file JCollection.hh.
      
  | 
  inline | 
Get first position of element i, where x >= i->getX(). 
| x | abscissa value | 
Definition at line 306 of file JCollection.hh.
      
  | 
  inline | 
Insert element.
| element | element | 
Definition at line 318 of file JCollection.hh.
      
  | 
  inline | 
Configure collection.
| bounds | abscissa values | 
Definition at line 334 of file JCollection.hh.
      
  | 
  inline | 
Configure collection.
| bounds | abscissa values | 
| value | ordinate value | 
Definition at line 346 of file JCollection.hh.
      
  | 
  inline | 
Configure collection.
| bounds | abscissa values | 
| function | function | 
Definition at line 367 of file JCollection.hh.
      
  | 
  inline | 
Test whether collections are compatible.
| collection | collection | 
Definition at line 396 of file JCollection.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Add collection.
| collection | collection | 
Definition at line 454 of file JCollection.hh.
      
  | 
  inline | 
Subtract collection.
| collection | collection | 
Definition at line 510 of file JCollection.hh.
      
  | 
  inline | 
Scale contents.
| value | multiplication factor | 
Definition at line 570 of file JCollection.hh.
      
  | 
  inline | 
Scale contents.
| value | division factor | 
Definition at line 586 of file JCollection.hh.
      
  | 
  inline | 
Add offset.
| value | offset | 
Definition at line 602 of file JCollection.hh.
      
  | 
  inline | 
Subtract offset.
| value | offset | 
Definition at line 618 of file JCollection.hh.
      
  | 
  inline | 
Add function.
| function | function | 
Definition at line 635 of file JCollection.hh.
      
  | 
  inline | 
Subtract function.
| function | function | 
Definition at line 652 of file JCollection.hh.
      
  | 
  inline | 
Get comparator.
Definition at line 765 of file JCollection.hh.
      
  | 
  inlineprotected | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  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 69 of file JAbstractCollection.hh.
      
  | 
  inlineinherited | 
Multiply with object.
| object | object | 
Definition at line 357 of file JMath.hh.
      
  | 
  friend | 
Add offset to collaction.
| collection | collection | 
| value | offset | 
Definition at line 669 of file JCollection.hh.
      
  | 
  friend | 
Subtract offset from collaction.
| collection | collection | 
| value | offset | 
Definition at line 682 of file JCollection.hh.
      
  | 
  friend | 
Add function.
| collection | collection | 
| function | function | 
Definition at line 696 of file JCollection.hh.
      
  | 
  friend | 
Subtract function.
| collection | collection | 
| function | function | 
Definition at line 710 of file JCollection.hh.
      
  | 
  friend | 
Read collection from input.
| in | reader | 
| collection | collection | 
Definition at line 723 of file JCollection.hh.
      
  | 
  friend | 
Write collection to output.
| out | writer | 
| collection | collection | 
Definition at line 746 of file JCollection.hh.
| JDistance_t JTOOLS::JCollection< JElement_t, JDistance_t >::getDistance | 
Function object for distance evaluation.
Definition at line 774 of file JCollection.hh.
      
  | 
  protected | 
Function object for comparison.
Definition at line 781 of file JCollection.hh.
 1.8.5