Extended/pseudo keywords known by ACDK.
Please refer also to Language.
Defines | |
#define | instanceof(obj, T) (dynamic_cast<const T*>(obj.impl()) || dynamic_cast<const T*>(obj.iptr())) |
Check if obj is an instance of type T. | |
#define | instanceOf(obj, T) instanceof(obj, T) |
alias to instanceof | |
#define | implements virtual public |
use implements to derived from interfaces or extending an interface | |
#define | extends public |
use extends to derived normal classes You MUST NOT use implements (virtual) in this case otherwise Memory-Management will not work | |
#define | transient |
used to tag a field as not serializable | |
#define | foreign |
use to tag classes, methods or arguments as not compatible with ACDK. | |
#define | final |
use to tag classes or methods not to generate dmi proxy for this class/method | |
#define | overwrite virtual |
methods, tagged as overwrite will generate DmiProxy methods, but no metainfo, because the metainfo from a base class can be used. | |
#define | IN(type) const type & |
Tag an argument for sending the acdk::lang::Object by Reference from Client to Server. | |
#define | INP(type) const type & |
Same as macro IN(type). | |
#define | OUT(type) type& |
Tag an argument as output parameter . | |
#define | OUTP(type) type& |
Same as macro OUT(type). | |
#define | INOUT(type) type& |
Tag an argument for send/receive it. | |
#define | INOUTP(type) type& |
Same as INOUT(type). | |
#define | RETOUT(val) OUT(val) |
Used for performance improvemnts for return values. | |
#define | OUTRET(val) OUT(val) |
Alias to RETOUT(val). | |
#define | BYVAL(T) IN(T) |
Transfer parameter by value from caller to callee. | |
#define | BYVALIN(T) IN(T) |
Transfer parameter by value from caller to callee. | |
#define | BYVALOUT(T) OUT(T) |
Transfer parameter by value from calee to caller. | |
#define | BYVALINOUT(T) INOUT(T) |
Transfer parameter by value from caller to callee and back. | |
#define | BYREF(T) IN(T) |
Transfer parameter by reference from caller to callee. | |
#define | BYREFIN(T) IN(T) |
Transfer parameter by reference from caller to callee. | |
#define | BYREFOUT(T) OUT(T) |
Transfer parameter by reference from callee to caller. | |
#define | BYREFINOUT(T) INOUT(T) |
Transfer parameter by reference from caller to callee and back. | |
#define | THROW0(ClassName) |
to avoid too lengthy in the form: | |
#define | THROW0_FQ(ns, ClassName) |
Version of THROW0 with namespace. | |
#define | THROW1(ClassName, arg1) |
#define | THROW1_FQ(ns, ClassName, arg1) |
#define | THROW2(ClassName, arg1, arg2) |
#define | THROW2_FQ(ns, ClassName, arg1, arg2) |
#define | THROW3(ClassName, arg1, arg2, arg3) |
#define | THROW3_FQ(ns, ClassName, arg1, arg2, arg3) |
#define | THROWX(ClassName, args) |
args is a argument list with round brackets. | |
#define | THROWX_FQ(ns, ClassName, args) |
THROWX with namespace. | |
#define | THROW_INSTANCE(ex) |
if you have also an RThrowable reference use this macro to throw try { RThrowable ex = ...; throw ex; // this will catched by RThrowable // independed by real exception type THROW_INSTANCE(ex); // this uses Metainfo to throw the correct type // and may also be catch by RMyException } catch (RMyException ex) { } catch (RThrowable ex) { } | |
Typedefs | |
typedef unsigned short | ucchar |
define of a 16bit unicode char | |
typedef unsigned short | uc2char |
alias to ucchar define of a 16bit unicode char | |
typedef unsigned long | uc4char |
defines a 32bit unicode character | |
typedef long long | jlong |
defines a 64 bit long | |
typedef unsigned char | byte |
defines a byte type | |
Enumerations | |
enum | NilRef { Nil = 0 } |
Represents a 'null' Reference (equivalent to a null pointer). More... | |
Functions | |
template<class T> ::acdk::lang::dmi::ScriptVar | inOf (T *t) |
cast a type to the 'any' Type ScriptVar as input variable on a given value type the corresponding reference type. | |
template<class T> inline::acdk::lang::dmi::ScriptVar | inOfAs (T *t, IN(::acdk::lang::RClass) cls) |
cast a type to the 'any' Type ScriptVar as input variable Additionally the held type should be from type cls | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | inOf (const RefHolder< T > &t) |
cast a type to the 'any' Type ScriptVar as input variable | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | inOfAs (const RefHolder< T > &t, IN(::acdk::lang::RClass) cls) |
cast a type to the 'any' Type ScriptVar as input variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | inOf (const InterfaceHolder< T > &t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | inOfAs (const InterfaceHolder< T > &t, IN(::acdk::lang::RClass) cls) |
cast a type to the 'any' Type ScriptVar as input variable. | |
template<typename T, typename S> inline::acdk::lang::dmi::ScriptVar | inOfAs (const ThrowableHolder< T, S > &t, IN(::acdk::lang::RClass) cls) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (bool t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (char t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (ucchar t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (byte t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (short t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (int t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (jlong t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (float t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (double t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
inline::acdk::lang::dmi::ScriptVar | inOf (::acdk::lang::dmi::ScriptVar &t) |
cast a type to the 'any' Type ScriptVar as input variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | outOf (const RefHolder< T > &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | outOfAs (const RefHolder< T > &t, IN(::acdk::lang::RClass) cls) |
cast a type to the 'any' Type ScriptVar as output variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | outOf (const InterfaceHolder< T > &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | outOfAs (const InterfaceHolder< T > &t, IN(::acdk::lang::RClass) cls) |
cast a type to the 'any' Type ScriptVar as output variable. | |
template<typename T, typename S> inline::acdk::lang::dmi::ScriptVar | outOf (const ThrowableHolder< T, S > &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (bool &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (char &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (ucchar &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (byte &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (short &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (int &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (jlong &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (float &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (double &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
inline::acdk::lang::dmi::ScriptVar | outOf (::acdk::lang::dmi::ScriptVar &t) |
cast a type to the 'any' Type ScriptVar as output variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | inoutOf (const RefHolder< T > &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
template<typename T> inline::acdk::lang::dmi::ScriptVar | inoutOf (const InterfaceHolder< T > &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
template<typename T, typename S> inline::acdk::lang::dmi::ScriptVar | inoutOf (const ThrowableHolder< T, S > &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (bool &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (char &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (ucchar &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (byte &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (short &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (int &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (jlong &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (float &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (double &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
inline::acdk::lang::dmi::ScriptVar | inoutOf (::acdk::lang::dmi::ScriptVar &t) |
on a given type to the 'any' Type ScriptVar as input/output variable. | |
template<class T> inline::acdk::lang::dmi::ScriptVar | byVal (T &t) |
convert the given type to the 'any' type ScriptVar with the ByValue flag set | |
template<class T> inline::acdk::lang::dmi::ScriptVar | byRef (T &t) |
convert the given type to the 'any' type ScriptVar with the ByRef flag set |
|
Transfer parameter by reference from caller to callee. these defined are only used as hints to acdkmc in case of remoting |
|
Transfer parameter by reference from caller to callee. these defined are only used as hints to acdkmc in case of remoting |
|
Transfer parameter by reference from caller to callee and back. these defined are only used as hints to acdkmc in case of remoting |
|
Transfer parameter by reference from callee to caller. these defined are only used as hints to acdkmc in case of remoting |
|
Transfer parameter by value from caller to callee. These defined are only used as hints to acdkmc in case of remoting |
|
Transfer parameter by value from caller to callee. these defined are only used as hints to acdkmc in case of remoting |
|
Transfer parameter by value from caller to callee and back. these defined are only used as hints to acdkmc in case of remoting |
|
Transfer parameter by value from calee to caller. these defined are only used as hints to acdkmc in case of remoting |
|
use extends to derived normal classes You MUST NOT use implements (virtual) in this case otherwise Memory-Management will not work
|
|
use to tag classes or methods not to generate dmi proxy for this class/method
|
|
use to tag classes, methods or arguments as not compatible with ACDK. For theses classes/methods no metainformation will be created |
|
use implements to derived from interfaces or extending an interface
|
|
Tag an argument for sending the acdk::lang::Object by Reference from Client to Server. Type can be a type of acdk::lang::Object or supported basic type. |
|
Tag an argument for send/receive it. Type can be a type of acdk::lang::Object or supported basic type. |
|
Same as INOUT(type).
|
|
Same as macro IN(type).
|
|
alias to instanceof
|
|
Check if obj is an instance of type T.
|
|
Tag an argument as output parameter . Type can be a type of acdk::lang::Object or supported basic type. |
|
Same as macro OUT(type).
|
|
Alias to RETOUT(val).
|
|
methods, tagged as overwrite will generate DmiProxy methods, but no metainfo, because the metainfo from a base class can be used.
|
|
Used for performance improvemnts for return values. return a reference of val, not a copy (Must be non const, otherwise operator-> doesn't work) |
|
Value: do { \ ::acdk::lang::RString __tstr = new ::acdk::lang::String(::acdk::lang::RString(#ClassName) \ + . thrown in __FILE__ : \ + ::acdk::lang::String::valueOf(__LINE__)); \ R##ClassName ex__(new ClassName(__tstr)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false) throw RUsallyNotVeryShortExceptionName(new UsallyNotVeryShortExceptionName(new String(blabla))); use the form: THROW1(UsallyNotVeryShortExceptionName, new String(blalba)); |
|
Value: do { \ ::acdk::lang::RString __tstr = new ::acdk::lang::String(::acdk::lang::RString(#ns#ClassName) \ + . thrown in __FILE__ : \ + ::acdk::lang::String::valueOf(__LINE__)); \ ns R##ClassName ex__(new ns ClassName(__tstr)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
Value: do { \ R##ClassName ex__(new ClassName(arg1)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
Value: do { \ ns R##ClassName ex__(new ns ClassName(arg1)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
Value: do { \ R##ClassName ex__(new ClassName(arg1, arg2)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
Value: do { \ ns R##ClassName ex__(new ns ClassName(arg1, arg2)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
Value: do { \ R##ClassName ex__(new ClassName(arg1, arg2, arg3)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
Value: do { \ ns R##ClassName ex__(new ns ClassName(arg1, arg2, arg3)); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
Value: do { \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex), __LINE__, __FILE__) == true) \ throwThrowableInstance(ex); \ } while (false) try { RThrowable ex = ...; throw ex; // this will catched by RThrowable // independed by real exception type THROW_INSTANCE(ex); // this uses Metainfo to throw the correct type // and may also be catch by RMyException } catch (RMyException ex) { } catch (RThrowable ex) { }
|
|
Value: do { \ R##ClassName ex__(new ClassName##args); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false) use this following way THROWX(MyThrowable, (1, 2, asdf, 4)); |
|
Value: do { \ ns R##ClassName ex__(new ns ClassName##args); \ if (::acdk::lang::Throwable::onThrow(::acdk::lang::RThrowable(ex__), __LINE__, __FILE__) == true) \ throw ex__; \ } while (false)
|
|
used to tag a field as not serializable
|
|
defines a byte type
|
|
defines a 64 bit long
|
|
alias to ucchar define of a 16bit unicode char
|
|
defines a 32bit unicode character
|
|
define of a 16bit unicode char
|
|
Represents a 'null' Reference (equivalent to a null pointer).
|
|
convert the given type to the 'any' type ScriptVar with the ByRef flag set
|
|
convert the given type to the 'any' type ScriptVar with the ByValue flag set
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable.
|
|
cast a type to the 'any' Type ScriptVar as input variable. Additionally the held type should be from type cls |
|
cast a type to the 'any' Type ScriptVar as input variable
|
|
cast a type to the 'any' Type ScriptVar as input variable on a given value type the corresponding reference type.
|
|
cast a type to the 'any' Type ScriptVar as input variable. Additionally the held type should be from type cls |
|
cast a type to the 'any' Type ScriptVar as input variable. Additionally the held type should be from type cls |
|
cast a type to the 'any' Type ScriptVar as input variable. Additionally the held type should be from type cls |
|
cast a type to the 'any' Type ScriptVar as input variable Additionally the held type should be from type cls
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
on a given type to the 'any' Type ScriptVar as input/output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable.
|
|
cast a type to the 'any' Type ScriptVar as output variable. Additionally the held type should be from type cls |
|
cast a type to the 'any' Type ScriptVar as output variable. Additionally the held type should be from type cls |