| 
    Jpp test-rotations-old
    
   the software that should make you happy 
   | 
 
Template class for loading and storing of objects. More...
#include <JSelector.hh>
  
Public Types | |
| typedef JPointer< JClass_t > | pointer_type | 
| typedef JStorage< JClass_t, JMemory_t > | storage_type | 
| typedef JNew< JClass_t > | memory_type | 
Public Member Functions | |
| JAutoPointer () | |
| Default constructor.   | |
| JAutoPointer (JDerived_t *p) | |
| Constructor.   | |
| virtual std::istream & | read (std::istream &in) override | 
| Stream input.   | |
| virtual std::ostream & | write (std::ostream &out) const override | 
| Stream output.   | |
| const JSharedPointer & | getSharedPointer () const | 
| Get shared pointer.   | |
| JSharedPointer & | getSharedPointer () | 
| Get shared pointer.   | |
| void | setSharedPointer (const JSharedPointer &object) | 
| Set shared pointer.   | |
| virtual void | reset () override | 
| Reset pointer.   | |
| void | reset (const JPointer< T > &pointer) | 
| Reset pointer.   | |
| void | reset (JClass_t *p) | 
| Reset pointer.   | |
| template<class T > | |
| void | set (const JPointer< T > &pointer) | 
| Set pointer.   | |
| void | initialise () | 
| Initialise counter.   | |
| void | attach (const JSharedCounter &object) | 
| Attach this counter to given shared counter object.   | |
| bool | detach () | 
| Detach.   | |
| const int | getCount () | 
| Get count.   | |
| void | recreate () | 
| Recreate object in memory.   | |
| void | create () | 
| Create object in memory.   | |
| void | create (const unsigned int size) | 
| Create array of objects in memory.   | |
| virtual JClass_t * | get () const override | 
| Get pointer.   | |
| JClass_t *const & | getReference () const | 
| Get rereference to internal pointer.   | |
| JClass_t *& | getReference () | 
| Get rereference to internal pointer.   | |
| virtual bool | equals (const JAbstractPointer &object) const | 
| Equals.   | |
| bool | is_valid () const | 
| Check validity of pointer.   | |
| JClass_t * | operator-> () const | 
| Smart pointer operator.   | |
| operator JClass_t * () const | |
| Type conversion operator.   | |
Static Public Member Functions | |
| static void | release (JClass_t *p) | 
| Release memory.   | |
Protected Member Functions | |
| void | set (const JSharedPointer &object) | 
| Set pointer.   | |
| virtual void | set (JClass_t *p) override | 
| Set pointer.   | |
| void | release () | 
| Release memory.   | |
Protected Attributes | |
| int * | counter | 
| JClass_t * | __p | 
| pointer to object   | |
Static Private Member Functions | |
| static JDerived_t * | load (JLANG::JBool< false > option) | 
| Load object without input.   | |
| static JDerived_t * | load (std::istream &in, JLANG::JBool< false > option) | 
| Load object without input.   | |
| static JDerived_t * | load (std::istream &in, JLANG::JBool< true > option) | 
| Load object with input.   | |
| static JDerived_t * | load () | 
| Load object.   | |
| static JDerived_t * | load (std::istream &in) | 
| Load object.   | |
| static void | store (std::ostream &out, const JDerived_t *p, JBool< false > option) | 
| Store object without output.   | |
| static void | store (std::ostream &out, const JDerived_t *p, JBool< true > option) | 
| Store object with output.   | |
| static void | store (std::ostream &out, const T *p) | 
| Store object.   | |
Template class for loading and storing of objects.
This class implements the JAbstractAutoPointer interface.
Definition at line 61 of file JTools/JSelector.hh.
      
  | 
  inherited | 
Definition at line 34 of file JSharedPointer.hh.
      
  | 
  inherited | 
Definition at line 35 of file JSharedPointer.hh.
      
  | 
  inherited | 
Definition at line 33 of file JStorage.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 69 of file JTools/JSelector.hh.
      
  | 
  inline | 
Constructor.
This class owns the pointer.
| p | pointer to object | 
Definition at line 80 of file JTools/JSelector.hh.
      
  | 
  inlineoverridevirtual | 
Stream input.
This method creates a new object and read the corresponding input data if the redirect operator >>(isteam&) is defined for this data type.
| in | input stream | 
Implements JLANG::JStreamInput.
Definition at line 95 of file JTools/JSelector.hh.
      
  | 
  inlineoverridevirtual | 
