1 #ifndef __JLANG__JOBJECT__
2 #define __JLANG__JOBJECT__
9 namespace JPP {
using namespace JLANG; }
29 static char buffer[
sizeof(T)];
31 new (buffer) T(
static_cast<const T&
>(*
this));
33 T* p =
reinterpret_cast<data_type*
>(buffer);
46 return new T(
static_cast<const T&
>(*
this));
77 static char buffer[
sizeof(T)];
79 new (buffer) T(
object);
81 T* p =
reinterpret_cast<T*
>(buffer);
Auxiliary classes and methods for language specific functionality.
T & getInstance(const T &object)
Get static instance from temporary object.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary base class for inline creation of a static value or clone from a temporary object.
JObject & operator=(const JObject &)
data_type * clone() const
Get clone from temporary object.
JObject(const JObject &)
Copy constructor.
data_type & getInstance()
Get static instance from temporary object.
JObject()
Default constructor.