|
Jpp test-rotations-new
the software that should make you happy
|
Handler class for automatic pointer. 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 | |
| JAutoElement () | |
| Default constructor. | |
| template<class JDerived_t > | |
| JAutoElement (JType< JDerived_t > type) | |
| Constructor. | |
| template<class JDerived_t > | |
| JAutoElement (JDerived_t *p) | |
| Constructor. | |
| template<class JDerived_t > | |
| void | set () |
| Set the automatic pointer to the given data type. | |
| template<class JDerived_t > | |
| void | set (JType< JDerived_t > type) |
| Set the automatic pointer to the given data type. | |
| template<class JDerived_t > | |
| void | set (JDerived_t *p) |
| Set the automatic pointer to the given data type. | |
| template<class JDerived_t > | |
| JAutoElement & | operator= (JType< JDerived_t > type) |
| Assign given data type to the automatic pointer. | |
| template<class JDerived_t > | |
| JAutoElement & | operator= (JDerived_t *p) |
| Assign given data type to the automatic pointer. | |
| 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 | |
Private Types | |
| typedef JAbstractAutoPointer< JBase_t > | JAbstractAutoPointer_t |
| typedef JSharedPointer< JAbstractAutoPointer_t > | JSharedPointer_t |
| typedef JAutoElement< JBase_t > | JAutoElement_t |
Friends | |
| std::istream & | operator>> (std::istream &in, JAutoElement_t &element) |
| Stream input. | |
| std::ostream & | operator<< (std::ostream &out, const JAutoElement_t &element) |
| Stream output. | |
Handler class for automatic pointer.
Definition at line 128 of file JTools/JSelector.hh.
|
private |
Definition at line 132 of file JTools/JSelector.hh.
|
private |
Definition at line 133 of file JTools/JSelector.hh.
|
private |
Definition at line 134 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 140 of file JTools/JSelector.hh.
|
inline |
Constructor.
| type | data type |
Definition at line 151 of file JTools/JSelector.hh.
|
inline |
Constructor.
This class owns the pointer.
| p | pointer to object |
Definition at line 165 of file JTools/JSelector.hh.
|
inline |
Set the automatic pointer to the given data type.
Definition at line 176 of file JTools/JSelector.hh.
|
inline |
Set the automatic pointer to the given data type.
| type | data type |
Definition at line 188 of file JTools/JSelector.hh.
|
inline |
Set the automatic pointer to the given data type.
| p | pointer to object |
Definition at line 200 of file JTools/JSelector.hh.
|
inline |
Assign given data type to the automatic pointer.
| type | data type |
Definition at line 213 of file JTools/JSelector.hh.
|
inline |
Assign given data type to the automatic pointer.
| p | pointer to object |
Definition at line 228 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.
|
friend |
Stream input.
| in | input stream |
| element | element |
Definition at line 243 of file JTools/JSelector.hh.
|
friend |
Stream output.
| out | output stream |
| element | element |
Definition at line 259 of file JTools/JSelector.hh.
|
protectedinherited |
Definition at line 94 of file JSharedCounter.hh.
|
protectedinherited |
pointer to object
Definition at line 136 of file JPointer.hh.