Go to the documentation of this file. 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);
T & getInstance(const T &object)
Get static instance from temporary object.
Auxiliary base class for inline creation of a static value or clone from a temporary object.
data_type * clone() const
Get clone from temporary object.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Implementation of object output for STD compatible output iterator.
data_type & getInstance()
Get static instance from temporary object.
JObject & operator=(const JObject &)
JObject(const JObject &)
Copy constructor.
Auxiliary classes and methods for language specific functionality.
JObject()
Default constructor.