Stream output.
This method writes the corresponding data if the redirect operator <<(osteam&) is defined for this data type.
| out | output stream | 
Implements JLANG::JStreamOutput.
Definition at line 115 of file JTools/JSelector.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Set shared pointer.
| object | shared pointer | 
Definition at line 117 of file JSharedPointer.hh.
      
  | 
  inlineoverridevirtualinherited | 
Reset pointer.
The reference counter is decremented by one and the object pointed to previously is deleted when its reference counter is zero.
Reimplemented from JLANG::JStorage< JClass_t, JNew >.
Definition at line 171 of file JSharedPointer.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Reset pointer.
| p | pointer to object | 
Definition at line 94 of file JAbstractPointer.hh.
      
  | 
  inlineprotectedinherited | 
Set pointer.
The reference counter of the shared object pointed to is incremented by one.
| object | shared pointer | 
Definition at line 188 of file JSharedPointer.hh.
      
  | 
  inlineoverrideprotectedvirtualinherited | 
Set pointer.
The reference counter of the shared object pointed to is initialised to one.
| p | pointer to derived class object | 
Reimplemented from JLANG::JPointer< JClass_t >.
Definition at line 202 of file JSharedPointer.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Initialise counter.
Definition at line 33 of file JSharedCounter.hh.
      
  | 
  inlineinherited | 
Attach this counter to given shared counter object.
| object | shared counter | 
Definition at line 46 of file JSharedCounter.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Recreate object in memory.
A new object is created if no memory is allocated yet, else the previously created object is maintained.
Definition at line 57 of file JStorage.hh.
      
  | 
  inlineinherited | 
Create object in memory.
The memory allocated by a previously created object will be released.
Definition at line 69 of file JStorage.hh.
      
  | 
  inlineinherited | 
Create array of objects in memory.
The memory allocated by previously created objects will be released.
| size | number of elements | 
Definition at line 81 of file JStorage.hh.
      
  | 
  inlineprotectedinherited | 
      
  | 
  inlinestaticinherited | 
Release memory.
| p | pointer to data | 
Definition at line 41 of file JMemory.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get pointer.
Implements JLANG::JAbstractPointer< JClass_t >.
Reimplemented in JLANG::JMultiPointer< JClass_t >, JLANG::JMultiPointer< JHead_t >, JLANG::JMultiPointer< JTail_t >, JLANG::JMultiPointer< JTypeList< JDAQEvent, JNullType > >, JLANG::JMultiPointer< JTypeList< JHead_t, JTail_t > >, and JLANG::JMultiPointer< T >.
Definition at line 64 of file JPointer.hh.
      
  | 
  inlineinherited | 
Get rereference to internal pointer.
Definition at line 119 of file JPointer.hh.
      
  | 
  inlineinherited | 
Get rereference to internal pointer.
Definition at line 130 of file JPointer.hh.
      
  | 
  inlinevirtualinherited | 
Equals.
The equality is evaluated by comparison of the internal pointers.
| object | abstract pointer | 
Definition at line 50 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Check validity of pointer.
Definition at line 83 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Smart pointer operator.
Definition at line 112 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Type conversion operator.
Definition at line 126 of file JAbstractPointer.hh.
      
  | 
  inlinestaticprivateinherited | 
Load object without input.
| option | I/O option | 
Definition at line 35 of file JDriver.hh.
      
  | 
  inlinestaticprivateinherited | 
Load object without input.
| in | input stream | 
| option | I/O option | 
Definition at line 48 of file JDriver.hh.
      
  | 
  inlinestaticprivateinherited | 
Load object with input.
| in | input stream | 
| option | I/O option | 
Definition at line 61 of file JDriver.hh.
      
  | 
  inlinestaticinherited | 
Load object.
Definition at line 111 of file JDriver.hh.
      
  | 
  inlinestaticinherited | 
Load object.
| in | input stream | 
Definition at line 123 of file JDriver.hh.
      
  | 
  inlinestaticprivateinherited | 
Store object without output.
This implementation doesn't do anything.
| out | output stream | 
| option | I/O option | 
| p | pointer to object | 
Definition at line 86 of file JDriver.hh.
      
  | 
  inlinestaticprivateinherited | 
Store object with output.
| out | output stream | 
| option | I/O option | 
| p | pointer object | 
Definition at line 97 of file JDriver.hh.
      
  | 
  inlinestaticinherited | 
Store object.
| out | output stream | 
| p | pointer to object | 
Definition at line 136 of file JDriver.hh.
      
  | 
  protectedinherited | 
Definition at line 94 of file JSharedCounter.hh.
      
  | 
  protectedinherited | 
pointer to object
Definition at line 136 of file JPointer.hh.