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));
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);
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.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
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 &)