| 
    Jpp - the software that should make you happy
    
   | 
 
Template selector class. More...
#include <JSelector.hh>
  
 Public Types | |
| typedef std::map< JKey_t,  JAutoElement< JBase_t > >  | map_type | 
| typedef map_type::const_iterator | const_iterator | 
| typedef map_type::iterator | iterator | 
| typedef JLANG::JClass< JKey_t > ::argument_type  | argument_type | 
| typedef map_type::value_type | value_type | 
Public Member Functions | |
| JSelector () | |
| Default constructor.  More... | |
| template<class JDerived_t > | |
| void | insert (argument_type key, JType< JDerived_t > type) | 
| Insert data type at given key.  More... | |
| template<class JDerived_t > | |
| void | insert (argument_type key) | 
| Insert data type at given key.  More... | |
| template<class JDerived_t > | |
| void | insert (argument_type key, JDerived_t *p) | 
| Insert data type at given key.  More... | |
| JKey_t | getKey () const | 
| Get key.  More... | |
| bool | is_valid (argument_type key) const | 
| Check validy of given key.  More... | |
| bool | is_valid () const | 
| Check validy of selected key.  More... | |
| JBase_t & | get (argument_type key) const | 
| Get the object corresponding to the given key.  More... | |
| JBase_t & | get () const | 
| Get the object corresponding to the selected key.  More... | |
Protected Attributes | |
| JLANG::JParameter< JKey_t > | key | 
Friends | |
| std::istream & | operator>> (std::istream &in, JSelector< JKey_t, JBase_t > &selector) | 
| Read selector from input stream.  More... | |
| std::ostream & | operator<< (std::ostream &out, const JSelector< JKey_t, JBase_t > &selector) | 
| Write selector to output stream.  More... | |
Template selector class.
This class can be used to set up a list of keys that are mapped to handlers which create new objects by stream input operations.
Definition at line 275 of file JTools/JSelector.hh.
| typedef std::map<JKey_t, JAutoElement<JBase_t> > JTOOLS::JSelector< JKey_t, JBase_t >::map_type | 
Definition at line 280 of file JTools/JSelector.hh.
| typedef map_type::const_iterator JTOOLS::JSelector< JKey_t, JBase_t >::const_iterator | 
Definition at line 281 of file JTools/JSelector.hh.
| typedef map_type::iterator JTOOLS::JSelector< JKey_t, JBase_t >::iterator | 
Definition at line 282 of file JTools/JSelector.hh.
| typedef JLANG::JClass<JKey_t>::argument_type JTOOLS::JSelector< JKey_t, JBase_t >::argument_type | 
Definition at line 283 of file JTools/JSelector.hh.
| typedef map_type::value_type JTOOLS::JSelector< JKey_t, JBase_t >::value_type | 
Definition at line 284 of file JTools/JSelector.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 290 of file JTools/JSelector.hh.
      
  | 
  inline | 
Insert data type at given key.
| key | key | 
| type | data type | 
Definition at line 302 of file JTools/JSelector.hh.
      
  | 
  inline | 
Insert data type at given key.
| key | key | 
Definition at line 314 of file JTools/JSelector.hh.
      
  | 
  inline | 
Insert data type at given key.
This object pointed to will become the default value.
| key | key | 
| p | pointer to object | 
Definition at line 328 of file JTools/JSelector.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Check validy of given key.
| key | key | 
Definition at line 353 of file JTools/JSelector.hh.
      
  | 
  inline | 
Check validy of selected key.
Definition at line 366 of file JTools/JSelector.hh.
      
  | 
  inline | 
Get the object corresponding to the given key.
| key | key | 
Definition at line 378 of file JTools/JSelector.hh.
      
  | 
  inline | 
Get the object corresponding to the selected key.
Definition at line 394 of file JTools/JSelector.hh.
      
  | 
  friend | 
Read selector from input stream.
| in | input stream | 
| selector | selector | 
Definition at line 410 of file JTools/JSelector.hh.
      
  | 
  friend | 
Write selector to output stream.
| out | output stream | 
| selector | selector | 
Definition at line 433 of file JTools/JSelector.hh.
      
  | 
  protected | 
Definition at line 449 of file JTools/JSelector.hh.
 1.8.5