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));
44 return new T(static_cast<const T&>(*
this));
75 static char buffer[
sizeof(T)];
77 new (buffer) T(
object);
79 return (T&) (*buffer);
data_type * clone() const
Get clone from temporary object.
JObject()
Default constructor.
T & getInstance(const T &object)
Get static instance from temporary object.
JObject(const JObject &)
Copy constructor.
data_type & getInstance()
Get static instance from temporary object.
Auxiliary base class for inline creation of a static value or clone from a temporary object...
Implementation of object output for STD compatible output iterator.
JObject & operator=(const JObject &)