1#ifndef __JLANG__JSINGLEPOINTER__
2#define __JLANG__JSINGLEPOINTER__
12namespace JPP {
using namespace JLANG; }
23 template<
class JClass_t,
template<
class>
class JMemory_t =
JNew>
80 if (this->
get() !=
object.
get()) {
103 template<
class JDerived_t>
bool is_valid() const
Check validity of pointer.
Memory management class for create/release policy based on new/delete.
virtual void set(JClass_t *p) override
Set pointer.
virtual JClass_t * get() const override
Get pointer.
The template JSinglePointer class can be used to hold a pointer to an object.
JSinglePointer & operator=(JDerived_t *p)
Assignment operator.
JSinglePointer()
Default constructor.
JSinglePointer(JClass_t *p)
Constructor.
~JSinglePointer()
Destructor.
JSinglePointer(const JSinglePointer &object)
Copy constructor.
JSinglePointer & operator=(const JSinglePointer &object)
Assignment operator.
virtual void reset() override
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).