You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
(25) |
Apr
(97) |
May
(56) |
Jun
(29) |
Jul
(65) |
Aug
(18) |
Sep
(14) |
Oct
(114) |
Nov
(12) |
Dec
(40) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(47) |
Mar
(109) |
Apr
(114) |
May
(47) |
Jun
(36) |
Jul
(8) |
Aug
(23) |
Sep
(111) |
Oct
(64) |
Nov
(57) |
Dec
(26) |
| 2004 |
Jan
(2) |
Feb
(18) |
Mar
(11) |
Apr
(1) |
May
(52) |
Jun
(70) |
Jul
(37) |
Aug
(24) |
Sep
(4) |
Oct
(27) |
Nov
(4) |
Dec
(29) |
| 2005 |
Jan
(8) |
Feb
(36) |
Mar
(71) |
Apr
(31) |
May
(42) |
Jun
(2) |
Jul
(53) |
Aug
(43) |
Sep
(41) |
Oct
(55) |
Nov
(59) |
Dec
(51) |
| 2006 |
Jan
(36) |
Feb
(36) |
Mar
(19) |
Apr
(85) |
May
(33) |
Jun
(10) |
Jul
(110) |
Aug
(44) |
Sep
(10) |
Oct
(123) |
Nov
(27) |
Dec
|
| 2007 |
Jan
(34) |
Feb
(16) |
Mar
(21) |
Apr
(53) |
May
(6) |
Jun
(8) |
Jul
(117) |
Aug
(10) |
Sep
(131) |
Oct
(13) |
Nov
(8) |
Dec
(46) |
| 2008 |
Jan
(47) |
Feb
(44) |
Mar
(66) |
Apr
(2) |
May
(29) |
Jun
(37) |
Jul
(13) |
Aug
(22) |
Sep
(32) |
Oct
(55) |
Nov
(60) |
Dec
(108) |
| 2009 |
Jan
(23) |
Feb
(103) |
Mar
(98) |
Apr
(21) |
May
(78) |
Jun
(141) |
Jul
(130) |
Aug
(60) |
Sep
(56) |
Oct
(51) |
Nov
(26) |
Dec
(17) |
| 2010 |
Jan
(48) |
Feb
(49) |
Mar
(42) |
Apr
(123) |
May
(38) |
Jun
(89) |
Jul
(34) |
Aug
(64) |
Sep
(31) |
Oct
(113) |
Nov
(20) |
Dec
(104) |
| 2011 |
Jan
(110) |
Feb
(70) |
Mar
(43) |
Apr
(30) |
May
(48) |
Jun
(115) |
Jul
(186) |
Aug
(17) |
Sep
(69) |
Oct
(77) |
Nov
(25) |
Dec
(25) |
| 2012 |
Jan
(49) |
Feb
(9) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ag...@us...> - 2012-02-04 20:55:46
|
Revision: 2711
http://zoolib.svn.sourceforge.net/zoolib/?rev=2711&view=rev
Author: agreen
Date: 2012-02-04 20:55:40 +0000 (Sat, 04 Feb 2012)
Log Message:
-----------
Add sCog_If, which supersedes sCog_Then.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZCog.h
Modified: trunk/zoolib/source/cxx/zoolib/ZCog.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCog.h 2012-02-03 07:29:58 UTC (rev 2710)
+++ trunk/zoolib/source/cxx/zoolib/ZCog.h 2012-02-04 20:55:40 UTC (rev 2711)
@@ -107,32 +107,25 @@
//--
- static const ZCog& sFalse();
- static const ZCog& sTrue();
- };
+ static const ZCog& sFalse()
+ {
+ static const ZCog<Param> spCog;
+ return spCog;
+ }
-template <class Param>
-const ZCog<Param>& ZCog<Param>::sFalse()
- {
- static const ZCog<Param> spCog;
- return spCog;
- }
+ static ZCog spCogFun_True(const ZCog& iSelf, Param iParam)
+ {
+ // Must not ever call this.
+ ZUnimplemented();
+ }
-template <class Param>
-ZCog<Param> spCogFun_True(const ZCog<Param>& iSelf, Param iParam)
- {
- // Must not ever call this.
- ZUnimplemented();
- return null;
- }
+ static const ZCog& sTrue()
+ {
+ static const ZCog spCog = sCallable(spCogFun_True);
+ return spCog;
+ }
+ };
-template <class Param>
-const ZCog<Param>& ZCog<Param>::sTrue()
- {
- static const ZCog<Param> spCog = sCallable(spCogFun_True<Param>);
- return spCog;
- }
-
// =================================================================================================
// MARK: - Nullary, sCog_Unknown
@@ -363,6 +356,9 @@
ZCog<Param> spCogFun_Repeat(const ZCog<Param>& iSelf, Param iParam,
const ZCog<Param>& iCog_Init, const ZCog<Param>& iCog)
{
+ // We don't do the usual trick of having iCog be a value param called 'lCog', because we may
+ // need to compare it's original value against iCog_Init later.
+
ZCog<Param> newCog = iCog;
if (sCallPendingCog_Unchanged(newCog, iParam))
return iSelf;
@@ -410,75 +406,78 @@
{ return sCog_Repeat<Param>(iCallable); }
// =================================================================================================
-// MARK: - Binary sequential, sCog_Then
+// MARK: - Ternary sequential, sCog_If
// Call cog0 till it finishes, if true then call cog1
template <class Param>
-ZCog<Param> spCog_Then
- (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
+ZCog<Param> spCog_If
+ (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCondition,
+ const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1);
template <class Param>
-ZCog<Param> spCogFun_Then(const ZCog<Param>& iSelf, Param iParam,
- ZCog<Param> lCog, const ZCog<Param>& iCog1)
+ZCog<Param> spCogFun_If(const ZCog<Param>& iSelf, Param iParam,
+ ZCog<Param> lCondition,
+ const ZCog<Param>& iCog0,
+ const ZCog<Param>& iCog1)
{
- if (sCallPendingCog_Unchanged(lCog, iParam))
+ if (sCallPendingCog_Unchanged(lCondition, iParam))
return iSelf;
- if (sIsFalse(lCog))
- return false;
+ if (sIsTrue(lCondition))
+ {
+ if (sIsFinished(iCog0))
+ return iCog0;
+ return iCog0->Call(iCog0, iParam);
+ }
- if (sIsTrue(lCog))
+ if (sIsFalse(lCondition))
{
if (sIsFinished(iCog1))
return iCog1;
return iCog1->Call(iCog1, iParam);
}
- return spCog_Then(lCog, iCog1);
+ return spCog_If(lCondition, iCog0, iCog1);
}
template <class Param>
-ZCog<Param> sCog_Then
- (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
+ZCog<Param> sCog_If
+ (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCondition,
+ const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
{
- if (sIsFalse(iCallable0))
- return false;
+ if (sIsTrue(iCondition))
+ return iCallable0;
- if (sIsTrue(iCallable0))
+ if (sIsFalse(iCondition))
return iCallable1;
- return spCog_Then(iCallable0, iCallable1);
+ return spCog_If(iCondition, iCallable0, iCallable1);
}
template <class Param>
-ZCog<Param> spCog_Then
- (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
+ZCog<Param> spCog_If
+ (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCondition,
+ const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
{
- if (sIsFalse(iCallable0))
- return false;
-
- if (sIsTrue(iCallable0))
- return iCallable1;
-
- static ZMACRO_auto(spCallable, sCallable(spCogFun_Then<Param>));
- return sBindR(spCallable, iCallable0, iCallable1);
+ static ZMACRO_auto(spCallable, sCallable(spCogFun_If<Param>));
+ return sBindR(spCallable, iCondition, iCallable0, iCallable1);
}
template <class Param>
ZCog<Param> operator>>
(const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
- { return sCog_Then<Param>(iCallable0, iCallable1); }
+ { return sCog_If<Param>(iCallable0, iCallable1, null); }
template <class Param>
ZCog<Param>& operator>>=
(ZCog<Param>& ioCog0,
const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
- { return ioCog0 = sCog_Then<Param>(ioCog0, iCallable1); }
+ { return ioCog0 = sCog_If<Param>(ioCog0, iCallable1, null); }
// =================================================================================================
// MARK: - Binary sequential, sCog_Each
@@ -489,7 +488,8 @@
ZCog<Param> sCog_Each
(const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
- { return +iCallable0 >> iCallable1; }
+ { return sCog_If(iCallable0, iCallable1, iCallable1); }
+// { return +iCallable0 >> iCallable1; }
template <class Param>
ZCog<Param> operator^
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-02-03 07:30:09
|
Revision: 2710
http://zoolib.svn.sourceforge.net/zoolib/?rev=2710&view=rev
Author: agreen
Date: 2012-02-03 07:29:58 +0000 (Fri, 03 Feb 2012)
Log Message:
-----------
Add sCog_While.
Make cog classification a bit more readable.
Comments.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZCog.h
Modified: trunk/zoolib/source/cxx/zoolib/ZCog.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCog.h 2012-02-03 07:28:50 UTC (rev 2709)
+++ trunk/zoolib/source/cxx/zoolib/ZCog.h 2012-02-03 07:29:58 UTC (rev 2710)
@@ -160,11 +160,11 @@
template <class Param>
bool sIsFinished(const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable)
- { return not iCallable || sIsTrue(iCallable); }
+ { return sIsFalse(iCallable) || sIsTrue(iCallable); }
template <class Param>
bool sIsPending(const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable)
- { return iCallable && not sIsTrue(iCallable); }
+ { return not sIsFinished(iCallable); }
// =================================================================================================
// MARK:- sCallCog variants
@@ -373,8 +373,8 @@
if (not sIsTrue(newCog))
return spCog_Repeat(iCog_Init, newCog);
- // To get unbroken repetition on hitting a term we need to call the new cog,
- // don't make the call if we'd just be calling an iSelf-equivalent.
+ // To get unbroken repetition on hitting a term we need to call the new cog, but don't
+ // make the call if we'd be calling an iSelf-equivalent (infinite recursion would ensue).
if (iCog_Init == iCog)
return iSelf;
else
@@ -704,9 +704,85 @@
{ return ioCog0 = sCog_Or<Param>(ioCog0, iCallable1); }
// =================================================================================================
+// MARK: - Binary parallel, sCog_While
+
+// Call cog0 and cog1 while cog1 is pending, result from cog1.
+
+template <class Param>
+ZCog<Param> spCogFun_While(const ZCog<Param>& iSelf, Param iParam,
+ ZCog<Param> lCog0, const ZCog<Param>& iCog1);
+
+template <class Param>
+ZCog<Param> spCog_While
+ (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
+ const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
+ {
+ ZAssert(sIsPending(iCallable0) && sIsPending(iCallable1));
+
+ static ZMACRO_auto(spCallable, sCallable(spCogFun_While<Param>));
+ return sBindR(spCallable, iCallable0, iCallable1);
+ }
+
+template <class Param>
+ZCog<Param> sCog_While
+ (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
+ const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
+ {
+ if (sIsPending(iCallable0) && sIsPending(iCallable1))
+ return spCog_While(iCallable0, iCallable1);
+ return iCallable1;
+ }
+
+template <class Param>
+ZCog<Param> spCogFun_While(const ZCog<Param>& iSelf, Param iParam,
+ ZCog<Param> lCog0, const ZCog<Param>& iCog1)
+ {
+ ZAssert(sIsPending(lCog0) && sIsPending(iCog1));
+
+ if (sCallPendingCog_Unchanged(lCog0, iParam))
+ {
+ ZCog<Param> newCog1 = iCog1;
+ if (sCallPendingCog_Unchanged(newCog1, iParam))
+ return iSelf;
+
+ if (sIsFinished(newCog1))
+ return newCog1;
+
+ return spCog_While(lCog0, newCog1);
+ }
+ else if (sIsFinished(lCog0))
+ {
+ return iCog1->Call(iCog1, iParam);
+ }
+ else
+ {
+ ZCog<Param> newCog1 = iCog1->Call(iCog1, iParam);
+
+ if (sIsFinished(newCog1))
+ return newCog1;
+
+ return spCog_While(lCog0, newCog1);
+ }
+ }
+
+#if 0
+template <class Param>
+ZCog<Param> operator/
+ (const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable0,
+ const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
+ { return sCog_While<Param>(iCallable0, iCallable1); }
+
+template <class Param>
+ZCog<Param>& operator/=
+ (ZCog<Param>& ioCog0,
+ const ZRef<ZCallable<ZCog<Param>(const ZCog<Param>&,Param)> >& iCallable1)
+ { return ioCog0 = sCog_While<Param>(ioCog0, iCallable1); }
+#endif
+
+// =================================================================================================
// MARK: - Binary parallel, sCog_With
-// Call cog1 so long as cog0 is pending.
+// Call cog0 and cog1 so long as cog0 is pending, result from cog0
template <class Param>
ZCog<Param> spCogFun_With(const ZCog<Param>& iSelf, Param iParam,
@@ -780,7 +856,7 @@
// =================================================================================================
// MARK: - Binary parallel, sCog_WithUnchanged
-// Call cog1 so long as cog0 is pending and unchanged.
+// Call cog0 and cog1 so long as cog0 is pending and unchanged, result from cog0
template <class Param>
ZCog<Param> spCogFun_WithUnchanged(const ZCog<Param>& iSelf, Param iParam,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-02-03 07:28:59
|
Revision: 2709
http://zoolib.svn.sourceforge.net/zoolib/?rev=2709&view=rev
Author: agreen
Date: 2012-02-03 07:28:50 +0000 (Fri, 03 Feb 2012)
Log Message:
-----------
Comment.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZServer.cpp
Modified: trunk/zoolib/source/cxx/zoolib/ZServer.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZServer.cpp 2012-02-01 18:51:31 UTC (rev 2708)
+++ trunk/zoolib/source/cxx/zoolib/ZServer.cpp 2012-02-03 07:28:50 UTC (rev 2709)
@@ -53,8 +53,8 @@
ZAssert(iCaller);
ZAssert(iFactory);
- // Declared before the acq, so it goes out of scope
- // after it, and any callable is invoked with our mutex released.
+ // Declared before the acq, so it goes out of scope after it, and any
+ // callable on the roster is invoked with our mutex released.
ZRef<ZRoster> priorRoster;
ZAcqMtx acq(fMtx);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-02-01 18:51:43
|
Revision: 2708
http://zoolib.svn.sourceforge.net/zoolib/?rev=2708&view=rev
Author: agreen
Date: 2012-02-01 18:51:31 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
Get rid of last 'bool QGet' methods.
Clean up ZValAccessors.h
Modified Paths:
--------------
trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp
trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_VariantPriv.h
trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp
trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.h
trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp
trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h
trunk/zoolib/source/cxx/zoolib/ZValAccessors.h
trunk/zoolib/source/cxx/zoolib/ZValAccessors_Std.h
trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.h
trunk/zoolib/source/cxx/zoolib/ZVal_CF.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_CF.h
trunk/zoolib/source/cxx/zoolib/ZVal_NS.h
trunk/zoolib/source/cxx/zoolib/ZVal_NS.mm
trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_Yad.h
trunk/zoolib/source/cxx/zoolib/ZWinCOM.cpp
trunk/zoolib/source/cxx/zoolib/ZWinCOM.h
trunk/zoolib/source/cxx/zoolib/ZWinRegistry_Val.cpp
trunk/zoolib/source/cxx/zoolib/ZYad_NS.mm
Modified: trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -546,10 +546,10 @@
return null;
}
-ZMACRO_ZValAccessors_Def_GetP(,Value, Bool, bool)
-ZMACRO_ZValAccessors_Def_GetP(,Value, Double, double)
-ZMACRO_ZValAccessors_Def_GetP(,Value, String, String)
-ZMACRO_ZValAccessors_Def_GetP(,Value, ObjectRef, ObjectRef)
+ZMACRO_ZValAccessors_Def_Get(Value, Bool, bool)
+ZMACRO_ZValAccessors_Def_Get(Value, Double, double)
+ZMACRO_ZValAccessors_Def_Get(Value, String, String)
+ZMACRO_ZValAccessors_Def_Get(Value, ObjectRef, ObjectRef)
// =================================================================================================
// MARK: - ZJavaScriptCore::ObjectRef
Modified: trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_VariantPriv.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_VariantPriv.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_VariantPriv.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -365,11 +365,11 @@
// =================================================================================================
// MARK: - NPVariant_T<T> typename accessors
-ZMACRO_ZValAccessors_Def_GetP(template <class T>, NPVariant_T<T>, Bool, bool)
-ZMACRO_ZValAccessors_Def_GetP(template <class T>, NPVariant_T<T>, Int32, int32)
-ZMACRO_ZValAccessors_Def_GetP(template <class T>, NPVariant_T<T>, Double, double)
-ZMACRO_ZValAccessors_Def_GetP(template <class T>, NPVariant_T<T>, String, std::string)
-ZMACRO_ZValAccessors_Def_GetP(template <class T>, NPVariant_T<T>, Object, ZRef<T>)
+ZMACRO_ZValAccessors_Def_GetX(template <class T>, NPVariant_T<T>, Bool, bool)
+ZMACRO_ZValAccessors_Def_GetX(template <class T>, NPVariant_T<T>, Int32, int32)
+ZMACRO_ZValAccessors_Def_GetX(template <class T>, NPVariant_T<T>, Double, double)
+ZMACRO_ZValAccessors_Def_GetX(template <class T>, NPVariant_T<T>, String, std::string)
+ZMACRO_ZValAccessors_Def_GetX(template <class T>, NPVariant_T<T>, Object, ZRef<T>)
} // namespace ZNetscape
} // namespace ZooLib
Modified: trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -1078,18 +1078,18 @@
// =================================================================================================
// MARK: - Val typename accessors
-ZMACRO_ZValAccessors_Def_Entry(Val, Int32, int32)
-ZMACRO_ZValAccessors_Def_Entry(Val, Double, double)
-ZMACRO_ZValAccessors_Def_Entry(Val, Bool, bool)
-ZMACRO_ZValAccessors_Def_Entry(Val, String, string8)
-ZMACRO_ZValAccessors_Def_Entry(Val, Data, Data)
-ZMACRO_ZValAccessors_Def_Entry(Val, ClassID, ClassID)
-ZMACRO_ZValAccessors_Def_Entry(Val, UnitFloat, UnitFloat)
-ZMACRO_ZValAccessors_Def_Entry(Val, Enumerated, Enumerated)
-ZMACRO_ZValAccessors_Def_Entry(Val, FileRef, FileRef)
-ZMACRO_ZValAccessors_Def_Entry(Val, Seq, Seq)
-ZMACRO_ZValAccessors_Def_Entry(Val, Map, Map)
-ZMACRO_ZValAccessors_Def_Entry(Val, Spec, Spec)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Int32, int32)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Double, double)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Bool, bool)
+ZMACRO_ZValAccessors_Def_GetSet(Val, String, string8)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Data, Data)
+ZMACRO_ZValAccessors_Def_GetSet(Val, ClassID, ClassID)
+ZMACRO_ZValAccessors_Def_GetSet(Val, UnitFloat, UnitFloat)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Enumerated, Enumerated)
+ZMACRO_ZValAccessors_Def_GetSet(Val, FileRef, FileRef)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Seq, Seq)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Map, Map)
+ZMACRO_ZValAccessors_Def_GetSet(Val, Spec, Spec)
// =================================================================================================
// MARK: - Seq
Modified: trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -243,18 +243,18 @@
// Typename accessors
/// \cond DoxygenIgnore
- ZMACRO_ZValAccessors_Decl_Entry(Val, Int32, int32)
- ZMACRO_ZValAccessors_Decl_Entry(Val, Double, double)
- ZMACRO_ZValAccessors_Decl_Entry(Val, Bool, bool)
- ZMACRO_ZValAccessors_Decl_Entry(Val, String, string8)
- ZMACRO_ZValAccessors_Decl_Entry(Val, Data, Data)
- ZMACRO_ZValAccessors_Decl_Entry(Val, ClassID, ClassID)
- ZMACRO_ZValAccessors_Decl_Entry(Val, UnitFloat, UnitFloat)
- ZMACRO_ZValAccessors_Decl_Entry(Val, Enumerated, Enumerated)
- ZMACRO_ZValAccessors_Decl_Entry(Val, FileRef, FileRef)
- ZMACRO_ZValAccessors_Decl_Entry(Val, Seq, Seq)
- ZMACRO_ZValAccessors_Decl_Entry(Val, Map, Map)
- ZMACRO_ZValAccessors_Decl_Entry(Val, Spec, Spec)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Int32, int32)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Double, double)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Bool, bool)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, String, string8)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Data, Data)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, ClassID, ClassID)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, UnitFloat, UnitFloat)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Enumerated, Enumerated)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, FileRef, FileRef)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Seq, Seq)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Map, Map)
+ ZMACRO_ZValAccessors_Decl_GetSet(Val, Spec, Spec)
/// \endcond DoxygenIgnore
};
Modified: trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -1265,20 +1265,20 @@
// MARK: - ZVal_ZooLib typename accessors
ZMACRO_ZValAccessors_Def_Std(ZVal_ZooLib)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, ID, uint64)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Type, ZType)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Time, ZTime)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Rect, ZRectPOD)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Point, ZPointPOD)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, RefCounted, ZRef<ZCounted>)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Pointer, VoidStar_t)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Data, ZData_ZooLib)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Seq, ZSeq_ZooLib)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Map, ZMap_ZooLib)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, ID, uint64)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Type, ZType)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Time, ZTime)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Rect, ZRectPOD)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Point, ZPointPOD)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, RefCounted, ZRef<ZCounted>)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Pointer, VoidStar_t)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Data, ZData_ZooLib)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Seq, ZSeq_ZooLib)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Map, ZMap_ZooLib)
// Backwards compatibility
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Raw, ZData_ZooLib)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_ZooLib, Tuple, ZMap_ZooLib)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Raw, ZData_ZooLib)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_ZooLib, Tuple, ZMap_ZooLib)
// =================================================================================================
// MARK: - ZVal_ZooLib internal implementation
Modified: trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -195,20 +195,20 @@
// Typename accessors
/// \cond DoxygenIgnore
ZMACRO_ZValAccessors_Decl_Std(ZVal_ZooLib)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, ID, uint64)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Type, ZType)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Time, ZTime)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Rect, ZRectPOD)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Point, ZPointPOD)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, RefCounted, ZRef<ZCounted>)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Pointer, VoidStar_t)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Data, ZData_ZooLib)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Seq, ZSeq_ZooLib)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Map, ZMap_ZooLib)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, ID, uint64)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Type, ZType)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Time, ZTime)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Rect, ZRectPOD)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Point, ZPointPOD)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, RefCounted, ZRef<ZCounted>)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Pointer, VoidStar_t)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Data, ZData_ZooLib)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Seq, ZSeq_ZooLib)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Map, ZMap_ZooLib)
// Backwards compatibility
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Raw, ZData_ZooLib)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_ZooLib, Tuple, ZMap_ZooLib)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Raw, ZData_ZooLib)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_ZooLib, Tuple, ZMap_ZooLib)
/// \endcond DoxygenIgnore
private:
Modified: trunk/zoolib/source/cxx/zoolib/ZValAccessors.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZValAccessors.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZValAccessors.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -25,36 +25,47 @@
// =================================================================================================
// MARK: - ZMACRO_ZValAccessors
+// Declaration, Get
+
#define ZMACRO_ZValAccessors_Decl_Get(T, TYPENAME, TYPE) \
ZQ<TYPE> QGet##TYPENAME() const; \
- bool QGet##TYPENAME(TYPE& oVal) const; \
TYPE DGet##TYPENAME(const TYPE& iDefault) const; \
TYPE Get##TYPENAME() const; \
-#define ZMACRO_ZValAccessors_Decl_Entry(T, TYPENAME, TYPE) \
+// Declaration, GetSet
+
+#define ZMACRO_ZValAccessors_Decl_GetSet(T, TYPENAME, TYPE) \
ZMACRO_ZValAccessors_Decl_Get(T, TYPENAME, TYPE) \
void Set##TYPENAME(const TYPE& iVal); \
-#define ZMACRO_ZValAccessors_Def_GetP(P, T, TYPENAME, TYPE) \
- P ZQ<TYPE> T::QGet##TYPENAME() const \
+
+// Definition, Get, with leading extra qualification
+
+#define ZMACRO_ZValAccessors_Def_GetX(X, T, TYPENAME, TYPE) \
+ X ZQ<TYPE> T::QGet##TYPENAME() const \
{ return this->QGet<TYPE>(); } \
- P bool T::QGet##TYPENAME(TYPE& oVal) const \
- { \
- if (ZQ<TYPE> theQ = this->QGet<TYPE>()) \
- { oVal = theQ.Get(); return true; } \
- return false; \
- } \
- P TYPE T::DGet##TYPENAME(const TYPE& iDefault) const \
+ X TYPE T::DGet##TYPENAME(const TYPE& iDefault) const \
{ return this->DGet<TYPE>(iDefault); } \
- P TYPE T::Get##TYPENAME() const \
+ X TYPE T::Get##TYPENAME() const \
{ return this->Get<TYPE>(); } \
-#define ZMACRO_ZValAccessors_Def_EntryP(P, T, TYPENAME, TYPE) \
- ZMACRO_ZValAccessors_Def_GetP(P, T, TYPENAME, TYPE) \
- P void T::Set##TYPENAME(const TYPE& iVal) \
+
+// Definition, GetSet, with leading extra qualification
+
+#define ZMACRO_ZValAccessors_Def_GetSetX(X, T, TYPENAME, TYPE) \
+ ZMACRO_ZValAccessors_Def_GetX(X, T, TYPENAME, TYPE) \
+ X void T::Set##TYPENAME(const TYPE& iVal) \
{ return this->Set<TYPE>(iVal); } \
-#define ZMACRO_ZValAccessors_Def_Entry(T, TYPENAME, TYPE) \
- ZMACRO_ZValAccessors_Def_EntryP(,T,TYPENAME, TYPE)
+// Definition, Get
+
+#define ZMACRO_ZValAccessors_Def_Get(T, TYPENAME, TYPE) \
+ ZMACRO_ZValAccessors_Def_GetX(,T,TYPENAME, TYPE)
+
+// Definition, GetSet
+
+#define ZMACRO_ZValAccessors_Def_GetSet(T, TYPENAME, TYPE) \
+ ZMACRO_ZValAccessors_Def_GetSetX(,T,TYPENAME, TYPE)
+
#endif // __ZValAccessors_h__
Modified: trunk/zoolib/source/cxx/zoolib/ZValAccessors_Std.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZValAccessors_Std.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZValAccessors_Std.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -31,23 +31,23 @@
// MARK: - ZMACRO_ZValAccessors_Std
#define ZMACRO_ZValAccessors_Decl_Std(T) \
- ZMACRO_ZValAccessors_Decl_Entry(T, Int8, int8) \
- ZMACRO_ZValAccessors_Decl_Entry(T, Int16, int16) \
- ZMACRO_ZValAccessors_Decl_Entry(T, Int32, int32) \
- ZMACRO_ZValAccessors_Decl_Entry(T, Int64, int64) \
- ZMACRO_ZValAccessors_Decl_Entry(T, Bool, bool) \
- ZMACRO_ZValAccessors_Decl_Entry(T, Float, float) \
- ZMACRO_ZValAccessors_Decl_Entry(T, Double, double) \
- ZMACRO_ZValAccessors_Decl_Entry(T, String, std::string) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, Int8, int8) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, Int16, int16) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, Int32, int32) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, Int64, int64) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, Bool, bool) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, Float, float) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, Double, double) \
+ ZMACRO_ZValAccessors_Decl_GetSet(T, String, std::string) \
#define ZMACRO_ZValAccessors_Def_Std(T) \
- ZMACRO_ZValAccessors_Def_Entry(T, Int8, int8) \
- ZMACRO_ZValAccessors_Def_Entry(T, Int16, int16) \
- ZMACRO_ZValAccessors_Def_Entry(T, Int32, int32) \
- ZMACRO_ZValAccessors_Def_Entry(T, Int64, int64) \
- ZMACRO_ZValAccessors_Def_Entry(T, Bool, bool) \
- ZMACRO_ZValAccessors_Def_Entry(T, Float, float) \
- ZMACRO_ZValAccessors_Def_Entry(T, Double, double) \
- ZMACRO_ZValAccessors_Def_Entry(T, String, std::string) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, Int8, int8) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, Int16, int16) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, Int32, int32) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, Int64, int64) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, Bool, bool) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, Float, float) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, Double, double) \
+ ZMACRO_ZValAccessors_Def_GetSet(T, String, std::string) \
#endif // __ZValAccessors_Std_h__
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -114,9 +114,9 @@
ZVal_Any ZVal_Any::Get(size_t iIndex) const
{ return this->GetSeq().Get(iIndex); }
-ZMACRO_ZValAccessors_Def_Entry(ZVal_Any, Data, ZData_Any)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_Any, Seq, ZSeq_Any)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_Any, Map, ZMap_Any)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_Any, Data, ZData_Any)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_Any, Seq, ZSeq_Any)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_Any, Map, ZMap_Any)
// =================================================================================================
// MARK: - ZSeq_Any::Rep
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -215,9 +215,9 @@
// Typename accessors
/// \cond DoxygenIgnore
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_Any, Data, ZData_Any)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_Any, Seq, ZSeq_Any)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_Any, Map, ZMap_Any)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_Any, Data, ZData_Any)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_Any, Seq, ZSeq_Any)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_Any, Map, ZMap_Any)
/// \endcond DoxygenIgnore
// If these are free functions then our template constructor will
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -458,19 +458,19 @@
// =================================================================================================
// MARK: - ZVal_AppleEvent typename accessors
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Int16, int16)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Int32, int32)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Int64, int64)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Bool, bool)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Float, float)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Double, double)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, String, std::string)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Seq, ZSeq_AppleEvent)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, Map, ZMap_AppleEvent)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, FSRef, FSRef)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Int16, int16)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Int32, int32)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Int64, int64)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Bool, bool)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Float, float)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Double, double)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, String, std::string)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Seq, ZSeq_AppleEvent)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, Map, ZMap_AppleEvent)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, FSRef, FSRef)
#if ZCONFIG_SPI_Enabled(Carbon)
- ZMACRO_ZValAccessors_Def_Entry(ZVal_AppleEvent, FSSpec, FSSpec)
+ ZMACRO_ZValAccessors_Def_GetSet(ZVal_AppleEvent, FSSpec, FSSpec)
#endif
// =================================================================================================
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -119,19 +119,19 @@
// Typename accessors
/// \cond DoxygenIgnore
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Int16, int16)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Int32, int32)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Int64, int64)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Bool, bool)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Float, float)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Double, double)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, String, std::string)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Seq, ZSeq_AppleEvent)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, Map, ZMap_AppleEvent)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, FSRef, FSRef)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Int16, int16)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Int32, int32)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Int64, int64)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Bool, bool)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Float, float)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Double, double)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, String, std::string)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Seq, ZSeq_AppleEvent)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, Map, ZMap_AppleEvent)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, FSRef, FSRef)
#if ZCONFIG_SPI_Enabled(Carbon)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_AppleEvent, FSSpec, FSSpec)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_AppleEvent, FSSpec, FSSpec)
#endif
/// \endcond DoxygenIgnore
};
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_CF.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_CF.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_CF.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -471,10 +471,10 @@
// MARK: - ZVal_CF typename accessors
ZMACRO_ZValAccessors_Def_Std(ZVal_CF)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_CF, CFString, ZRef<CFStringRef>)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_CF, Data, ZData_CF)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_CF, Seq, ZSeq_CF)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_CF, Map, ZMap_CF)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_CF, CFString, ZRef<CFStringRef>)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_CF, Data, ZData_CF)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_CF, Seq, ZSeq_CF)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_CF, Map, ZMap_CF)
// =================================================================================================
// MARK: - ZSeq_CF
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_CF.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_CF.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_CF.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -136,10 +136,10 @@
// Typename accessors
/// \cond DoxygenIgnore
ZMACRO_ZValAccessors_Decl_Std(ZVal_CF)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_CF, CFString, ZRef<CFStringRef>)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_CF, Data, ZData_CF)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_CF, Seq, ZSeq_CF)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_CF, Map, ZMap_CF)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_CF, CFString, ZRef<CFStringRef>)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_CF, Data, ZData_CF)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_CF, Seq, ZSeq_CF)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_CF, Map, ZMap_CF)
/// \endcond DoxygenIgnore
};
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_NS.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_NS.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_NS.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -149,10 +149,10 @@
typedef NSString* NSStringPtr;
ZMACRO_ZValAccessors_Decl_Std(ZVal_NS)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_NS, NSString, NSStringPtr)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_NS, Data, ZData_NS)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_NS, Seq, ZSeq_NS)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_NS, Map, ZMap_NS)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_NS, NSString, NSStringPtr)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_NS, Data, ZData_NS)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_NS, Seq, ZSeq_NS)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_NS, Map, ZMap_NS)
/// \endcond DoxygenIgnore
};
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_NS.mm
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_NS.mm 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_NS.mm 2012-02-01 18:51:31 UTC (rev 2708)
@@ -384,10 +384,10 @@
// MARK: - ZVal_NS typename accessors
ZMACRO_ZValAccessors_Def_Std(ZVal_NS)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_NS, NSString, ZVal_NS::NSStringPtr)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_NS, Data, ZData_NS)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_NS, Seq, ZSeq_NS)
-ZMACRO_ZValAccessors_Def_Entry(ZVal_NS, Map, ZMap_NS)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_NS, NSString, ZVal_NS::NSStringPtr)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_NS, Data, ZData_NS)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_NS, Seq, ZSeq_NS)
+ZMACRO_ZValAccessors_Def_GetSet(ZVal_NS, Map, ZMap_NS)
// =================================================================================================
// MARK: - ZSeq_NS
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -132,8 +132,8 @@
return ZAny();
}
-ZMACRO_ZValAccessors_Def_GetP(,ZVal_Yad, Seq, ZSeq_Yad)
-ZMACRO_ZValAccessors_Def_GetP(,ZVal_Yad, Map, ZMap_Yad)
+ZMACRO_ZValAccessors_Def_Get(ZVal_Yad, Seq, ZSeq_Yad)
+ZMACRO_ZValAccessors_Def_Get(ZVal_Yad, Map, ZMap_Yad)
// =================================================================================================
// MARK: - ZSeq_Yad
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Yad.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Yad.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Yad.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -105,8 +105,8 @@
// Typename accessors
/// \cond DoxygenIgnore
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_Yad, Seq, ZSeq_Yad)
- ZMACRO_ZValAccessors_Decl_Entry(ZVal_Yad, Map, ZMap_Yad)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_Yad, Seq, ZSeq_Yad)
+ ZMACRO_ZValAccessors_Decl_GetSet(ZVal_Yad, Map, ZMap_Yad)
/// \endcond DoxygenIgnore
// Our protocol
Modified: trunk/zoolib/source/cxx/zoolib/ZWinCOM.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZWinCOM.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZWinCOM.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -433,22 +433,22 @@
}
/// \cond DoxygenIgnore
-ZMACRO_ZValAccessors_Def_Entry(Variant, Int8, int8)
-ZMACRO_ZValAccessors_Def_Entry(Variant, UInt, uint8)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Int16, int16)
-ZMACRO_ZValAccessors_Def_Entry(Variant, UInt16, uint16)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Int32, int32)
-ZMACRO_ZValAccessors_Def_Entry(Variant, UInt32, uint32)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Int64, int64)
-ZMACRO_ZValAccessors_Def_Entry(Variant, UInt64, uint64)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Bool, bool)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Float, float)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Double, double)
-ZMACRO_ZValAccessors_Def_Entry(Variant, String, string8)
-ZMACRO_ZValAccessors_Def_Entry(Variant, String8, string8)
-ZMACRO_ZValAccessors_Def_Entry(Variant, String16, string16)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Unknown, ZRef<IUnknown>)
-ZMACRO_ZValAccessors_Def_Entry(Variant, Dispatch, ZRef<IDispatch>)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Int8, int8)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, UInt, uint8)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Int16, int16)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, UInt16, uint16)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Int32, int32)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, UInt32, uint32)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Int64, int64)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, UInt64, uint64)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Bool, bool)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Float, float)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Double, double)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, String, string8)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, String8, string8)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, String16, string16)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Unknown, ZRef<IUnknown>)
+ZMACRO_ZValAccessors_Def_GetSet(Variant, Dispatch, ZRef<IDispatch>)
/// \endcond DoxygenIgnore
// =================================================================================================
Modified: trunk/zoolib/source/cxx/zoolib/ZWinCOM.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZWinCOM.h 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZWinCOM.h 2012-02-01 18:51:31 UTC (rev 2708)
@@ -306,22 +306,22 @@
// Typename accessors
/// \cond DoxygenIgnore
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Int8, int8)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, UInt, uint8)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Int16, int16)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, UInt16, uint16)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Int32, int32)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, UInt32, uint32)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Int64, int64)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, UInt64, uint64)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Bool, bool)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Float, float)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Double, double)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, String, string8)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, String8, string8)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, String16, string16)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Unknown, ZRef<IUnknown>)
- ZMACRO_ZValAccessors_Decl_Entry(Variant, Dispatch, ZRef<IDispatch>)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Int8, int8)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, UInt, uint8)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Int16, int16)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, UInt16, uint16)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Int32, int32)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, UInt32, uint32)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Int64, int64)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, UInt64, uint64)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Bool, bool)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Float, float)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Double, double)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, String, string8)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, String8, string8)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, String16, string16)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Unknown, ZRef<IUnknown>)
+ ZMACRO_ZValAccessors_Decl_GetSet(Variant, Dispatch, ZRef<IDispatch>)
/// \endcond DoxygenIgnore
};
Modified: trunk/zoolib/source/cxx/zoolib/ZWinRegistry_Val.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZWinRegistry_Val.cpp 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZWinRegistry_Val.cpp 2012-02-01 18:51:31 UTC (rev 2708)
@@ -263,14 +263,14 @@
return Val();
}
-ZMACRO_ZValAccessors_Def_GetP(,Val, String16, string16)
-ZMACRO_ZValAccessors_Def_GetP(,Val, StringList, vector<string16>)
-ZMACRO_ZValAccessors_Def_GetP(,Val, String_Env, String_Env)
-ZMACRO_ZValAccessors_Def_GetP(,Val, String_Link, String_Link)
-ZMACRO_ZValAccessors_Def_GetP(,Val, Int32, int32)
-ZMACRO_ZValAccessors_Def_GetP(,Val, Int64, int64)
-ZMACRO_ZValAccessors_Def_GetP(,Val, Data, Data)
-ZMACRO_ZValAccessors_Def_GetP(,Val, KeyRef, KeyRef)
+ZMACRO_ZValAccessors_Def_Get(Val, String16, string16)
+ZMACRO_ZValAccessors_Def_Get(Val, StringList, vector<string16>)
+ZMACRO_ZValAccessors_Def_Get(Val, String_Env, String_Env)
+ZMACRO_ZValAccessors_Def_Get(Val, String_Link, String_Link)
+ZMACRO_ZValAccessors_Def_Get(Val, Int32, int32)
+ZMACRO_ZValAccessors_Def_Get(Val, Int64, int64)
+ZMACRO_ZValAccessors_Def_Get(Val, Data, Data)
+ZMACRO_ZValAccessors_Def_Get(Val, KeyRef, KeyRef)
// =================================================================================================
// MARK: - ZWinRegistry::KeyRef
Modified: trunk/zoolib/source/cxx/zoolib/ZYad_NS.mm
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad_NS.mm 2012-02-01 18:21:01 UTC (rev 2707)
+++ trunk/zoolib/source/cxx/zoolib/ZYad_NS.mm 2012-02-01 18:51:31 UTC (rev 2708)
@@ -129,21 +129,17 @@
{
const ZVal_NS theVal = iVal;
- ZMap_NS asMap;
- if (theVal.QGetMap(asMap))
- return new ZYadMapRPos_NS(asMap);
+ if (ZQ<ZMap_NS> theQ = theVal.QGetMap())
+ return new ZYadMapRPos_NS(*theQ);
- ZSeq_NS asSeq;
- if (theVal.QGetSeq(asSeq))
- return new ZYadSeqRPos_NS(asSeq);
+ if (ZQ<ZSeq_NS> theQ = theVal.QGetSeq())
+ return new ZYadSeqRPos_NS(*theQ);
- ZData_NS asData;
- if (theVal.QGetData(asData))
- return new ZYadStreamRPos_NS(asData);
+ if (ZQ<ZData_NS> theQ = theVal.QGetData())
+ return new ZYadStreamRPos_NS(*theQ);
- NSString* asNSString;
- if (theVal.QGetNSString(asNSString))
- return new ZYadStrimR_NS(asNSString);
+ if (ZQ<NSString*> theQ = theVal.QGetNSString())
+ return new ZYadStrimR_NS(*theQ);
return new ZYadAtomR_NS(iVal);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-02-01 18:21:08
|
Revision: 2707
http://zoolib.svn.sourceforge.net/zoolib/?rev=2707&view=rev
Author: agreen
Date: 2012-02-01 18:21:01 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
Fix some //## mistakes that came from moving away from #\t stuff.
Modified Paths:
--------------
trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp
trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp
trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp
trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp
trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp
trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h
trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp
trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp
trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h
trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp
trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.cpp
trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.h
Modified: trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -275,7 +275,7 @@
ZAssert(!req);
fOpen = false;
-//# #ZStreamerWriter::Wake();
+//## ZStreamerWriter::Wake();
return false;
}
@@ -306,7 +306,7 @@
void Device_Client::Stop()
{
fOpen = false;
-//# #ZStreamerWriter::Wake();
+//## ZStreamerWriter::Wake();
}
// =================================================================================================
@@ -347,7 +347,7 @@
fSendClose = true;
this->WakeWrite();
-//# #ZCommer::ReadFinished();
+//## ZCommer::ReadFinished();
}
bool Manager_Client::Commer_Changed::Read(const ZStreamR& r)
Modified: trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -367,8 +367,8 @@
// Watcher fired, but could not create a USBDevice.
if (ZLOG(s, eNotice, "ZBlackBerry::Manager_OSXUSB"))
s << "Added, invoked with null device, PocketMac drivers installed?";
-//# #if (fPocketMacDriverInstalled)
-//# #fObserver->AddFailed();
+//## if (fPocketMacDriverInstalled)
+//## fObserver->AddFailed();
return;
}
Modified: trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -278,7 +278,7 @@
s << "\nDatonSet Raw:\n" << iAdded->GetRel();
ZRef<ZRA::Expr_Rel> theRel = iAdded->GetRel();
-//# #theRel = ZQE::sTransform_Search(theRel);
+//## theRel = ZQE::sTransform_Search(theRel);
if (ZLOGPF(s, eDebug + 1))
s << "\nDatonSet Cooked:\n" << theRel;
Modified: trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -461,7 +461,7 @@
#elif defined(__PIWin__)
// Need to look at this again when we're doing 64 bit compiles.
-//# #ZAssertCompile(ZIntTrait_T<sizeof(size_t)>::eIs32Bit);
+//## ZAssertCompile(ZIntTrait_T<sizeof(size_t)>::eIs32Bit);
UseHandle useHandle(fHandle);
size_t handleSize = useHandle.Size();
Modified: trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -364,7 +364,7 @@
TypeID theType;
if (noErr != spPSActionList->GetType(iSource, x, &theType))
break;
-//# #COPYFROMTO(spPSActionList, iSource, x, theType, theDest)
+//## COPYFROMTO(spPSActionList, iSource, x, theType, theDest)
}
}
return theDest;
Modified: trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h 2012-02-01 18:21:01 UTC (rev 2707)
@@ -52,7 +52,7 @@
virtual ZRef<ZNodeRep> CreateDir(Error* oError);
virtual ZRef<ZNodeRep> MoveTo(ZRef<ZNodeRep> iDest, Error* oError);
-//# #virtual ZRef<ZNodeRep> MoveFrom(ZRef<ZNodeRep> iSource, Error* oError);
+//## virtual ZRef<ZNodeRep> MoveFrom(ZRef<ZNodeRep> iSource, Error* oError);
virtual bool Delete(Error* oError);
virtual ZRef<ZStreamerR> OpenR(bool iPreventWriters, Error* oError);
Modified: trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -587,8 +587,8 @@
if (inColorPixmap)
sAddPixmapToIconFamily(inColorPixmap, eData8, theIconFamilyHandle);
-//# #if (inColorPixmap)
-//# #sAddPixmapToIconFamily(inColorPixmap, eData32, theIconFamilyHandle);
+//## if (inColorPixmap)
+//## sAddPixmapToIconFamily(inColorPixmap, eData32, theIconFamilyHandle);
if (inMonoPixmap)
sAddPixmapToIconFamily(inMonoPixmap, eData1, theIconFamilyHandle);
@@ -635,7 +635,7 @@
/* if (ZApp::sGet())
{
ZDCRgn theDCRgn;
-//# #ZApp::sGet()->AppleEventIdleProc(theEventRecord, sleepTime, theDCRgn);
+//## ZApp::sGet()->AppleEventIdleProc(theEventRecord, sleepTime, theDCRgn);
::MacCopyRgn(theDCRgn, *outMouseRgn);
}*/
return false;
@@ -671,8 +671,8 @@
static ModalFilterUPP sModalFilterUPP = NewModalFilterUPP(ZUtil_Mac_HL::sModalFilter);
pascal Boolean ZUtil_Mac_HL::sModalFilter(DialogPtr theDialog, EventRecord* inOutEventRecord, short* inOutItemHit)
{
-//# #if (ZApp::sGet())
-//# #return ZApp::sGet()->ModalFilter(theDialog, theEventRecord, itemHit);
+//## if (ZApp::sGet())
+//## return ZApp::sGet()->ModalFilter(theDialog, theEventRecord, itemHit);
return false;
}
Modified: trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -76,7 +76,7 @@
"Vector",
"Type",
"Time",
-//# #"Name"
+//## "Name"
};
const char* ZTypeAsString(ZType iType)
@@ -1486,7 +1486,7 @@
case eZType_Rect: delete fData.fAs_Rect; break;
case eZType_String: sDtor_T<ValString>(fType.fBytes); break;
-//# #case eZType_Name: sDtor_T<ZTName>(fType.fBytes); break;
+//## case eZType_Name: sDtor_T<ZTName>(fType.fBytes); break;
case eZType_Tuple: sDtor_T<ZMap_ZooLib>(fType.fBytes); break;
case eZType_RefCounted:
{
Modified: trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h 2012-02-01 18:21:01 UTC (rev 2707)
@@ -82,7 +82,7 @@
eZType_Vector = 18,
eZType_Type = 19,
eZType_Time = 20,
-//# #eZType_Name = 21
+//## eZType_Name = 21
eZType_Max
};
Modified: trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -165,7 +165,7 @@
else if (typeValueLC == "id") oVal = eZType_ID;
else if (typeValueLC == "vector") oVal = eZType_Vector;
else if (typeValueLC == "type") oVal = eZType_Type;
-//# #else if (typeValueLC == "name") oVal = eZType_Name;
+//## else if (typeValueLC == "name") oVal = eZType_Name;
else
spThrowParseException("Unknown type name '" + typeValue + "'");
}
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -29,9 +29,6 @@
ZAny ZVal_Yad::AsAny() const
{ return this->pAsAny(); }
-//##ZVal_Yad::operator operator_bool() const
-//# #{ return operator_bool_gen::translate(fYad); }
-
ZVal_Yad::ZVal_Yad()
{}
Modified: trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.cpp 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.cpp 2012-02-01 18:21:01 UTC (rev 2707)
@@ -78,7 +78,7 @@
}
//##ZRef<ZYadSeqRPos> ZYadSeqRPos_ApplyID::Clone()
-//# #{ return new ZYadSeqRPos_ApplyID(fYadSeqRPos->Clone(), fIDName, fValName); }
+///## { return new ZYadSeqRPos_ApplyID(fYadSeqRPos->Clone(), fIDName, fValName); }
uint64 ZYadSeqRPos_ApplyID::GetPosition()
{ return fYadSeqRPos->GetPosition(); }
Modified: trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.h 2012-02-01 18:04:08 UTC (rev 2706)
+++ trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.h 2012-02-01 18:21:01 UTC (rev 2707)
@@ -62,7 +62,7 @@
virtual ZRef<ZYadR> ReadInc();
// From ZYadSeqRPos
-//# #virtual ZRef<ZYadSeqRPos> Clone();
+//## virtual ZRef<ZYadSeqRPos> Clone();
virtual uint64 GetPosition();
virtual void SetPosition(uint64 iPosition);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-02-01 18:04:19
|
Revision: 2706
http://zoolib.svn.sourceforge.net/zoolib/?rev=2706&view=rev
Author: agreen
Date: 2012-02-01 18:04:08 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
Make InPlace and Reffed entities more distinct in their names, both being
prefixed with Holder_ made them seem more alike than they are.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZAny.cpp
trunk/zoolib/source/cxx/zoolib/ZAny.h
Modified: trunk/zoolib/source/cxx/zoolib/ZAny.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAny.cpp 2012-02-01 16:47:16 UTC (rev 2705)
+++ trunk/zoolib/source/cxx/zoolib/ZAny.cpp 2012-02-01 18:04:08 UTC (rev 2706)
@@ -28,31 +28,29 @@
inline static const std::type_info* spPODTypeInfo(const void* iPtr)
{ return (const std::type_info*)(((intptr_t)iPtr) ^ 1); }
-inline ZAny::Holder_InPlace& ZAny::pAsInPlace()
- { return *sFetch_T<Holder_InPlace>(&fDistinguisher); }
+inline ZAny::InPlace& ZAny::pAsInPlace()
+ { return *sFetch_T<InPlace>(&fDistinguisher); }
-inline const ZAny::Holder_InPlace& ZAny::pAsInPlace() const
- { return *sFetch_T<Holder_InPlace>(&fDistinguisher); }
+inline const ZAny::InPlace& ZAny::pAsInPlace() const
+ { return *sFetch_T<InPlace>(&fDistinguisher); }
-inline ZRef<ZAny::Holder_Counted>& ZAny::pAsCounted()
- { return *sFetch_T<ZRef<Holder_Counted> >(&fPayload); }
+inline ZRef<ZAny::Reffed>& ZAny::pAsReffed()
+ { return *sFetch_T<ZRef<Reffed> >(&fPayload); }
-inline const ZRef<ZAny::Holder_Counted>& ZAny::pAsCounted() const
- { return *sFetch_T<ZRef<Holder_Counted> >(&fPayload); }
+inline const ZRef<ZAny::Reffed>& ZAny::pAsReffed() const
+ { return *sFetch_T<ZRef<Reffed> >(&fPayload); }
const std::type_info& ZAny::Type() const
{
- if (spIsPOD(fDistinguisher))
+ if (fDistinguisher)
{
- return *spPODTypeInfo(fDistinguisher);
- }
- else if (fDistinguisher)
- {
+ if (spIsPOD(fDistinguisher))
+ return *spPODTypeInfo(fDistinguisher);
return pAsInPlace().Type();
}
- else if (const ZRef<Holder_Counted>& theHolderRef = pAsCounted())
+ else if (const ZRef<Reffed>& theReffed = pAsReffed())
{
- return theHolderRef->Type();
+ return theReffed->Type();
}
else
{
@@ -62,19 +60,17 @@
void* ZAny::VoidStar()
{
- if (spIsPOD(fDistinguisher))
+ if (fDistinguisher)
{
- return &fPayload;
- }
- else if (fDistinguisher)
- {
+ if (spIsPOD(fDistinguisher))
+ return &fPayload;
return pAsInPlace().VoidStar();
}
- else if (ZRef<Holder_Counted>& theHolderRef = pAsCounted())
+ else if (ZRef<Reffed>& theReffed = pAsReffed())
{
- if (theHolderRef->IsShared())
- theHolderRef = theHolderRef->Clone();
- return theHolderRef->VoidStar();
+ if (theReffed->IsShared())
+ theReffed = theReffed->Clone();
+ return theReffed->VoidStar();
}
else
{
@@ -84,17 +80,15 @@
const void* ZAny::ConstVoidStar() const
{
- if (spIsPOD(fDistinguisher))
+ if (fDistinguisher)
{
- return &fPayload;
- }
- else if (fDistinguisher)
- {
+ if (spIsPOD(fDistinguisher))
+ return &fPayload;
return pAsInPlace().ConstVoidStar();
}
- else if (const ZRef<Holder_Counted>& theHolderRef = pAsCounted())
+ else if (const ZRef<Reffed>& theReffed = pAsReffed())
{
- return theHolderRef->VoidStar();
+ return theReffed->VoidStar();
}
else
{
@@ -113,7 +107,7 @@
}
else
{
- pAsCounted().swap(ioOther.pAsCounted());
+ pAsReffed().swap(ioOther.pAsReffed());
}
}
@@ -122,40 +116,40 @@
void ZAny::Clear()
{
- if (spIsPOD(fDistinguisher))
+ if (fDistinguisher)
{
+ if (not spIsPOD(fDistinguisher))
+ sDtor_T<InPlace>(&fDistinguisher);
fDistinguisher = 0;
}
- else if (fDistinguisher)
- {
- sDtor_T<Holder_InPlace>(&fDistinguisher);
- fDistinguisher = 0;
- }
else
{
- sDtor_T<ZRef<Holder_Counted> >(&fPayload);
+ sDtor_T<ZRef<Reffed> >(&fPayload);
}
fPayload.fAsPtr = 0;
}
void* ZAny::pGetMutable(const std::type_info& iTypeInfo)
{
- if (spIsPOD(fDistinguisher))
+ if (fDistinguisher)
{
- if (iTypeInfo == *spPODTypeInfo(fDistinguisher))
- return &fPayload;
+ if (spIsPOD(fDistinguisher))
+ {
+ if (iTypeInfo == *spPODTypeInfo(fDistinguisher))
+ return &fPayload;
+ }
+ else
+ {
+ return pAsInPlace().VoidStarIf(iTypeInfo);
+ }
}
- else if (fDistinguisher)
+ else if (ZRef<Reffed>& theReffed = pAsReffed())
{
- return pAsInPlace().VoidStarIf(iTypeInfo);
- }
- else if (ZRef<Holder_Counted>& theHolderRef = pAsCounted())
- {
- if (theHolderRef->Type() == iTypeInfo)
+ if (theReffed->Type() == iTypeInfo)
{
- if (theHolderRef->IsShared())
- theHolderRef = theHolderRef->Clone();
- return theHolderRef->VoidStar();
+ if (theReffed->IsShared())
+ theReffed = theReffed->Clone();
+ return theReffed->VoidStar();
}
}
@@ -164,24 +158,27 @@
const void* ZAny::pGet(const std::type_info& iTypeInfo) const
{
- if (spIsPOD(fDistinguisher))
+ if (fDistinguisher)
{
- if (iTypeInfo == *spPODTypeInfo(fDistinguisher))
- return &fPayload;
+ if (spIsPOD(fDistinguisher))
+ {
+ if (iTypeInfo == *spPODTypeInfo(fDistinguisher))
+ return &fPayload;
+ }
+ else
+ {
+ return pAsInPlace().ConstVoidStarIf(iTypeInfo);
+ }
}
- else if (fDistinguisher)
+ else if (const ZRef<Reffed>& theReffed = pAsReffed())
{
- return pAsInPlace().ConstVoidStarIf(iTypeInfo);
+ return theReffed->VoidStarIf(iTypeInfo);
}
- else if (const ZRef<Holder_Counted>& theHolderRef = pAsCounted())
- {
- return theHolderRef->VoidStarIf(iTypeInfo);
- }
return 0;
}
-void ZAny::pCtor_Complex(const ZAny& iOther)
+void ZAny::pCtor_NonPOD(const ZAny& iOther)
{
if (iOther.fDistinguisher)
{
@@ -190,16 +187,16 @@
else
{
fDistinguisher = 0;
- sCtor_T<ZRef<Holder_Counted> >(&fPayload, iOther.pAsCounted());
+ sCtor_T<ZRef<Reffed> >(&fPayload, iOther.pAsReffed());
}
}
-void ZAny::pDtor_Complex()
+void ZAny::pDtor_NonPOD()
{
if (fDistinguisher)
- sDtor_T<Holder_InPlace>(&fDistinguisher);
+ sDtor_T<InPlace>(&fDistinguisher);
else
- sDtor_T<ZRef<Holder_Counted> >(&fPayload);
+ sDtor_T<ZRef<Reffed> >(&fPayload);
}
} // namespace ZooLib
Modified: trunk/zoolib/source/cxx/zoolib/ZAny.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-02-01 16:47:16 UTC (rev 2705)
+++ trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-02-01 18:04:08 UTC (rev 2706)
@@ -155,10 +155,10 @@
private:
// -----------------
- class Holder_InPlace
+ class InPlace
{
public:
- virtual ~Holder_InPlace() {}
+ virtual ~InPlace() {}
virtual void CtorInto(void* iOther) const = 0;
@@ -174,18 +174,18 @@
// -----------------
template<typename S>
- class Holder_InPlace_T : public Holder_InPlace
+ class InPlace_T : public InPlace
{
public:
- Holder_InPlace_T() {}
+ InPlace_T() {}
template <class P0>
- Holder_InPlace_T(const P0& iP0) : fValue(iP0) {}
+ InPlace_T(const P0& iP0) : fValue(iP0) {}
template <class P0, class P1>
- Holder_InPlace_T(const P0& iP0, const P1& iP1) : fValue(iP0, iP1) {}
+ InPlace_T(const P0& iP0, const P1& iP1) : fValue(iP0, iP1) {}
- virtual void CtorInto(void* iOther) const { sCtor_T<Holder_InPlace_T>(iOther, fValue); }
+ virtual void CtorInto(void* iOther) const { sCtor_T<InPlace_T>(iOther, fValue); }
virtual const std::type_info& Type() const { return typeid(S); }
@@ -210,11 +210,11 @@
// -----------------
- class Holder_Counted : public ZCountedWithoutFinalize
+ class Reffed : public ZCountedWithoutFinalize
{
public:
virtual const std::type_info& Type() const = 0;
- virtual Holder_Counted* Clone() const = 0;
+ virtual Reffed* Clone() const = 0;
virtual void* VoidStar() = 0;
virtual void* VoidStarIf(const std::type_info& iTI) = 0;
};
@@ -222,19 +222,19 @@
// -----------------
template<typename S>
- class Holder_Counted_T : public Holder_Counted
+ class Reffed_T : public Reffed
{
public:
- Holder_Counted_T() {}
+ Reffed_T() {}
template <class P0>
- Holder_Counted_T(const P0& iP0) : fValue(iP0) {}
+ Reffed_T(const P0& iP0) : fValue(iP0) {}
template <class P0, class P1>
- Holder_Counted_T(const P0& iP0, const P1& iP1) : fValue(iP0, iP1) {}
+ Reffed_T(const P0& iP0, const P1& iP1) : fValue(iP0, iP1) {}
virtual const std::type_info& Type() const { return typeid(S); }
- virtual Holder_Counted* Clone() const { return new Holder_Counted_T(fValue); }
+ virtual Reffed* Clone() const { return new Reffed_T(fValue); }
virtual void* VoidStar() { return &fValue; }
virtual void* VoidStarIf(const std::type_info& iTI)
{
@@ -248,11 +248,11 @@
// -----------------
- Holder_InPlace& pAsInPlace();
- const Holder_InPlace& pAsInPlace() const;
+ InPlace& pAsInPlace();
+ const InPlace& pAsInPlace() const;
- ZRef<Holder_Counted>& pAsCounted();
- const ZRef<Holder_Counted>& pAsCounted() const;
+ ZRef<Reffed>& pAsReffed();
+ const ZRef<Reffed>& pAsReffed() const;
// -----------------
@@ -260,10 +260,10 @@
const void* pGet(const std::type_info& iTypeInfo) const;
void pCtor(const ZAny& iOther);
- void pCtor_Complex(const ZAny& iOther);
+ void pCtor_NonPOD(const ZAny& iOther);
void pDtor();
- void pDtor_Complex();
+ void pDtor_NonPOD();
static bool spIsPOD(const void* iPtr);
@@ -274,12 +274,12 @@
{
if (ZAnyTraits<S>::eAllowInPlace && sizeof(S) <= sizeof(fPayload))
{
- sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher, iP0, iP1);
+ sCtor_T<InPlace_T<S> >(&fDistinguisher, iP0, iP1);
}
else
{
fDistinguisher = 0;
- sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0, iP1));
+ sCtor_T<ZRef<Reffed> >(&fPayload, new Reffed_T<S>(iP0, iP1));
}
}
@@ -287,7 +287,7 @@
void pCtor_Counted_T(const P0& iP0, const P1& iP1)
{
fDistinguisher = 0;
- sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0, iP1));
+ sCtor_T<ZRef<Reffed> >(&fPayload, new Reffed_T<S>(iP0, iP1));
}
template <class S, class P0>
@@ -306,13 +306,13 @@
#endif
else
{
- sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher, iP0);
+ sCtor_T<InPlace_T<S> >(&fDistinguisher, iP0);
}
}
else
{
fDistinguisher = 0;
- sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0));
+ sCtor_T<ZRef<Reffed> >(&fPayload, new Reffed_T<S>(iP0));
}
}
@@ -320,7 +320,7 @@
void pCtor_Counted_T(const P0& iP0)
{
fDistinguisher = 0;
- sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0));
+ sCtor_T<ZRef<Reffed> >(&fPayload, new Reffed_T<S>(iP0));
}
// -----------------
@@ -341,15 +341,15 @@
#endif
else
{
- return sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher, iP0)->fValue;
+ return sCtor_T<InPlace_T<S> >(&fDistinguisher, iP0)->fValue;
}
}
else
{
fDistinguisher = 0;
- Holder_Counted_T<S>* theHolder = new Holder_Counted_T<S>(iP0);
- sCtor_T<ZRef<Holder_Counted> >(&fPayload, theHolder);
- return theHolder->fValue;
+ Reffed_T<S>* theReffed = new Reffed_T<S>(iP0);
+ sCtor_T<ZRef<Reffed> >(&fPayload, theReffed);
+ return theReffed->fValue;
}
}
@@ -369,32 +369,33 @@
#endif
else
{
- return sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher)->fValue;
+ return sCtor_T<InPlace_T<S> >(&fDistinguisher)->fValue;
}
}
else
{
fDistinguisher = 0;
- Holder_Counted_T<S>* theHolder = new Holder_Counted_T<S>;
- sCtor_T<ZRef<Holder_Counted> >(&fPayload, theHolder);
- return theHolder->fValue;
+ Reffed_T<S>* theReffed = new Reffed_T<S>;
+ sCtor_T<ZRef<Reffed> >(&fPayload, theReffed);
+ return theReffed->fValue;
}
}
// -----------------
// There are three situations, distinguished by the value in fDistinguisher.
- // 1. It's null. fPayload.fAsPtr points to an instance of a Holder_Counted subclass. If
- // fPayload.fAsPtr is also null then this is itself a null object.
+ // 1. It's null. fPayload.fAsPtr points to an instance of a Reffed subclass. If
+ // fPayload.fAsPtr is also null then the ZAny is itself a null object.
// 2. LSB is set. With an unset LSB it points to a typeid, and fPayload holds a POD value.
- // 3. LSB is unset. It's the vptr of a Holder_InPlace, the fields of the object itself
+ // 3. LSB is unset. It's the vptr of an InPlace, the fields of the object itself
// spilling over into fPayload.
void* fDistinguisher;
union
{
- // This union provides space for a refcounted pointer to a Holder_Counted, space
+ // This union provides space for a refcounted pointer to a Reffed, space
// for the most common in-place values, and makes some values legible in a debugger.
+ // It has it's own name so that sizeof has something on which to operate.
void* fAsPtr;
bool fAsBool;
@@ -423,14 +424,14 @@
}
else
{
- pCtor_Complex(iOther);
+ pCtor_NonPOD(iOther);
}
}
inline void ZAny::pDtor()
{
if (not spIsPOD(fDistinguisher))
- pDtor_Complex();
+ pDtor_NonPOD();
}
// =================================================================================================
@@ -450,7 +451,7 @@
inline ZAny& ZAny::operator=(const ZAny& iOther)
{
- if (this != & iOther)
+ if (this != &iOther)
{
pDtor();
pCtor(iOther);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-02-01 16:47:27
|
Revision: 2705
http://zoolib.svn.sourceforge.net/zoolib/?rev=2705&view=rev
Author: agreen
Date: 2012-02-01 16:47:16 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
ZRef.h no longer relies on ZCompat_operator_bool.h.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZTextCollator.h
Modified: trunk/zoolib/source/cxx/zoolib/ZTextCollator.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZTextCollator.h 2012-02-01 00:10:19 UTC (rev 2704)
+++ trunk/zoolib/source/cxx/zoolib/ZTextCollator.h 2012-02-01 16:47:16 UTC (rev 2705)
@@ -22,6 +22,7 @@
#define __ZTextCollator_h__ 1
#include "zconfig.h"
+#include "zoolib/ZCompat_operator_bool.h"
#include "zoolib/ZCountedWithoutFinalize.h"
#include "zoolib/ZRef.h"
#include "zoolib/ZUnicodeString.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-02-01 00:10:32
|
Revision: 2704
http://zoolib.svn.sourceforge.net/zoolib/?rev=2704&view=rev
Author: agreen
Date: 2012-02-01 00:10:19 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
Switch away from the #\t approach.
Modified Paths:
--------------
trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_BBDevMgr.h
trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp
trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp
trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.h
trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp
trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_IFF.cpp
trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_QuickTime.cpp
trunk/zoolib/source/cxx/more/zoolib/netscape/ZCompat_npapi.h
trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_API.h
trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestEntry.cpp
trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp
trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp
trunk/zoolib/source/cxx/old/zoolib/ZDCInk.cpp
trunk/zoolib/source/cxx/old/zoolib/ZDCPixmap_Asset_BMP.cpp
trunk/zoolib/source/cxx/old/zoolib/ZDCPoly.cpp
trunk/zoolib/source/cxx/old/zoolib/ZDC_GDI.h
trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.cpp
trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.h
trunk/zoolib/source/cxx/old/zoolib/ZDC_X.h
trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h
trunk/zoolib/source/cxx/old/zoolib/ZUtil_Asset.cpp
trunk/zoolib/source/cxx/old/zoolib/ZUtil_Graphics.cpp
trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp
trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_LL.cpp
trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp
trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h
trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp
trunk/zoolib/source/cxx/zoolib/ZAtomic.cpp
trunk/zoolib/source/cxx/zoolib/ZAtomic.h
trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.cpp
trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.h
trunk/zoolib/source/cxx/zoolib/ZByteSwap.cpp
trunk/zoolib/source/cxx/zoolib/ZByteSwap.h
trunk/zoolib/source/cxx/zoolib/ZCONFIG_SPI.h
trunk/zoolib/source/cxx/zoolib/ZCaller_CFRunLoop.h
trunk/zoolib/source/cxx/zoolib/ZCompare_T.h
trunk/zoolib/source/cxx/zoolib/ZCompat_Win.h
trunk/zoolib/source/cxx/zoolib/ZCompat_Xlib.h
trunk/zoolib/source/cxx/zoolib/ZCompat_algorithm.h
trunk/zoolib/source/cxx/zoolib/ZCompat_string.h
trunk/zoolib/source/cxx/zoolib/ZDCFont.cpp
trunk/zoolib/source/cxx/zoolib/ZDCFont.h
trunk/zoolib/source/cxx/zoolib/ZDCPixmapBlit.cpp
trunk/zoolib/source/cxx/zoolib/ZDCPixmapCoder_BMP.cpp
trunk/zoolib/source/cxx/zoolib/ZDebug.cpp
trunk/zoolib/source/cxx/zoolib/ZDebug.h
trunk/zoolib/source/cxx/zoolib/ZFile_POSIX.cpp
trunk/zoolib/source/cxx/zoolib/ZFile_POSIX.h
trunk/zoolib/source/cxx/zoolib/ZFile_Win.h
trunk/zoolib/source/cxx/zoolib/ZGRgnRep_HRGN.h
trunk/zoolib/source/cxx/zoolib/ZGRgnRep_RgnHandle.h
trunk/zoolib/source/cxx/zoolib/ZGRgnRep_XRegion.h
trunk/zoolib/source/cxx/zoolib/ZGeom.h
trunk/zoolib/source/cxx/zoolib/ZMACRO_typeof.h
trunk/zoolib/source/cxx/zoolib/ZMacCFM.h
trunk/zoolib/source/cxx/zoolib/ZMacOSX.cpp
trunk/zoolib/source/cxx/zoolib/ZMain.cpp
trunk/zoolib/source/cxx/zoolib/ZNetDNSSD.h
trunk/zoolib/source/cxx/zoolib/ZNet_Internet_MacOT_OSX.cpp
trunk/zoolib/source/cxx/zoolib/ZNet_Internet_MacOT_OSX.h
trunk/zoolib/source/cxx/zoolib/ZNet_Internet_Socket.h
trunk/zoolib/source/cxx/zoolib/ZNet_Internet_WinSock.h
trunk/zoolib/source/cxx/zoolib/ZNet_Local_Socket.h
trunk/zoolib/source/cxx/zoolib/ZNet_Local_Win.h
trunk/zoolib/source/cxx/zoolib/ZNet_RFCOMM_OSX.h
trunk/zoolib/source/cxx/zoolib/ZNet_Socket.cpp
trunk/zoolib/source/cxx/zoolib/ZNet_Socket.h
trunk/zoolib/source/cxx/zoolib/ZRGBA.h
trunk/zoolib/source/cxx/zoolib/ZRef.h
trunk/zoolib/source/cxx/zoolib/ZStackCrawl.h
trunk/zoolib/source/cxx/zoolib/ZStream.cpp
trunk/zoolib/source/cxx/zoolib/ZStream_MD5.h
trunk/zoolib/source/cxx/zoolib/ZStream_POSIX.cpp
trunk/zoolib/source/cxx/zoolib/ZStream_SHA1.cpp
trunk/zoolib/source/cxx/zoolib/ZStream_SHA1.h
trunk/zoolib/source/cxx/zoolib/ZStream_ZLib.h
trunk/zoolib/source/cxx/zoolib/ZStream_bzip2.h
trunk/zoolib/source/cxx/zoolib/ZString.cpp
trunk/zoolib/source/cxx/zoolib/ZTextCoder_ICU.h
trunk/zoolib/source/cxx/zoolib/ZTextCoder_Mac.h
trunk/zoolib/source/cxx/zoolib/ZTextCoder_Win.h
trunk/zoolib/source/cxx/zoolib/ZTextCoder_iconv.h
trunk/zoolib/source/cxx/zoolib/ZTextCollator_ICU.cpp
trunk/zoolib/source/cxx/zoolib/ZTextCollator_ICU.h
trunk/zoolib/source/cxx/zoolib/ZThread_MacMP.h
trunk/zoolib/source/cxx/zoolib/ZThread_Win.h
trunk/zoolib/source/cxx/zoolib/ZThread_boost.h
trunk/zoolib/source/cxx/zoolib/ZThread_pthread.h
trunk/zoolib/source/cxx/zoolib/ZTime.cpp
trunk/zoolib/source/cxx/zoolib/ZUSB_OSX.h
trunk/zoolib/source/cxx/zoolib/ZUnicode.cpp
trunk/zoolib/source/cxx/zoolib/ZUtil_ATSUI.h
trunk/zoolib/source/cxx/zoolib/ZUtil_AppleEvent.h
trunk/zoolib/source/cxx/zoolib/ZUtil_Debug.cpp
trunk/zoolib/source/cxx/zoolib/ZUtil_POSIXFD.cpp
trunk/zoolib/source/cxx/zoolib/ZUtil_Time.cpp
trunk/zoolib/source/cxx/zoolib/ZUtil_string.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_AppleEvent.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp
trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.cpp
trunk/zoolib/source/cxx/zoolib/ZYadSeq_ApplyID.h
trunk/zoolib/source/cxx/zoolib/zconfigl.h
Modified: trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_BBDevMgr.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_BBDevMgr.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_BBDevMgr.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -25,11 +25,11 @@
#include "zoolib/ZCONFIG_SPI.h"
#ifndef ZCONFIG_API_Avail__BlackBerry_BBDevMgr
-# define ZCONFIG_API_Avail__BlackBerry_BBDevMgr ZCONFIG_SPI_Enabled(Win)
+ #define ZCONFIG_API_Avail__BlackBerry_BBDevMgr ZCONFIG_SPI_Enabled(Win)
#endif
#ifndef ZCONFIG_API_Desired__BlackBerry_BBDevMgr
-# define ZCONFIG_API_Desired__BlackBerry_BBDevMgr 1
+ #define ZCONFIG_API_Desired__BlackBerry_BBDevMgr 1
#endif
#include "zoolib/blackberry/ZBlackBerry.h"
Modified: trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_Client.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -275,7 +275,7 @@
ZAssert(!req);
fOpen = false;
-//## ZStreamerWriter::Wake();
+//# #ZStreamerWriter::Wake();
return false;
}
@@ -306,7 +306,7 @@
void Device_Client::Stop()
{
fOpen = false;
-//## ZStreamerWriter::Wake();
+//# #ZStreamerWriter::Wake();
}
// =================================================================================================
@@ -347,7 +347,7 @@
fSendClose = true;
this->WakeWrite();
-//## ZCommer::ReadFinished();
+//# #ZCommer::ReadFinished();
}
bool Manager_Client::Commer_Changed::Read(const ZStreamR& r)
Modified: trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -367,8 +367,8 @@
// Watcher fired, but could not create a USBDevice.
if (ZLOG(s, eNotice, "ZBlackBerry::Manager_OSXUSB"))
s << "Added, invoked with null device, PocketMac drivers installed?";
-//## if (fPocketMacDriverInstalled)
-//## fObserver->AddFailed();
+//# #if (fPocketMacDriverInstalled)
+//# #fObserver->AddFailed();
return;
}
Modified: trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/blackberry/ZBlackBerry_OSXUSB.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -27,17 +27,17 @@
#include "zoolib/ZUSB_OSX.h"
#ifndef ZCONFIG_API_Avail__BlackBerry_OSXUSB
-# if ZCONFIG_API_Enabled(USB_OSX)
-# define ZCONFIG_API_Avail__BlackBerry_OSXUSB 1
-# endif
+ #if ZCONFIG_API_Enabled(USB_OSX)
+ #define ZCONFIG_API_Avail__BlackBerry_OSXUSB 1
+ #endif
#endif
#ifndef ZCONFIG_API_Avail__BlackBerry_OSXUSB
-# define ZCONFIG_API_Avail__BlackBerry_OSXUSB 0
+ #define ZCONFIG_API_Avail__BlackBerry_OSXUSB 0
#endif
#ifndef ZCONFIG_API_Desired__BlackBerry_OSXUSB
-# define ZCONFIG_API_Desired__BlackBerry_OSXUSB 1
+ #define ZCONFIG_API_Desired__BlackBerry_OSXUSB 1
#endif
#include "zoolib/blackberry/ZBlackBerry.h"
Modified: trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_DatonSet.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -278,7 +278,7 @@
s << "\nDatonSet Raw:\n" << iAdded->GetRel();
ZRef<ZRA::Expr_Rel> theRel = iAdded->GetRel();
-//## theRel = ZQE::sTransform_Search(theRel);
+//# #theRel = ZQE::sTransform_Search(theRel);
if (ZLOGPF(s, eDebug + 1))
s << "\nDatonSet Cooked:\n" << theRel;
Modified: trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_IFF.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_IFF.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_IFF.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -25,7 +25,7 @@
#include <string.h> // For strlen
#ifndef kDebug_IFF
-# define kDebug_IFF 1
+ #define kDebug_IFF 1
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_QuickTime.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_QuickTime.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/fileformat/ZFileFormat_QuickTime.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -25,7 +25,7 @@
#include <string.h> // For strlen
#ifndef kDebug_QTFile
-# define kDebug_QTFile 1
+ #define kDebug_QTFile 1
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/more/zoolib/netscape/ZCompat_npapi.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/netscape/ZCompat_npapi.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/netscape/ZCompat_npapi.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -40,7 +40,7 @@
#endif
#ifndef ZCONFIG_NPStringUpperCaseFieldNames
- # define ZCONFIG_NPStringUpperCaseFieldNames 1
+ #define ZCONFIG_NPStringUpperCaseFieldNames 1
#endif
#define NPEventType_GetFocusEvent getFocusEvent
@@ -54,26 +54,26 @@
#endif
#if defined(_NPFUNCTIONS_H_)
-# define ZCONFIG_NPAPI_WebKit_10_4 1
+ #define ZCONFIG_NPAPI_WebKit_10_4 1
#elif defined(NPFUNCTIONS_H)
-# if defined(EXPORTED_CALLBACK)
-# define ZCONFIG_NPAPI_WebKit_Recent 1
-# else
-# define ZCONFIG_NPAPI_WebKit_10_5 1
-# endif
+ #if defined(EXPORTED_CALLBACK)
+ #define ZCONFIG_NPAPI_WebKit_Recent 1
+ #else
+ #define ZCONFIG_NPAPI_WebKit_10_5 1
+ #endif
#elif defined(_NPUPP_H_)
-# if defined(_NPUPP_USE_UPP_)
-# define ZCONFIG_NPAPI_Mozilla_Old 1
-# else
-# define ZCONFIG_NPAPI_Mozilla_New 1
-# endif
+ #if defined(_NPUPP_USE_UPP_)
+ #define ZCONFIG_NPAPI_Mozilla_Old 1
+ #else
+ #define ZCONFIG_NPAPI_Mozilla_New 1
+ #endif
#endif
// =================================================================================================
// Fixup the NPString field name change
#ifndef ZCONFIG_NPStringUpperCaseFieldNames
-# define ZCONFIG_NPStringUpperCaseFieldNames 0
+ #define ZCONFIG_NPStringUpperCaseFieldNames 0
#endif
#if ZCONFIG_NPStringUpperCaseFieldNames
Modified: trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_API.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_API.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_API.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -58,19 +58,19 @@
#if ZCONFIG_SPI_Enabled(Win)
-# define XP_WIN 1
+ #define XP_WIN 1
#elif ZCONFIG_SPI_Enabled(Carbon64)
-# if __MACH__
-# define XP_MACOSX 1
-# else
-# define XP_MAC 1
-# endif
+ #if __MACH__
+ #define XP_MACOSX 1
+ #else
+ #define XP_MAC 1
+ #endif
#elif ZCONFIG_SPI_Enabled(X11)
-# define XP_UNIX 1
+ #define XP_UNIX 1
#endif
@@ -78,34 +78,34 @@
// MARK: - NP_NO_QUICKDRAW and NP_NO_CARBON
#if defined(XP_MACOSX) && __LP64__
-# define NP_NO_QUICKDRAW 1
-# define NP_NO_CARBON 1
+ #define NP_NO_QUICKDRAW 1
+ #define NP_NO_CARBON 1
#endif
// =================================================================================================
// MARK: - Mac headers
#if defined(XP_MACOSX)
-# include <ApplicationServices/ApplicationServices.h>
-# include <OpenGL/OpenGL.h>
+ #include <ApplicationServices/ApplicationServices.h>
+ #include <OpenGL/OpenGL.h>
#endif
#if defined(XP_MACOSX) || defined(XP_MAC)
-# include ZMACINCLUDE2(Carbon,Carbon.h)
+ #include ZMACINCLUDE2(Carbon,Carbon.h)
#endif
// =================================================================================================
// MARK: - Windows headers
#if defined(XP_WIN)
-# include "zoolib/ZCompat_Win.h"
+ #include "zoolib/ZCompat_Win.h"
#endif
// =================================================================================================
// MARK: - UNIX headers
#if defined(XP_UNIX)
-# include "zoolib/ZCompat_XLib.h"
+ #include "zoolib/ZCompat_XLib.h"
#endif
// =================================================================================================
@@ -119,9 +119,9 @@
#pragma mark "* Mac-specific, set structure alignment to be 68K"
#if ! __LP64__
-# if defined(XP_MAC) || defined(XP_MACOSX)
-# pragma options align=mac68k
-# endif
+ #if defined(XP_MAC) || defined(XP_MACOSX)
+ #pragma options align=mac68k
+ #endif
#endif
// =================================================================================================
@@ -903,15 +903,15 @@
// MARK: - Mac-specific, reset structure alignment
#if ! __LP64__
-# if defined(XP_MAC) || defined(XP_MACOSX)
-# pragma options align=reset
-# endif
+ #if defined(XP_MAC) || defined(XP_MACOSX)
+ #pragma options align=reset
+ #endif
#endif
#if defined(XP_WIN)
-# define ZNetscape_API_EXPORTED_CALLBACK(_type, _name) _type (__stdcall * _name)
+ #define ZNetscape_API_EXPORTED_CALLBACK(_type, _name) _type (__stdcall * _name)
#else
-# define ZNetscape_API_EXPORTED_CALLBACK(_type, _name) _type (* _name)
+ #define ZNetscape_API_EXPORTED_CALLBACK(_type, _name) _type (* _name)
#endif
Modified: trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestEntry.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestEntry.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestEntry.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -32,11 +32,11 @@
// =================================================================================================
#if defined(XP_WIN)
-# define EXPORT_DECL(ret) extern "C" __declspec(dllexport) ret __stdcall
-# define EXPORT_DEF(ret) ret __stdcall
+ #define EXPORT_DECL(ret) extern "C" __declspec(dllexport) ret __stdcall
+ #define EXPORT_DEF(ret) ret __stdcall
#else
-# define EXPORT_DECL(ret) extern "C" __attribute__((visibility("default"))) ret
-# define EXPORT_DEF(ret) ret
+ #define EXPORT_DECL(ret) extern "C" __attribute__((visibility("default"))) ret
+ #define EXPORT_DEF(ret) ret
#endif
#if !ZCONFIG(Processor, PPC) || !__MACH__
Modified: trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_FileRef.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -461,7 +461,7 @@
#elif defined(__PIWin__)
// Need to look at this again when we're doing 64 bit compiles.
-//## ZAssertCompile(ZIntTrait_T<sizeof(size_t)>::eIs32Bit);
+//# #ZAssertCompile(ZIntTrait_T<sizeof(size_t)>::eIs32Bit);
UseHandle useHandle(fHandle);
size_t handleSize = useHandle.Size();
Modified: trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/more/zoolib/photoshop/ZPhotoshop_Val.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -28,11 +28,11 @@
#include "PIUSuites.h"
#if ZCONFIG_SPI_Enabled(Carbon64)
-# if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
-# include ZMACINCLUDE3(ApplicationServices,AE,AEObjects.h)
-# else
-# include ZMACINCLUDE3(CoreServices,AE,AEObjects.h)
-# endif
+ #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
+ #include ZMACINCLUDE3(ApplicationServices,AE,AEObjects.h)
+ #else
+ #include ZMACINCLUDE3(CoreServices,AE,AEObjects.h)
+ #endif
#endif
#if ZCONFIG_SPI_Enabled(Win)
@@ -364,7 +364,7 @@
TypeID theType;
if (noErr != spPSActionList->GetType(iSource, x, &theType))
break;
-//## COPYFROMTO(spPSActionList, iSource, x, theType, theDest)
+//# #COPYFROMTO(spPSActionList, iSource, x, theType, theDest)
}
}
return theDest;
Modified: trunk/zoolib/source/cxx/old/zoolib/ZDCInk.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZDCInk.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZDCInk.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -54,20 +54,20 @@
#if ZCONFIG(Compiler, CodeWarrior)
// Enforce higher level of optimization for this code -- otherwise
// the funky switch stuff is all for naught.
-# pragma push
-# pragma optimization_level 4
-# pragma opt_common_subs on
-# pragma opt_lifetimes on
-# pragma peephole on
-# if ZCONFIG(Processor, x86)
-# pragma register_coloring on
-# endif
+ #pragma push
+ #pragma optimization_level 4
+ #pragma opt_common_subs on
+ #pragma opt_lifetimes on
+ #pragma peephole on
+ #if ZCONFIG(Processor, x86)
+ #pragma register_coloring on
+ #endif
#endif
#if ZCONFIG(Compiler, CodeWarrior) && (ZCONFIG(Processor, 68K) || ZCONFIG(Processor, x86))
-# define RotateLeft(a,b,c) __rol(a,b)
+ #define RotateLeft(a,b,c) __rol(a,b)
#else
-# define RotateLeft(value, distance, eightMinusDistance) \
+ #define RotateLeft(value, distance, eightMinusDistance) \
(((value) << (distance)) | ((value) >> (eightMinusDistance)))
#endif
@@ -153,7 +153,7 @@
}
#if ZCONFIG(Compiler, CodeWarrior)
-# pragma pop
+ #pragma pop
#endif
// =================================================================================================
Modified: trunk/zoolib/source/cxx/old/zoolib/ZDCPixmap_Asset_BMP.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZDCPixmap_Asset_BMP.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZDCPixmap_Asset_BMP.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -29,10 +29,10 @@
// From wingdi.h
#ifndef BI_RGB
-# define BI_RGB 0L
-# define BI_RLE8 1L
-# define BI_RLE4 2L
-# define BI_BITFIELDS 3L
+ #define BI_RGB 0L
+ #define BI_RLE8 1L
+ #define BI_RLE4 2L
+ #define BI_BITFIELDS 3L
#endif
// =================================================================================================
Modified: trunk/zoolib/source/cxx/old/zoolib/ZDCPoly.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZDCPoly.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZDCPoly.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -75,7 +75,7 @@
#include "zoolib/ZMemory.h" // For ZMemCopy
#if ZCONFIG_SPI_Enabled(QuickDraw)
-# include ZMACINCLUDE3(CoreServices,CarbonCore,MacMemory.h) // For HLock etc.
+ #include ZMACINCLUDE3(CoreServices,CarbonCore,MacMemory.h) // For HLock etc.
#endif
using ZooLib::ZCoord;
Modified: trunk/zoolib/source/cxx/old/zoolib/ZDC_GDI.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZDC_GDI.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZDC_GDI.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -25,11 +25,11 @@
#include "zoolib/ZCONFIG_SPI.h"
#ifndef ZCONFIG_API_Avail__DC_GDI
-# define ZCONFIG_API_Avail__DC_GDI ZCONFIG_SPI_Enabled(GDI)
+ #define ZCONFIG_API_Avail__DC_GDI ZCONFIG_SPI_Enabled(GDI)
#endif
#ifndef ZCONFIG_API_Desired__DC_GDI
-# define ZCONFIG_API_Desired__DC_GDI 1
+ #define ZCONFIG_API_Desired__DC_GDI 1
#endif
#include "zoolib/ZDC.h"
Modified: trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -38,14 +38,14 @@
// If we're using the old headers then MacLineTo won't be defined
#if !defined(TARGET_OS_MAC) || (TARGET_OS_MAC && !defined(MacLineTo))
-# define MacLineTo LineTo
-# define MacFrameRect FrameRect
-# define MacInvertRect InvertRect
-# define MacFrameRgn FrameRgn
-# define MacInvertRgn InvertRgn
-# define MacPaintRgn PaintRgn
-# define MacDrawText DrawText
-# define MacOffsetRgn OffsetRgn
+ #define MacLineTo LineTo
+ #define MacFrameRect FrameRect
+ #define MacInvertRect InvertRect
+ #define MacFrameRgn FrameRgn
+ #define MacInvertRgn InvertRgn
+ #define MacPaintRgn PaintRgn
+ #define MacDrawText DrawText
+ #define MacOffsetRgn OffsetRgn
#endif
#include ZMACINCLUDE3(CoreServices,CarbonCore,LowMem.h) // For LMSetHiliteMode
Modified: trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZDC_QD.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -25,11 +25,11 @@
#include "zoolib/ZCONFIG_SPI.h"
#ifndef ZCONFIG_API_Avail__DC_QD
-# define ZCONFIG_API_Avail__DC_QD ZCONFIG_SPI_Enabled(QuickDraw)
+ #define ZCONFIG_API_Avail__DC_QD ZCONFIG_SPI_Enabled(QuickDraw)
#endif
#ifndef ZCONFIG_API_Desired__DC_QD
-# define ZCONFIG_API_Desired__DC_QD 1
+ #define ZCONFIG_API_Desired__DC_QD 1
#endif
Modified: trunk/zoolib/source/cxx/old/zoolib/ZDC_X.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZDC_X.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZDC_X.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -25,11 +25,11 @@
#include "zoolib/ZCONFIG_SPI.h"
#ifndef ZCONFIG_API_Avail__DC_X
-# define ZCONFIG_API_Avail__DC_X ZCONFIG_SPI_Enabled(X11)
+ #define ZCONFIG_API_Avail__DC_X ZCONFIG_SPI_Enabled(X11)
#endif
#ifndef ZCONFIG_API_Desired__DC_X
-# define ZCONFIG_API_Desired__DC_X 1
+ #define ZCONFIG_API_Desired__DC_X 1
#endif
#include "zoolib/ZDC.h"
Modified: trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZNodeRep_Overlay.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -52,7 +52,7 @@
virtual ZRef<ZNodeRep> CreateDir(Error* oError);
virtual ZRef<ZNodeRep> MoveTo(ZRef<ZNodeRep> iDest, Error* oError);
-//## virtual ZRef<ZNodeRep> MoveFrom(ZRef<ZNodeRep> iSource, Error* oError);
+//# #virtual ZRef<ZNodeRep> MoveFrom(ZRef<ZNodeRep> iSource, Error* oError);
virtual bool Delete(Error* oError);
virtual ZRef<ZStreamerR> OpenR(bool iPreventWriters, Error* oError);
Modified: trunk/zoolib/source/cxx/old/zoolib/ZUtil_Asset.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZUtil_Asset.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZUtil_Asset.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -33,18 +33,18 @@
#include "zoolib/ZString.h" // For pascal string conversions
#if ZCONFIG_SPI_Enabled(POSIX)
-# include <sys/types.h> // For lseek
-# include <fcntl.h> // For open
-# include <unistd.h> // For lseek
+ #include <sys/types.h> // For lseek
+ #include <fcntl.h> // For open
+ #include <unistd.h> // For lseek
#endif
#if ZCONFIG_SPI_Enabled(Win)
-# include "zoolib/ZUnicode.h"
-# include "zoolib/ZUtil_Win.h"
+ #include "zoolib/ZUnicode.h"
+ #include "zoolib/ZUtil_Win.h"
#endif
#if ZCONFIG_SPI_Enabled(Carbon)
-# include ZMACINCLUDE3(CoreServices,CarbonCore,Resources.h)
+ #include ZMACINCLUDE3(CoreServices,CarbonCore,Resources.h)
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/old/zoolib/ZUtil_Graphics.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZUtil_Graphics.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZUtil_Graphics.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -28,8 +28,8 @@
#include "zoolib/ZDC_QD.h"
#if ZCONFIG_SPI_Enabled(MacClassic) || ZCONFIG_SPI_Enabled(Carbon)
-# include ZMACINCLUDE3(Carbon,HIToolbox,Drag.h) // For GetDragHiliteColor
-# include ZMACINCLUDE3(CoreServices,CarbonCore,LowMem.h) // For LMGetHiliteRGB
+ #include ZMACINCLUDE3(Carbon,HIToolbox,Drag.h) // For GetDragHiliteColor
+ #include ZMACINCLUDE3(CoreServices,CarbonCore,LowMem.h) // For LMGetHiliteRGB
#endif
using std::vector;
Modified: trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_HL.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -587,8 +587,8 @@
if (inColorPixmap)
sAddPixmapToIconFamily(inColorPixmap, eData8, theIconFamilyHandle);
-//## if (inColorPixmap)
-//## sAddPixmapToIconFamily(inColorPixmap, eData32, theIconFamilyHandle);
+//# #if (inColorPixmap)
+//# #sAddPixmapToIconFamily(inColorPixmap, eData32, theIconFamilyHandle);
if (inMonoPixmap)
sAddPixmapToIconFamily(inMonoPixmap, eData1, theIconFamilyHandle);
@@ -635,7 +635,7 @@
/* if (ZApp::sGet())
{
ZDCRgn theDCRgn;
-//## ZApp::sGet()->AppleEventIdleProc(theEventRecord, sleepTime, theDCRgn);
+//# #ZApp::sGet()->AppleEventIdleProc(theEventRecord, sleepTime, theDCRgn);
::MacCopyRgn(theDCRgn, *outMouseRgn);
}*/
return false;
@@ -671,8 +671,8 @@
static ModalFilterUPP sModalFilterUPP = NewModalFilterUPP(ZUtil_Mac_HL::sModalFilter);
pascal Boolean ZUtil_Mac_HL::sModalFilter(DialogPtr theDialog, EventRecord* inOutEventRecord, short* inOutItemHit)
{
-//## if (ZApp::sGet())
-//## return ZApp::sGet()->ModalFilter(theDialog, theEventRecord, itemHit);
+//# #if (ZApp::sGet())
+//# #return ZApp::sGet()->ModalFilter(theDialog, theEventRecord, itemHit);
return false;
}
Modified: trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_LL.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_LL.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZUtil_Mac_LL.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -30,7 +30,7 @@
#include <new> // for bad_alloc
#if ZCONFIG_SPI_Enabled(Carbon)
-# include ZMACINCLUDE3(CoreServices,CarbonCore,Resources.h)
+ #include ZMACINCLUDE3(CoreServices,CarbonCore,Resources.h)
#endif
using std::bad_alloc;
Modified: trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -76,7 +76,7 @@
"Vector",
"Type",
"Time",
-//## "Name"
+//# #"Name"
};
const char* ZTypeAsString(ZType iType)
@@ -1486,7 +1486,7 @@
case eZType_Rect: delete fData.fAs_Rect; break;
case eZType_String: sDtor_T<ValString>(fType.fBytes); break;
-//## case eZType_Name: sDtor_T<ZTName>(fType.fBytes); break;
+//# #case eZType_Name: sDtor_T<ZTName>(fType.fBytes); break;
case eZType_Tuple: sDtor_T<ZMap_ZooLib>(fType.fBytes); break;
case eZType_RefCounted:
{
Modified: trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZVal_ZooLib.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -36,7 +36,7 @@
#include <vector>
#ifndef ZCONFIG_Val_ZooLib_Packed
-# define ZCONFIG_Val_ZooLib_Packed 1
+ #define ZCONFIG_Val_ZooLib_Packed 1
#endif
namespace ZooLib {
@@ -82,7 +82,7 @@
eZType_Vector = 18,
eZType_Type = 19,
eZType_Time = 20,
-//## eZType_Name = 21
+//# #eZType_Name = 21
eZType_Max
};
@@ -95,7 +95,7 @@
// MARK: - ZVal_ZooLib
#if ZCONFIG_Val_ZooLib_Packed
-# pragma pack(4)
+ #pragma pack(4)
#endif
class ZVal_ZooLib
@@ -275,7 +275,7 @@
};
#if ZCONFIG_Val_ZooLib_Packed
-# pragma pack()
+ #pragma pack()
#endif
// =================================================================================================
Modified: trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp
===================================================================
--- trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/old/zoolib/ZYad_ZooLibStrim.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -165,7 +165,7 @@
else if (typeValueLC == "id") oVal = eZType_ID;
else if (typeValueLC == "vector") oVal = eZType_Vector;
else if (typeValueLC == "type") oVal = eZType_Type;
-//## else if (typeValueLC == "name") oVal = eZType_Name;
+//# #else if (typeValueLC == "name") oVal = eZType_Name;
else
spThrowParseException("Unknown type name '" + typeValue + "'");
}
Modified: trunk/zoolib/source/cxx/zoolib/ZAtomic.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAtomic.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZAtomic.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -31,9 +31,9 @@
#if ZCONFIG(Compiler, CodeWarrior) && ZCONFIG(Processor, PPC)
#if 0
-# define ZAtomic_PPC405_ERR77(rA,rB) dcbt rA , rB;
+ #define ZAtomic_PPC405_ERR77(rA,rB) dcbt rA , rB;
#else
-# define ZAtomic_PPC405_ERR77(rA,rB)
+ #define ZAtomic_PPC405_ERR77(rA,rB)
#endif
// We attach a register declarator to each parameter so that CW does not generate
@@ -340,7 +340,7 @@
// MARK: - A real CompareAndSwap must be defined by now
#if !defined(DEFINED_ZAtomic_CompareAndSwap)
-# error No CompareAndSwap available
+ #error No CompareAndSwap available
#endif
// =================================================================================================
Modified: trunk/zoolib/source/cxx/zoolib/ZAtomic.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAtomic.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZAtomic.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -111,9 +111,9 @@
can be enabled later if necessary. */
#if 0
-# define ZAtomic_PPC405_ERR77(rA,rB) "dcbt " #ra "," #rb "\n"
+ #define ZAtomic_PPC405_ERR77(rA,rB) "dcbt " #ra "," #rb "\n"
#else
-# define ZAtomic_PPC405_ERR77(rA,rB)
+ #define ZAtomic_PPC405_ERR77(rA,rB)
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -38,17 +38,17 @@
namespace ZooLib {
#ifndef kDebug_PhaseTreeFile
-# define kDebug_PhaseTreeFile 3
+ #define kDebug_PhaseTreeFile 3
#endif
#if ZCONFIG_Debug >= ZCONFIG_PhaseTree_Debug
-# define PT_INLINE
-# define ASSERT_LOCKED(a) ZAssertStop(0, a.IsLocked())
-# define ASSERT_UNLOCKED(a) ZAssertStop(0, !a.IsLocked())
+ #define PT_INLINE
+ #define ASSERT_LOCKED(a) ZAssertStop(0, a.IsLocked())
+ #define ASSERT_UNLOCKED(a) ZAssertStop(0, !a.IsLocked())
#else
-# define PT_INLINE inline
-# define ASSERT_LOCKED(a)
-# define ASSERT_UNLOCKED(a)
+ #define PT_INLINE inline
+ #define ASSERT_LOCKED(a)
+ #define ASSERT_UNLOCKED(a)
#endif
/**
Modified: trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZBlockStore_PhaseTree.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -30,7 +30,7 @@
#include <map>
#ifndef ZCONFIG_PhaseTree_Debug
-# define ZCONFIG_PhaseTree_Debug 3
+ #define ZCONFIG_PhaseTree_Debug 3
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/zoolib/ZByteSwap.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZByteSwap.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZByteSwap.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -23,14 +23,14 @@
// Switch off optimization for CodeWarrior -- it runs out of registers.
#if ZCONFIG(Compiler, CodeWarrior)
-# pragma push
-# pragma optimization_level 1
-# pragma opt_common_subs off
-# pragma opt_lifetimes off
-# pragma peephole off
-# if ZCONFIG(Processor, x86)
-# pragma register_coloring off
-# endif
+ #pragma push
+ #pragma optimization_level 1
+ #pragma opt_common_subs off
+ #pragma opt_lifetimes off
+ #pragma peephole off
+ #if ZCONFIG(Processor, x86)
+ #pragma register_coloring off
+ #endif
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/zoolib/ZByteSwap.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZByteSwap.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZByteSwap.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -536,11 +536,11 @@
#if !defined(ZByteSwap_EndianBig)
-# if ZCONFIG(Endian, Big)
-# define ZByteSwap_EndianBig 1
-# else
-# define ZByteSwap_EndianBig 0
-# endif
+ #if ZCONFIG(Endian, Big)
+ #define ZByteSwap_EndianBig 1
+ #else
+ #define ZByteSwap_EndianBig 0
+ #endif
inline uint16 ZByteSwap_16(uint16 iValue)
{ return (iValue >> 8) | (iValue << 8); }
Modified: trunk/zoolib/source/cxx/zoolib/ZCONFIG_SPI.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCONFIG_SPI.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZCONFIG_SPI.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -27,18 +27,18 @@
// Pick up Apple's config macros if they're available
#if __MACH__
-# include <AvailabilityMacros.h>
-# include <TargetConditionals.h>
+ #include <AvailabilityMacros.h>
+ #include <TargetConditionals.h>
-# if TARGET_IPHONE_SIMULATOR
-# define ZMACRO_IOS 1
-# define ZMACRO_IOS_Device 0
-# define ZMACRO_IOS_Simulator 1
-# elif TARGET_OS_IPHONE
-# define ZMACRO_IOS 1
-# define ZMACRO_IOS_Device 1
-# define ZMACRO_IOS_Simulator 0
-# endif
+ #if TARGET_IPHONE_SIMULATOR
+ #define ZMACRO_IOS 1
+ #define ZMACRO_IOS_Device 0
+ #define ZMACRO_IOS_Simulator 1
+ #elif TARGET_OS_IPHONE
+ #define ZMACRO_IOS 1
+ #define ZMACRO_IOS_Device 1
+ #define ZMACRO_IOS_Simulator 0
+ #endif
#endif
@@ -51,240 +51,240 @@
// =================================================================================================
#pragma mark AppleEvent
#ifndef ZCONFIG_SPI_Avail__AppleEvent
-# define ZCONFIG_SPI_Avail__AppleEvent \
+ #define ZCONFIG_SPI_Avail__AppleEvent \
(ZCONFIG_SPI_Avail__Carbon64 && ZCONFIG_SPI_Desired__Carbon64)
#endif
#ifndef ZCONFIG_SPI_Desired__AppleEvent
-# define ZCONFIG_SPI_Desired__AppleEvent 1
+ #define ZCONFIG_SPI_Desired__AppleEvent 1
#endif
// =================================================================================================
#pragma mark BeOS
#ifndef ZCONFIG_SPI_Avail__BeOS
-# define ZCONFIG_SPI_Avail__BeOS 0
+ #define ZCONFIG_SPI_Avail__BeOS 0
#endif
#ifndef ZCONFIG_SPI_Desired__BeOS
-# define ZCONFIG_SPI_Desired__BeOS 1
+ #define ZCONFIG_SPI_Desired__BeOS 1
#endif
// =================================================================================================
#pragma mark BerkeleyDB
#ifndef ZCONFIG_SPI_Avail__BerkeleyDB
-# define ZCONFIG_SPI_Avail__BerkeleyDB (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
+ #define ZCONFIG_SPI_Avail__BerkeleyDB (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
#endif
#ifndef ZCONFIG_SPI_Avail__BerkeleyDB
-# define ZCONFIG_SPI_Avail__BerkeleyDB 0
+ #define ZCONFIG_SPI_Avail__BerkeleyDB 0
#endif
#ifndef ZCONFIG_SPI_Desired__BerkeleyDB
-# define ZCONFIG_SPI_Desired__BerkeleyDB 1
+ #define ZCONFIG_SPI_Desired__BerkeleyDB 1
#endif
// =================================================================================================
#pragma mark boost
#ifndef ZCONFIG_SPI_Avail__boost
-# define ZCONFIG_SPI_Avail__boost 0
+ #define ZCONFIG_SPI_Avail__boost 0
#endif
#ifndef ZCONFIG_SPI_Desired__boost
-# define ZCONFIG_SPI_Desired__boost 1
+ #define ZCONFIG_SPI_Desired__boost 1
#endif
// =================================================================================================
#pragma mark BSD
#ifndef ZCONFIG_SPI_Avail__BSD
-# if defined(__APPLE__) \
+ #if defined(__APPLE__) \
|| defined(__NetBSD__) \
|| defined(__FreeBSD__) \
|| defined(__OpenBSD__)
-# define ZCONFIG_SPI_Avail__BSD 1
-# endif
+ #define ZCONFIG_SPI_Avail__BSD 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__BSD
-# define ZCONFIG_SPI_Avail__BSD 0
+ #define ZCONFIG_SPI_Avail__BSD 0
#endif
#ifndef ZCONFIG_SPI_Desired__BSD
-# define ZCONFIG_SPI_Desired__BSD 1
+ #define ZCONFIG_SPI_Desired__BSD 1
#endif
// =================================================================================================
#pragma mark bzip2
#ifndef ZCONFIG_SPI_Avail__bzip2
-# define ZCONFIG_SPI_Avail__bzip2 0
+ #define ZCONFIG_SPI_Avail__bzip2 0
#endif
#ifndef ZCONFIG_SPI_Desired__bzip2
-# define ZCONFIG_SPI_Desired__bzip2 1
+ #define ZCONFIG_SPI_Desired__bzip2 1
#endif
// =================================================================================================
#pragma mark Carbon
#ifndef ZCONFIG_SPI_Avail__Carbon
-# if __MACH__
-# if ! ZMACRO_IOS && ! __LP64__
-# define ZCONFIG_SPI_Avail__Carbon 1
-# endif
-# elif macintosh
-# if TARGET_API_MAC_CARBON
-# define ZCONFIG_SPI_Avail__Carbon 1
-# elif TARGET_CARBON
-# define ZCONFIG_SPI_Avail__Carbon 1
-# endif
-# endif
+ #if __MACH__
+ #if ! ZMACRO_IOS && ! __LP64__
+ #define ZCONFIG_SPI_Avail__Carbon 1
+ #endif
+ #elif macintosh
+ #if TARGET_API_MAC_CARBON
+ #define ZCONFIG_SPI_Avail__Carbon 1
+ #elif TARGET_CARBON
+ #define ZCONFIG_SPI_Avail__Carbon 1
+ #endif
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__Carbon
-# define ZCONFIG_SPI_Avail__Carbon 0
+ #define ZCONFIG_SPI_Avail__Carbon 0
#endif
#ifndef ZCONFIG_SPI_Desired__Carbon
-# define ZCONFIG_SPI_Desired__Carbon 1
+ #define ZCONFIG_SPI_Desired__Carbon 1
#endif
// =================================================================================================
#pragma mark Carbon64
#ifndef ZCONFIG_SPI_Avail__Carbon64
-# if ZCONFIG_SPI_Avail__Carbon
-# define ZCONFIG_SPI_Avail__Carbon64 1
-# elif __MACH__
-# if ! ZMACRO_IOS
-# define ZCONFIG_SPI_Avail__Carbon64 1
-# endif
-# endif
+ #if ZCONFIG_SPI_Avail__Carbon
+ #define ZCONFIG_SPI_Avail__Carbon64 1
+ #elif __MACH__
+ #if ! ZMACRO_IOS
+ #define ZCONFIG_SPI_Avail__Carbon64 1
+ #endif
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__Carbon64
-# define ZCONFIG_SPI_Avail__Carbon64 0
+ #define ZCONFIG_SPI_Avail__Carbon64 0
#endif
#ifndef ZCONFIG_SPI_Desired__Carbon64
-# define ZCONFIG_SPI_Desired__Carbon64 1
+ #define ZCONFIG_SPI_Desired__Carbon64 1
#endif
// =================================================================================================
#pragma mark CFType
#ifndef ZCONFIG_SPI_Avail__CFType
-# if __MACH__
-# define ZCONFIG_SPI_Avail__CFType 1
-# elif ZCONFIG_SPI_Avail__Carbon64
-# define ZCONFIG_SPI_Avail__CFType 1
-# endif
+ #if __MACH__
+ #define ZCONFIG_SPI_Avail__CFType 1
+ #elif ZCONFIG_SPI_Avail__Carbon64
+ #define ZCONFIG_SPI_Avail__CFType 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__CFType
-# define ZCONFIG_SPI_Avail__CFType 0
+ #define ZCONFIG_SPI_Avail__CFType 0
#endif
#ifndef ZCONFIG_SPI_Desired__CFType
-# define ZCONFIG_SPI_Desired__CFType 1
+ #define ZCONFIG_SPI_Desired__CFType 1
#endif
// =================================================================================================
#pragma mark Cocoa
#ifndef ZCONFIG_SPI_Avail__Cocoa
-# if __MACH__
-# define ZCONFIG_SPI_Avail__Cocoa 1
-# elif __COCOTRON__
-# define ZCONFIG_SPI_Avail__Cocoa 1
-# endif
+ #if __MACH__
+ #define ZCONFIG_SPI_Avail__Cocoa 1
+ #elif __COCOTRON__
+ #define ZCONFIG_SPI_Avail__Cocoa 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__Cocoa
-# define ZCONFIG_SPI_Avail__Cocoa 0
+ #define ZCONFIG_SPI_Avail__Cocoa 0
#endif
#ifndef ZCONFIG_SPI_Desired__Cocoa
-# define ZCONFIG_SPI_Desired__Cocoa 1
+ #define ZCONFIG_SPI_Desired__Cocoa 1
#endif
// =================================================================================================
#pragma mark CocoaFoundation
#ifndef ZCONFIG_SPI_Avail__CocoaFoundation
-# if __MACH__
-# define ZCONFIG_SPI_Avail__CocoaFoundation 1
-# elif __COCOTRON__
-# define ZCONFIG_SPI_Avail__CocoaFoundation 1
-# endif
+ #if __MACH__
+ #define ZCONFIG_SPI_Avail__CocoaFoundation 1
+ #elif __COCOTRON__
+ #define ZCONFIG_SPI_Avail__CocoaFoundation 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__CocoaFoundation
-# define ZCONFIG_SPI_Avail__CocoaFoundation 0
+ #define ZCONFIG_SPI_Avail__CocoaFoundation 0
#endif
#ifndef ZCONFIG_SPI_Desired__CocoaFoundation
-# define ZCONFIG_SPI_Desired__CocoaFoundation 1
+ #define ZCONFIG_SPI_Desired__CocoaFoundation 1
#endif
// =================================================================================================
#pragma mark CocoaAppKit
#ifndef ZCONFIG_SPI_Avail__CocoaAppKit
-# if __MACH__
-# define ZCONFIG_SPI_Avail__CocoaAppKit (!ZMACRO_IOS)
-# elif __COCOTRON__
-# define ZCONFIG_SPI_Avail__CocoaAppKit 1
-# endif
+ #if __MACH__
+ #define ZCONFIG_SPI_Avail__CocoaAppKit (!ZMACRO_IOS)
+ #elif __COCOTRON__
+ #define ZCONFIG_SPI_Avail__CocoaAppKit 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__CocoaAppKit
-# define ZCONFIG_SPI_Avail__CocoaAppKit 0
+ #define ZCONFIG_SPI_Avail__CocoaAppKit 0
#endif
#ifndef ZCONFIG_SPI_Desired__CocoaAppKit
-# define ZCONFIG_SPI_Desired__CocoaAppKit 1
+ #define ZCONFIG_SPI_Desired__CocoaAppKit 1
#endif
// =================================================================================================
#pragma mark CoreFoundation
#ifndef ZCONFIG_SPI_Avail__CoreFoundation
-# if __MACH__
-# define ZCONFIG_SPI_Avail__CoreFoundation 1
-# elif ZCONFIG_SPI_Avail__Carbon64
-# define ZCONFIG_SPI_Avail__CoreFoundation 1
-# endif
+ #if __MACH__
+ #define ZCONFIG_SPI_Avail__CoreFoundation 1
+ #elif ZCONFIG_SPI_Avail__Carbon64
+ #define ZCONFIG_SPI_Avail__CoreFoundation 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__CoreFoundation
-# define ZCONFIG_SPI_Avail__CoreFoundation 0
+ #define ZCONFIG_SPI_Avail__CoreFoundation 0
#endif
#ifndef ZCONFIG_SPI_Desired__CoreFoundation
-# define ZCONFIG_SPI_Desired__CoreFoundation 1
+ #define ZCONFIG_SPI_Desired__CoreFoundation 1
#endif
// =================================================================================================
#pragma mark CoreGraphics
#ifndef ZCONFIG_SPI_Avail__CoreGraphics
-# if __MACH__
-# define ZCONFIG_SPI_Avail__CoreGraphics 1
-# endif
+ #if __MACH__
+ #define ZCONFIG_SPI_Avail__CoreGraphics 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__CoreGraphics
-# define ZCONFIG_SPI_Avail__CoreGraphics 0
+ #define ZCONFIG_SPI_Avail__CoreGraphics 0
#endif
#ifndef ZCONFIG_SPI_Desired__CoreGraphics
-# define ZCONFIG_SPI_Desired__CoreGraphics 1
+ #define ZCONFIG_SPI_Desired__CoreGraphics 1
#endif
@@ -293,63 +293,63 @@
#ifndef ZCONFIG_SPI_Avail__DNSSD
// Not sure about this one. Assumes POSIX for now, may need to drop back
// to MacOSX and Linux only (by default).
-# define ZCONFIG_SPI_Avail__DNSSD (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
+ #define ZCONFIG_SPI_Avail__DNSSD (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
#endif
#ifndef ZCONFIG_SPI_Avail__DNSSD
-# define ZCONFIG_SPI_Avail__DNSSD 0
+ #define ZCONFIG_SPI_Avail__DNSSD 0
#endif
#ifndef ZCONFIG_SPI_Desired__DNSSD
-# define ZCONFIG_SPI_Desired__DNSSD 1
+ #define ZCONFIG_SPI_Desired__DNSSD 1
#endif
// =================================================================================================
#pragma mark GDI
#ifndef ZCONFIG_SPI_Avail__GDI
-# define ZCONFIG_SPI_Avail__GDI (ZCONFIG_SPI_Avail__Win && ZCONFIG_SPI_Desired__Win)
+ #define ZCONFIG_SPI_Avail__GDI (ZCONFIG_SPI_Avail__Win && ZCONFIG_SPI_Desired__Win)
#endif
#ifndef ZCONFIG_SPI_Avail__GDI
-# define ZCONFIG_SPI_Avail__GDI 0
+ #define ZCONFIG_SPI_Avail__GDI 0
#endif
#ifndef ZCONFIG_SPI_Desired__GDI
-# define ZCONFIG_SPI_Desired__GDI 1
+ #define ZCONFIG_SPI_Desired__GDI 1
#endif
// =================================================================================================
#pragma mark iconv
#ifndef ZCONFIG_SPI_Avail__iconv
-# define ZCONFIG_SPI_Avail__iconv \
+ #define ZCONFIG_SPI_Avail__iconv \
((ZCONFIG_SPI_Avail__MacOSX && ZCONFIG_SPI_Desired__MacOSX) || ZMACRO_IOS)
#endif
#ifndef ZCONFIG_SPI_Desired__iconv
-# define ZCONFIG_SPI_Desired__iconv 1
+ #define ZCONFIG_SPI_Desired__iconv 1
#endif
// =================================================================================================
#pragma mark ICU
#ifndef ZCONFIG_SPI_Avail__ICU
-# define ZCONFIG_SPI_Avail__ICU 0
+ #define ZCONFIG_SPI_Avail__ICU 0
#endif
#ifndef ZCONFIG_SPI_Desired__ICU
-# define ZCONFIG_SPI_Desired__ICU 1
+ #define ZCONFIG_SPI_Desired__ICU 1
#endif
// =================================================================================================
#pragma mark imagehlp
#ifndef ZCONFIG_SPI_Avail__imagehlp
-# define ZCONFIG_SPI_Avail__imagehlp 0
+ #define ZCONFIG_SPI_Avail__imagehlp 0
#endif
#ifndef ZCONFIG_SPI_Desired__imagehlp
-# define ZCONFIG_SPI_Desired__imagehlp 1
+ #define ZCONFIG_SPI_Desired__imagehlp 1
#endif
@@ -357,218 +357,218 @@
#pragma mark iPhone
#ifndef ZCONFIG_SPI_Avail__iPhone
-# if ZMACRO_IOS
-# define ZCONFIG_SPI_Avail__iPhone 1
-# endif
+ #if ZMACRO_IOS
+ #define ZCONFIG_SPI_Avail__iPhone 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__iPhone
-# define ZCONFIG_SPI_Avail__iPhone 0
+ #define ZCONFIG_SPI_Avail__iPhone 0
#endif
#ifndef ZCONFIG_SPI_Desired__iPhone
-# define ZCONFIG_SPI_Desired__iPhone 1
+ #define ZCONFIG_SPI_Desired__iPhone 1
#endif
// =================================================================================================
#pragma mark Linux
#ifndef ZCONFIG_SPI_Avail__Linux
-# ifdef linux
-# define ZCONFIG_SPI_Avail__Linux 1
-# endif
+ #ifdef linux
+ #define ZCONFIG_SPI_Avail__Linux 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__Linux
-# define ZCONFIG_SPI_Avail__Linux 0
+ #define ZCONFIG_SPI_Avail__Linux 0
#endif
#ifndef ZCONFIG_SPI_Desired__Linux
-# define ZCONFIG_SPI_Desired__Linux 1
+ #define ZCONFIG_SPI_Desired__Linux 1
#endif
// =================================================================================================
#pragma mark MacClassic
#ifndef ZCONFIG_SPI_Avail__MacClassic
-# if macintosh && ! ZCONFIG_SPI_Avail__Carbon
-# define ZCONFIG_SPI_Avail__MacClassic 1
-# endif
+ #if macintosh && ! ZCONFIG_SPI_Avail__Carbon
+ #define ZCONFIG_SPI_Avail__MacClassic 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__MacClassic
-# define ZCONFIG_SPI_Avail__MacClassic 0
+ #define ZCONFIG_SPI_Avail__MacClassic 0
#endif
#ifndef ZCONFIG_SPI_Desired__MacClassic
-# define ZCONFIG_SPI_Desired__MacClassic 1
+ #define ZCONFIG_SPI_Desired__MacClassic 1
#endif
// =================================================================================================
#pragma mark MacMP
#ifndef ZCONFIG_SPI_Avail__MacMP
-# if macintosh || ZCONFIG_SPI_Avail__Carbon64
-# define ZCONFIG_SPI_Avail__MacMP 1
-# endif
+ #if macintosh || ZCONFIG_SPI_Avail__Carbon64
+ #define ZCONFIG_SPI_Avail__MacMP 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__MacMP
-# define ZCONFIG_SPI_Avail__MacMP 0
+ #define ZCONFIG_SPI_Avail__MacMP 0
#endif
#ifndef ZCONFIG_SPI_Desired__MacMP
-# define ZCONFIG_SPI_Desired__MacMP 1
+ #define ZCONFIG_SPI_Desired__MacMP 1
#endif
// =================================================================================================
#pragma mark MacOSX
#ifndef ZCONFIG_SPI_Avail__MacOSX
-# if __MACH__ && ! ZMACRO_IOS
-# define ZCONFIG_SPI_Avail__MacOSX 1
-# endif
+ #if __MACH__ && ! ZMACRO_IOS
+ #define ZCONFIG_SPI_Avail__MacOSX 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__MacOSX
-# define ZCONFIG_SPI_Avail__MacOSX 0
+ #define ZCONFIG_SPI_Avail__MacOSX 0
#endif
#ifndef ZCONFIG_SPI_Desired__MacOSX
-# define ZCONFIG_SPI_Desired__MacOSX 1
+ #define ZCONFIG_SPI_Desired__MacOSX 1
#endif
// =================================================================================================
#pragma mark openssl
#ifndef ZCONFIG_SPI_Avail__openssl
-# define ZCONFIG_SPI_Avail__openssl 0
+ #define ZCONFIG_SPI_Avail__openssl 0
#endif
#ifndef ZCONFIG_SPI_Desired__openssl
-# define ZCONFIG_SPI_Desired__openssl 1
+ #define ZCONFIG_SPI_Desired__openssl 1
#endif
// =================================================================================================
#pragma mark POSIX
#ifndef ZCONFIG_SPI_Avail__POSIX
-# if __MACH__
-# define ZCONFIG_SPI_Avail__POSIX 1
-# elif linux
-# define ZCONFIG_SPI_Avail__POSIX 1
-# endif
+ #if __MACH__
+ #define ZCONFIG_SPI_Avail__POSIX 1
+ #elif linux
+ #define ZCONFIG_SPI_Avail__POSIX 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__POSIX
-# define ZCONFIG_SPI_Avail__POSIX 0
+ #define ZCONFIG_SPI_Avail__POSIX 0
#endif
#ifndef ZCONFIG_SPI_Desired__POSIX
-# define ZCONFIG_SPI_Desired__POSIX 1
+ #define ZCONFIG_SPI_Desired__POSIX 1
#endif
// =================================================================================================
#pragma mark pthread
#ifndef ZCONFIG_SPI_Avail__pthread
-# define ZCONFIG_SPI_Avail__pthread (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
+ #define ZCONFIG_SPI_Avail__pthread (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
#endif
#ifndef ZCONFIG_SPI_Avail__pthread
-# define ZCONFIG_SPI_Avail__pthread 0
+ #define ZCONFIG_SPI_Avail__pthread 0
#endif
#ifndef ZCONFIG_SPI_Desired__pthread
-# define ZCONFIG_SPI_Desired__pthread 1
+ #define ZCONFIG_SPI_Desired__pthread 1
#endif
// =================================================================================================
#pragma mark QuickDraw
#ifndef ZCONFIG_SPI_Avail__QuickDraw
-# define ZCONFIG_SPI_Avail__QuickDraw \
+ #define ZCONFIG_SPI_Avail__QuickDraw \
((ZCONFIG_SPI_Avail__Carbon && ZCONFIG_SPI_Desired__Carbon) \
|| (ZCONFIG_SPI_Avail__MacClassic && ZCONFIG_SPI_Desired__MacClassic))
#endif
#ifndef ZCONFIG_SPI_Avail__QuickDraw
-# define ZCONFIG_SPI_Avail__QuickDraw 0
+ #define ZCONFIG_SPI_Avail__QuickDraw 0
#endif
#ifndef ZCONFIG_SPI_Desired__QuickDraw
-# define ZCONFIG_SPI_Desired__QuickDraw 1
+ #define ZCONFIG_SPI_Desired__QuickDraw 1
#endif
// =================================================================================================
#pragma mark stlsoft
#ifndef ZCONFIG_SPI_Avail__stlsoft
-# define ZCONFIG_SPI_Avail__stlsoft 0
+ #define ZCONFIG_SPI_Avail__stlsoft 0
#endif
#ifndef ZCONFIG_SPI_Desired__stlsoft
-# define ZCONFIG_SPI_Desired__stlsoft 1
+ #define ZCONFIG_SPI_Desired__stlsoft 1
#endif
// =================================================================================================
#pragma mark SystemConfiguration
#ifndef ZCONFIG_SPI_Avail__SystemConfiguration
-# define ZCONFIG_SPI_Avail__SystemConfiguration ZCONFIG_SPI_Avail__MacOSX
+ #define ZCONFIG_SPI_Avail__SystemConfiguration ZCONFIG_SPI_Avail__MacOSX
#endif
#ifndef ZCONFIG_SPI_Avail__SystemConfiguration
-# define ZCONFIG_SPI_Avail__SystemConfiguration 0
+ #define ZCONFIG_SPI_Avail__SystemConfiguration 0
#endif
#ifndef ZCONFIG_SPI_Desired__SystemConfiguration
-# define ZCONFIG_SPI_Desired__SystemConfiguration 1
+ #define ZCONFIG_SPI_Desired__SystemConfiguration 1
#endif
// =================================================================================================
#pragma mark Win
#ifndef ZCONFIG_SPI_Avail__Win
-# if defined(WIN32) || defined(_WIN32) || defined(WINDOWS)
-# define ZCONFIG_SPI_Avail__Win 1
-# elif __MWERKS__ && __INTEL__
-# define ZCONFIG_SPI_Avail__Win 1
-# endif
+ #if defined(WIN32) || defined(_WIN32) || defined(WINDOWS)
+ #define ZCONFIG_SPI_Avail__Win 1
+ #elif __MWERKS__ && __INTEL__
+ #define ZCONFIG_SPI_Avail__Win 1
+ #endif
#endif
#ifndef ZCONFIG_SPI_Avail__Win
-# define ZCONFIG_SPI_Avail__Win 0
+ #define ZCONFIG_SPI_Avail__Win 0
#endif
#ifndef ZCONFIG_SPI_Desired__Win
-# define ZCONFIG_SPI_Desired__Win 1
+ #define ZCONFIG_SPI_Desired__Win 1
#endif
// =================================================================================================
#pragma mark X11
//#ifndef ZCONFIG_SPI_Avail__X11
-//# define ZCONFIG_SPI_Avail__X11 (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
+// #define ZCONFIG_SPI_Avail__X11 (ZCONFIG_SPI_Avail__POSIX && ZCONFIG_SPI_Desired__POSIX)
//#endif
#ifndef ZCONFIG_SPI_Avail__X11
-# define ZCONFIG_SPI_Avail__X11 0
+ #define ZCONFIG_SPI_Avail__X11 0
#endif
#ifndef ZCONFIG_SPI_Desired__X11
-# define ZCONFIG_SPI_Desired__X11 1
+ #define ZCONFIG_SPI_Desired__X11 1
#endif
// =================================================================================================
#pragma mark zlib
#ifndef ZCONFIG_SPI_Avail__zlib
-# define ZCONFIG_SPI_Avail__zlib 0
+ #define ZCONFIG_SPI_Avail__zlib 0
#endif
#ifndef ZCONFIG_SPI_Desired__zlib
-# define ZCONFIG_SPI_Desired__zlib 1
+ #define ZCONFIG_SPI_Desired__zlib 1
#endif
Modified: trunk/zoolib/source/cxx/zoolib/ZCaller_CFRunLoop.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCaller_CFRunLoop.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZCaller_CFRunLoop.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -28,17 +28,17 @@
// CFRunLoop is not available in CW's headers
#ifndef ZCONFIG_API_Avail__Caller_CFRunLoop
-# if ZCONFIG_SPI_Enabled(CoreFoundation) && !ZCONFIG(Compiler,CodeWarrior)
-# define ZCONFIG_API_Avail__Caller_CFRunLoop 1
-# endif
+ #if ZCONFIG_SPI_Enabled(CoreFoundation) && !ZCONFIG(Compiler,CodeWarrior)
+ #define ZCONFIG_API_Avail__Caller_CFRunLoop 1
+ #endif
#endif
#ifndef ZCONFIG_API_Avail__Caller_CFRunLoop
-# define ZCONFIG_API_Avail__Caller_CFRunLoop 0
+ #define ZCONFIG_API_Avail__Caller_CFRunLoop 0
#endif
#ifndef ZCONFIG_API_Desired__Caller_CFRunLoop
-# define ZCONFIG_API_Desired__Caller_CFRunLoop 1
+ #define ZCONFIG_API_Desired__Caller_CFRunLoop 1
#endif
#if ZCONFIG_API_Enabled(Caller_CFRunLoop)
Modified: trunk/zoolib/source/cxx/zoolib/ZCompare_T.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCompare_T.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZCompare_T.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -100,4 +100,4 @@
} // namespace ZooLib
-#endif // __ZCompare_Vector_h__
+#endif // __ZCompare_T_h__
Modified: trunk/zoolib/source/cxx/zoolib/ZCompat_Win.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCompat_Win.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZCompat_Win.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -31,15 +31,15 @@
// If not otherwise specified, require Windows 2K.
#ifndef _WIN32_WINNT
-# define _WIN32_WINNT 0x0500
+ #define _WIN32_WINNT 0x0500
#endif
#ifndef NOMINMAX
-# define NOMINMAX
+ #define NOMINMAX
#endif
#ifndef STRICT
-# define STRICT
+ #define STRICT
#endif
// Recent windows headers conditionalize visibility of GetModuleHandleExW on
Modified: trunk/zoolib/source/cxx/zoolib/ZCompat_Xlib.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCompat_Xlib.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZCompat_Xlib.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -26,9 +26,9 @@
#if ZCONFIG_SPI_Enabled(X11)
// Unfortunately, QuickDraw also defines Cursor. For the moment this lets us compile
// code that sees both QuickDraw and X11 headers. And don't get me started on BOOL ...
-# define Cursor ZooLib_X11_Cursor
-# include <X11/Xlib.h>
-# undef Cursor
+ #define Cursor ZooLib_X11_Cursor
+ #include <X11/Xlib.h>
+ #undef Cursor
#endif
#endif // __ZCompat_XLib_h__
Modified: trunk/zoolib/source/cxx/zoolib/ZCompat_algorithm.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCompat_algorithm.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZCompat_algorithm.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -23,9 +23,9 @@
#include "zconfig.h"
#if !defined(__MWERKS__) && defined(_MSC_VER) && (_MSC_VER < 1200)
-# include <algorithm.h>
+ #include <algorithm.h>
#else
-# include <algorithm>
+ #include <algorithm>
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/zoolib/ZCompat_string.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCompat_string.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZCompat_string.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -26,7 +26,7 @@
// strdup doesn't show up on older versions of CW
#if defined(__MWERKS__) && __MWERKS__ <= 0x2406
-# include <extras.h>
+ #include <extras.h>
#endif
#endif // __ZCompat_string_h__
Modified: trunk/zoolib/source/cxx/zoolib/ZDCFont.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZDCFont.cpp 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZDCFont.cpp 2012-02-01 00:10:19 UTC (rev 2704)
@@ -30,7 +30,7 @@
#include "zoolib/ZUnicode.h"
#if ZCONFIG_SPI_Enabled(QuickDraw)
-# include ZMACINCLUDE3(ApplicationServices,QD,Fonts.h)
+ #include ZMACINCLUDE3(ApplicationServices,QD,Fonts.h)
#endif
namespace ZooLib {
Modified: trunk/zoolib/source/cxx/zoolib/ZDCFont.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZDCFont.h 2012-02-01 00:07:03 UTC (rev 2703)
+++ trunk/zoolib/source/cxx/zoolib/ZDCFont.h 2012-02-01 00:10:19 UTC (rev 2704)
@@ -27,11 +27,11 @@
#include "zoolib/ZUnicodeString.h"
#if ZCONFIG_SPI_Enabled(QuickDraw)
-# include ZMACINCLUDE3(Carbon,HIToolbox,TextEdit.h)
+ #include ZMACINCLUDE3(Carbon,HIToolbox,TextEdit.h)
#endif
#if ZCONFIG_SPI_Enabled(BeOS)
-# include <interface/Font.h>
+ #include <interface/Font.h>
#en...
[truncated message content] |
|
From: <ag...@us...> - 2012-02-01 00:07:10
|
Revision: 2703
http://zoolib.svn.sourceforge.net/zoolib/?rev=2703&view=rev
Author: agreen
Date: 2012-02-01 00:07:03 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
Bit of a rework to make comments and explanation more intelligible.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZAny.cpp
trunk/zoolib/source/cxx/zoolib/ZAny.h
Modified: trunk/zoolib/source/cxx/zoolib/ZAny.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAny.cpp 2012-01-30 12:17:11 UTC (rev 2702)
+++ trunk/zoolib/source/cxx/zoolib/ZAny.cpp 2012-02-01 00:07:03 UTC (rev 2703)
@@ -28,29 +28,29 @@
inline static const std::type_info* spPODTypeInfo(const void* iPtr)
{ return (const std::type_info*)(((intptr_t)iPtr) ^ 1); }
-inline ZAny::Holder_InPlace& ZAny::fHolder_InPlace()
- { return *sFetch_T<Holder_InPlace>(fBytes_InPlace); }
+inline ZAny::Holder_InPlace& ZAny::pAsInPlace()
+ { return *sFetch_T<Holder_InPlace>(&fDistinguisher); }
-inline const ZAny::Holder_InPlace& ZAny::fHolder_InPlace() const
- { return *sFetch_T<Holder_InPlace>(fBytes_InPlace); }
+inline const ZAny::Holder_InPlace& ZAny::pAsInPlace() const
+ { return *sFetch_T<Holder_InPlace>(&fDistinguisher); }
-inline ZRef<ZAny::Holder_Counted>& ZAny::fHolder_Ref()
- { return *sFetch_T<ZRef<Holder_Counted> >(fBytes_Payload); }
+inline ZRef<ZAny::Holder_Counted>& ZAny::pAsCounted()
+ { return *sFetch_T<ZRef<Holder_Counted> >(&fPayload); }
-inline const ZRef<ZAny::Holder_Counted>& ZAny::fHolder_Ref() const
- { return *sFetch_T<ZRef<Holder_Counted> >(fBytes_Payload); }
+inline const ZRef<ZAny::Holder_Counted>& ZAny::pAsCounted() const
+ { return *sFetch_T<ZRef<Holder_Counted> >(&fPayload); }
const std::type_info& ZAny::Type() const
{
- if (spIsPOD(fPtr_InPlace))
+ if (spIsPOD(fDistinguisher))
{
- return *spPODTypeInfo(fPtr_InPlace);
+ return *spPODTypeInfo(fDistinguisher);
}
- else if (fPtr_InPlace)
+ else if (fDistinguisher)
{
- return fHolder_InPlace().Type();
+ return pAsInPlace().Type();
}
- else if (const ZRef<Holder_Counted>& theHolderRef = fHolder_Ref())
+ else if (const ZRef<Holder_Counted>& theHolderRef = pAsCounted())
{
return theHolderRef->Type();
}
@@ -62,15 +62,15 @@
void* ZAny::VoidStar()
{
- if (spIsPOD(fPtr_InPlace))
+ if (spIsPOD(fDistinguisher))
{
- return fBytes_Payload;
+ return &fPayload;
}
- else if (fPtr_InPlace)
+ else if (fDistinguisher)
{
- return fHolder_InPlace().VoidStar();
+ return pAsInPlace().VoidStar();
}
- else if (ZRef<Holder_Counted>& theHolderRef = fHolder_Ref())
+ else if (ZRef<Holder_Counted>& theHolderRef = pAsCounted())
{
if (theHolderRef->IsShared())
theHolderRef = theHolderRef->Clone();
@@ -84,15 +84,15 @@
const void* ZAny::ConstVoidStar() const
{
- if (spIsPOD(fPtr_InPlace))
+ if (spIsPOD(fDistinguisher))
{
- return fBytes_Payload;
+ return &fPayload;
}
- else if (fPtr_InPlace)
+ else if (fDistinguisher)
{
- return fHolder_InPlace().ConstVoidStar();
+ return pAsInPlace().ConstVoidStar();
}
- else if (const ZRef<Holder_Counted>& theHolderRef = fHolder_Ref())
+ else if (const ZRef<Holder_Counted>& theHolderRef = pAsCounted())
{
return theHolderRef->VoidStar();
}
@@ -104,7 +104,7 @@
void ZAny::swap(ZAny& ioOther)
{
- if (fPtr_InPlace || ioOther.fPtr_InPlace)
+ if (fDistinguisher || ioOther.fDistinguisher)
{
// Trivial implementation for now
const ZAny temp = *this;
@@ -113,43 +113,43 @@
}
else
{
- fHolder_Ref().swap(ioOther.fHolder_Ref());
+ pAsCounted().swap(ioOther.pAsCounted());
}
}
bool ZAny::IsNull() const
- { return not fPtr_InPlace && not fHolder_Ref(); }
+ { return not fDistinguisher && not fPayload.fAsPtr; }
void ZAny::Clear()
{
- if (spIsPOD(fPtr_InPlace))
+ if (spIsPOD(fDistinguisher))
{
- fPtr_InPlace = 0;
+ fDistinguisher = 0;
}
- else if (fPtr_InPlace)
+ else if (fDistinguisher)
{
- sDtor_T<Holder_InPlace>(fBytes_InPlace);
- fPtr_InPlace = 0;
+ sDtor_T<Holder_InPlace>(&fDistinguisher);
+ fDistinguisher = 0;
}
else
{
- sDtor_T<ZRef<Holder_Counted> >(fBytes_Payload);
+ sDtor_T<ZRef<Holder_Counted> >(&fPayload);
}
- fPtr_Counted = 0;
+ fPayload.fAsPtr = 0;
}
void* ZAny::pGetMutable(const std::type_info& iTypeInfo)
{
- if (spIsPOD(fPtr_InPlace))
+ if (spIsPOD(fDistinguisher))
{
- if (iTypeInfo == *spPODTypeInfo(fPtr_InPlace))
- return fBytes_Payload;
+ if (iTypeInfo == *spPODTypeInfo(fDistinguisher))
+ return &fPayload;
}
- else if (fPtr_InPlace)
+ else if (fDistinguisher)
{
- return fHolder_InPlace().VoidStarIf(iTypeInfo);
+ return pAsInPlace().VoidStarIf(iTypeInfo);
}
- else if (ZRef<Holder_Counted>& theHolderRef = fHolder_Ref())
+ else if (ZRef<Holder_Counted>& theHolderRef = pAsCounted())
{
if (theHolderRef->Type() == iTypeInfo)
{
@@ -164,16 +164,16 @@
const void* ZAny::pGet(const std::type_info& iTypeInfo) const
{
- if (spIsPOD(fPtr_InPlace))
+ if (spIsPOD(fDistinguisher))
{
- if (iTypeInfo == *spPODTypeInfo(fPtr_InPlace))
- return fBytes_Payload;
+ if (iTypeInfo == *spPODTypeInfo(fDistinguisher))
+ return &fPayload;
}
- else if (fPtr_InPlace)
+ else if (fDistinguisher)
{
- return fHolder_InPlace().ConstVoidStarIf(iTypeInfo);
+ return pAsInPlace().ConstVoidStarIf(iTypeInfo);
}
- else if (const ZRef<Holder_Counted>& theHolderRef = fHolder_Ref())
+ else if (const ZRef<Holder_Counted>& theHolderRef = pAsCounted())
{
return theHolderRef->VoidStarIf(iTypeInfo);
}
@@ -183,23 +183,23 @@
void ZAny::pCtor_Complex(const ZAny& iOther)
{
- if (iOther.fPtr_InPlace)
+ if (iOther.fDistinguisher)
{
- iOther.fHolder_InPlace().CtorInto(fBytes_InPlace);
+ iOther.pAsInPlace().CtorInto(&fDistinguisher);
}
else
{
- fPtr_InPlace = 0;
- sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, iOther.fHolder_Ref());
+ fDistinguisher = 0;
+ sCtor_T<ZRef<Holder_Counted> >(&fPayload, iOther.pAsCounted());
}
}
void ZAny::pDtor_Complex()
{
- if (fPtr_InPlace)
- sDtor_T<Holder_InPlace>(fBytes_InPlace);
+ if (fDistinguisher)
+ sDtor_T<Holder_InPlace>(&fDistinguisher);
else
- sDtor_T<ZRef<Holder_Counted> >(fBytes_Payload);
+ sDtor_T<ZRef<Holder_Counted> >(&fPayload);
}
} // namespace ZooLib
Modified: trunk/zoolib/source/cxx/zoolib/ZAny.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-01-30 12:17:11 UTC (rev 2702)
+++ trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-02-01 00:07:03 UTC (rev 2703)
@@ -25,7 +25,6 @@
#include "zoolib/ZCountedWithoutFinalize.h"
#include "zoolib/ZQ.h"
#include "zoolib/ZRef.h"
-#include "zoolib/ZTypes.h"
#include <typeinfo> // for std::type_info
@@ -249,12 +248,11 @@
// -----------------
- // Pseudo field accesors, hence the 'f' prefix
- Holder_InPlace& fHolder_InPlace();
- const Holder_InPlace& fHolder_InPlace() const;
+ Holder_InPlace& pAsInPlace();
+ const Holder_InPlace& pAsInPlace() const;
- ZRef<Holder_Counted>& fHolder_Ref();
- const ZRef<Holder_Counted>& fHolder_Ref() const;
+ ZRef<Holder_Counted>& pAsCounted();
+ const ZRef<Holder_Counted>& pAsCounted() const;
// -----------------
@@ -276,20 +274,20 @@
{
if (ZAnyTraits<S>::eAllowInPlace && sizeof(S) <= sizeof(fPayload))
{
- sCtor_T<Holder_InPlace_T<S> >(fBytes_InPlace, iP0, iP1);
+ sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher, iP0, iP1);
}
else
{
- fPtr_InPlace = 0;
- sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, new Holder_Counted_T<S>(iP0, iP1));
+ fDistinguisher = 0;
+ sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0, iP1));
}
}
template <class S, class P0, class P1>
void pCtor_Counted_T(const P0& iP0, const P1& iP1)
{
- fPtr_InPlace = 0;
- sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, new Holder_Counted_T<S>(iP0, iP1));
+ fDistinguisher = 0;
+ sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0, iP1));
}
template <class S, class P0>
@@ -302,27 +300,27 @@
#if ZCONFIG(Compiler,GCC)
else if (std::tr1::is_pod<S>::value)
{
- fPtr_InPlace = (void*)(((intptr_t)&typeid(S)) | 1);
- sCtor_T<S>(fBytes_Payload, iP0);
+ fDistinguisher = (void*)(((intptr_t)&typeid(S)) | 1);
+ sCtor_T<S>(&fPayload, iP0);
}
#endif
else
{
- sCtor_T<Holder_InPlace_T<S> >(fBytes_InPlace, iP0);
+ sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher, iP0);
}
}
else
{
- fPtr_InPlace = 0;
- sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, new Holder_Counted_T<S>(iP0));
+ fDistinguisher = 0;
+ sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0));
}
}
template <class S, class P0>
void pCtor_Counted_T(const P0& iP0)
{
- fPtr_InPlace = 0;
- sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, new Holder_Counted_T<S>(iP0));
+ fDistinguisher = 0;
+ sCtor_T<ZRef<Holder_Counted> >(&fPayload, new Holder_Counted_T<S>(iP0));
}
// -----------------
@@ -337,20 +335,20 @@
#if ZCONFIG(Compiler,GCC)
else if (std::tr1::is_pod<S>::value)
{
- fPtr_InPlace = (void*)(((intptr_t)&typeid(S)) | 1);
- return *sCtor_T<S>(fBytes_Payload, iP0);
+ fDistinguisher = (void*)(((intptr_t)&typeid(S)) | 1);
+ return *sCtor_T<S>(&fPayload, iP0);
}
#endif
else
{
- return sCtor_T<Holder_InPlace_T<S> >(fBytes_InPlace, iP0)->fValue;
+ return sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher, iP0)->fValue;
}
}
else
{
- fPtr_InPlace = 0;
+ fDistinguisher = 0;
Holder_Counted_T<S>* theHolder = new Holder_Counted_T<S>(iP0);
- sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, theHolder);
+ sCtor_T<ZRef<Holder_Counted> >(&fPayload, theHolder);
return theHolder->fValue;
}
}
@@ -365,51 +363,49 @@
#if ZCONFIG(Compiler,GCC)
else if (std::tr1::is_pod<S>::value)
{
- fPtr_InPlace = (void*)(((intptr_t)&typeid(S)) | 1);
- return *sCtor_T<S>(fBytes_Payload);
+ fDistinguisher = (void*)(((intptr_t)&typeid(S)) | 1);
+ return *sCtor_T<S>(&fPayload);
}
#endif
else
{
- return sCtor_T<Holder_InPlace_T<S> >(fBytes_InPlace)->fValue;
+ return sCtor_T<Holder_InPlace_T<S> >(&fDistinguisher)->fValue;
}
}
else
{
- fPtr_InPlace = 0;
+ fDistinguisher = 0;
Holder_Counted_T<S>* theHolder = new Holder_Counted_T<S>;
- sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, theHolder);
+ sCtor_T<ZRef<Holder_Counted> >(&fPayload, theHolder);
return theHolder->fValue;
}
}
// -----------------
+ // There are three situations, distinguished by the value in fDistinguisher.
+ // 1. It's null. fPayload.fAsPtr points to an instance of a Holder_Counted subclass. If
+ // fPayload.fAsPtr is also null then this is itself a null object.
+ // 2. LSB is set. With an unset LSB it points to a typeid, and fPayload holds a POD value.
+ // 3. LSB is unset. It's the vptr of a Holder_InPlace, the fields of the object itself
+ // spilling over into fPayload.
+
+ void* fDistinguisher;
union
{
- char fBytes_InPlace[1];
- void* fPtr_InPlace;
- };
+ // This union provides space for a refcounted pointer to a Holder_Counted, space
+ // for the most common in-place values, and makes some values legible in a debugger.
+ void* fAsPtr;
- union
- {
- char fBytes_Payload[1];
- void* fPtr_Counted;
- union
- {
- // This union serves three purposes. It reserves space for in-place
- // values, ensures ZAny has appropriate alignment, and finally
- // makes some types legible when debugging.
- bool fAsBool;
- char fAsChar;
- short fAsShort;
- int fAsInt;
- long fAsLong;
- int64 fAsLongLong;
- float fAsFloat;
- double fAsDouble;
- } fPayload;
- };
+ bool fAsBool;
+ char fAsChar;
+ short fAsShort;
+ int fAsInt;
+ long fAsLong;
+ int64 fAsLongLong;
+ float fAsFloat;
+ double fAsDouble;
+ } fPayload;
};
// =================================================================================================
@@ -420,9 +416,9 @@
inline void ZAny::pCtor(const ZAny& iOther)
{
- if (spIsPOD(iOther.fPtr_InPlace))
+ if (spIsPOD(iOther.fDistinguisher))
{
- fPtr_InPlace = iOther.fPtr_InPlace;
+ fDistinguisher = iOther.fDistinguisher;
fPayload = iOther.fPayload;
}
else
@@ -433,7 +429,7 @@
inline void ZAny::pDtor()
{
- if (not spIsPOD(fPtr_InPlace))
+ if (not spIsPOD(fDistinguisher))
pDtor_Complex();
}
@@ -442,8 +438,8 @@
inline ZAny::ZAny()
{
- fPtr_InPlace = 0;
- fPtr_Counted = 0;
+ fDistinguisher = 0;
+ fPayload.fAsPtr = 0;
}
inline ZAny::ZAny(const ZAny& iOther)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-30 12:17:17
|
Revision: 2702
http://zoolib.svn.sourceforge.net/zoolib/?rev=2702&view=rev
Author: agreen
Date: 2012-01-30 12:17:11 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Oops.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp 2012-01-30 12:16:55 UTC (rev 2701)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Yad.cpp 2012-01-30 12:17:11 UTC (rev 2702)
@@ -79,7 +79,7 @@
}
bool ZVal_Yad::IsNull() const
- { return fYad; }
+ { return not fYad; }
ZQ<ZVal_Yad> ZVal_Yad::QGet(const string8& iName) const
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-30 12:17:06
|
Revision: 2701
http://zoolib.svn.sourceforge.net/zoolib/?rev=2701&view=rev
Author: agreen
Date: 2012-01-30 12:16:55 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Add Mutable and DMutable.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp 2012-01-30 12:16:24 UTC (rev 2700)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp 2012-01-30 12:16:55 UTC (rev 2701)
@@ -92,14 +92,10 @@
}
ZVal_Any ZVal_Any::Get(const string8& iName) const
- { return this->GetMap().Get(iName); }
+ { return this->Get<ZMap_Any>().Get(iName); }
ZVal_Any& ZVal_Any::Mutable(const string8& iName)
- {
- if (ZMap_Any* asMap = this->PGetMutable<ZMap_Any>())
- return asMap->Mutable(iName);
- return this->Mutable<ZMap_Any>().Mutable(iName);
- }
+ { return this->Mutable<ZMap_Any>().Mutable(iName); }
ZVal_Any* ZVal_Any::PGetMutable(size_t iIndex)
{
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2012-01-30 12:16:24 UTC (rev 2700)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2012-01-30 12:16:55 UTC (rev 2701)
@@ -504,6 +504,19 @@
// Our protocol
ZVal_Any& Mutable(const string8& iName);
+
+ template <class S>
+ S& Mutable(const string8& iName)
+ { return this->Mutable(iName).Mutable<S>(); }
+
+ template <class S>
+ S& DMutable(const S& iDefault, const string8& iName)
+ {
+ if (S* theVal = this->PGetMutable<S>(iName))
+ return *theVal;
+ this->Set(iName, iDefault);
+ return *this->PGetMutable<S>(iName);
+ }
Index_t Begin() const;
Index_t End() const;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-30 12:16:35
|
Revision: 2700
http://zoolib.svn.sourceforge.net/zoolib/?rev=2700&view=rev
Author: agreen
Date: 2012-01-30 12:16:24 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Add DMutable and pCtorRet_T.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZAny.h
Modified: trunk/zoolib/source/cxx/zoolib/ZAny.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-01-30 12:15:22 UTC (rev 2699)
+++ trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-01-30 12:16:24 UTC (rev 2700)
@@ -124,10 +124,18 @@
if (S* theP = this->PGetMutable<S>())
return *theP;
pDtor();
- pCtor_T<S>(S());
- return *this->PGetMutable<S>();
+ return pCtorRet_T<S>();
}
+ template <class S>
+ S& DMutable(const S& iDefault)
+ {
+ if (S* theP = this->PGetMutable<S>())
+ return *theP;
+ pDtor();
+ return pCtorRet_T<S>(iDefault);
+ }
+
// Special purpose constructors, called by sAny and sAnyCounted
template <class S, class P0>
ZAny(const S* dummy, const P0& iP0)
@@ -170,6 +178,8 @@
class Holder_InPlace_T : public Holder_InPlace
{
public:
+ Holder_InPlace_T() {}
+
template <class P0>
Holder_InPlace_T(const P0& iP0) : fValue(iP0) {}
@@ -216,6 +226,8 @@
class Holder_Counted_T : public Holder_Counted
{
public:
+ Holder_Counted_T() {}
+
template <class P0>
Holder_Counted_T(const P0& iP0) : fValue(iP0) {}
@@ -291,7 +303,7 @@
else if (std::tr1::is_pod<S>::value)
{
fPtr_InPlace = (void*)(((intptr_t)&typeid(S)) | 1);
- *((S*)fBytes_Payload) = iP0;
+ sCtor_T<S>(fBytes_Payload, iP0);
}
#endif
else
@@ -315,6 +327,64 @@
// -----------------
+ template <class S, class P0>
+ S& pCtorRet_T(const P0& iP0)
+ {
+ if (ZAnyTraits<S>::eAllowInPlace && sizeof(S) <= sizeof(fPayload))
+ {
+ if (false)
+ {}
+ #if ZCONFIG(Compiler,GCC)
+ else if (std::tr1::is_pod<S>::value)
+ {
+ fPtr_InPlace = (void*)(((intptr_t)&typeid(S)) | 1);
+ return *sCtor_T<S>(fBytes_Payload, iP0);
+ }
+ #endif
+ else
+ {
+ return sCtor_T<Holder_InPlace_T<S> >(fBytes_InPlace, iP0)->fValue;
+ }
+ }
+ else
+ {
+ fPtr_InPlace = 0;
+ Holder_Counted_T<S>* theHolder = new Holder_Counted_T<S>(iP0);
+ sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, theHolder);
+ return theHolder->fValue;
+ }
+ }
+
+ template <class S>
+ S& pCtorRet_T()
+ {
+ if (ZAnyTraits<S>::eAllowInPlace && sizeof(S) <= sizeof(fPayload))
+ {
+ if (false)
+ {}
+ #if ZCONFIG(Compiler,GCC)
+ else if (std::tr1::is_pod<S>::value)
+ {
+ fPtr_InPlace = (void*)(((intptr_t)&typeid(S)) | 1);
+ return *sCtor_T<S>(fBytes_Payload);
+ }
+ #endif
+ else
+ {
+ return sCtor_T<Holder_InPlace_T<S> >(fBytes_InPlace)->fValue;
+ }
+ }
+ else
+ {
+ fPtr_InPlace = 0;
+ Holder_Counted_T<S>* theHolder = new Holder_Counted_T<S>;
+ sCtor_T<ZRef<Holder_Counted> >(fBytes_Payload, theHolder);
+ return theHolder->fValue;
+ }
+ }
+
+// -----------------
+
union
{
char fBytes_InPlace[1];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-30 12:15:32
|
Revision: 2699
http://zoolib.svn.sourceforge.net/zoolib/?rev=2699&view=rev
Author: agreen
Date: 2012-01-30 12:15:22 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Use operators rather than explicit Writef.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZUtil_Strim_Geom.h
Modified: trunk/zoolib/source/cxx/zoolib/ZUtil_Strim_Geom.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZUtil_Strim_Geom.h 2012-01-30 12:14:44 UTC (rev 2698)
+++ trunk/zoolib/source/cxx/zoolib/ZUtil_Strim_Geom.h 2012-01-30 12:15:22 UTC (rev 2699)
@@ -31,29 +31,29 @@
template <class C>
inline const ZStrimW& operator<<(const ZStrimW& s, const ZRect_T<C>& val)
{
- return s.Writef("Rect(%g, %g, %g, %g)",
- double(val.left), double(val.top),
- double(val.right), double(val.bottom));
+ return s
+ << "Rect(" << val.left
+ << ", " << val.top
+ << ", " << val.right
+ << ", " << val.bottom
+ << ")";
}
template <class C>
inline const ZStrimW& operator<<(const ZStrimW& s, const ZPoint_T<C>& val)
- { return s.Writef("[%g, %g]", double(val.h), double(val.v)); }
+ { return s << "[" << val.x << ", " << val.y << "]"; }
template <class C>
inline const ZStrimW& operator<<(const ZStrimW& s, const ZGPointPOD_T<C>& val)
- { return s.Writef("[%g, %g]", double(val.x), double(val.y)); }
+ { return s << "[" << val.x << ", " << val.y << "]"; }
template <class C>
inline const ZStrimW& operator<<(const ZStrimW& s, const ZGExtentPOD_T<C>& val)
- { return s.Writef("[%g, %g]", double(val.h), double(val.v)); }
+ { return s << "[" << val.h << ", " << val.v << "]"; }
template <class C>
inline const ZStrimW& operator<<(const ZStrimW& s, const ZGRectPOD_T<C>& val)
- {
- s << "[" << val.origin << ", " << val.extent << "]";
- return s;
- }
+ { return s << "[" << val.origin << ", " << val.extent << "]"; }
} // namespace ZooLib
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-30 12:14:53
|
Revision: 2698
http://zoolib.svn.sourceforge.net/zoolib/?rev=2698&view=rev
Author: agreen
Date: 2012-01-30 12:14:44 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Updated noreturn.
Don't need the message from ZDebugStop.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZDebug.cpp
trunk/zoolib/source/cxx/zoolib/ZDebug.h
Modified: trunk/zoolib/source/cxx/zoolib/ZDebug.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZDebug.cpp 2012-01-30 12:14:10 UTC (rev 2697)
+++ trunk/zoolib/source/cxx/zoolib/ZDebug.cpp 2012-01-30 12:14:44 UTC (rev 2698)
@@ -289,7 +289,7 @@
void ZUnimplemented()
{
- ZDebugStopf(0, ("Unimplemented routine"));
+ ZDebugStop(0);
abort();
}
Modified: trunk/zoolib/source/cxx/zoolib/ZDebug.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZDebug.h 2012-01-30 12:14:10 UTC (rev 2697)
+++ trunk/zoolib/source/cxx/zoolib/ZDebug.h 2012-01-30 12:14:44 UTC (rev 2698)
@@ -109,7 +109,9 @@
namespace ZooLib {
-void ZUnimplemented() ZMACRO_Attribute_NoReturn;
+ZMACRO_NoReturn_Pre
+void ZUnimplemented()
+ZMACRO_NoReturn_Post;
} // namespace ZooLib
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-30 12:14:16
|
Revision: 2697
http://zoolib.svn.sourceforge.net/zoolib/?rev=2697&view=rev
Author: agreen
Date: 2012-01-30 12:14:10 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Add support for VC noreturn attribute.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/zconfigl.h
Modified: trunk/zoolib/source/cxx/zoolib/zconfigl.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/zconfigl.h 2012-01-28 18:15:28 UTC (rev 2696)
+++ trunk/zoolib/source/cxx/zoolib/zconfigl.h 2012-01-30 12:14:10 UTC (rev 2697)
@@ -428,11 +428,19 @@
#endif
#endif
-#ifndef ZMACRO_Attribute_NoReturn
+#ifndef ZMACRO_NoReturn_Pre
+ #if ZCONFIG(Compiler,MSVC)
+ #define ZMACRO_NoReturn_Pre __declspec(noreturn)
+ #else
+ #define ZMACRO_NoReturn_Pre
+ #endif
+#endif
+
+#ifndef ZMACRO_NoReturn_Post
#if ZCONFIG(Compiler,GCC)
- #define ZMACRO_Attribute_NoReturn __attribute__((noreturn))
+ #define ZMACRO_NoReturn_Post __attribute__((noreturn))
#else
- #define ZMACRO_Attribute_NoReturn
+ #define ZMACRO_NoReturn_Post
#endif
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-28 18:15:34
|
Revision: 2696
http://zoolib.svn.sourceforge.net/zoolib/?rev=2696&view=rev
Author: agreen
Date: 2012-01-28 18:15:28 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
Comment.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZCog.h
Modified: trunk/zoolib/source/cxx/zoolib/ZCog.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCog.h 2012-01-28 18:15:20 UTC (rev 2695)
+++ trunk/zoolib/source/cxx/zoolib/ZCog.h 2012-01-28 18:15:28 UTC (rev 2696)
@@ -121,7 +121,7 @@
template <class Param>
ZCog<Param> spCogFun_True(const ZCog<Param>& iSelf, Param iParam)
{
- // Shouldn't ever call this.
+ // Must not ever call this.
ZUnimplemented();
return null;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-28 18:15:26
|
Revision: 2695
http://zoolib.svn.sourceforge.net/zoolib/?rev=2695&view=rev
Author: agreen
Date: 2012-01-28 18:15:20 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
Add Mutable.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZAny.h
Modified: trunk/zoolib/source/cxx/zoolib/ZAny.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-01-28 18:15:00 UTC (rev 2694)
+++ trunk/zoolib/source/cxx/zoolib/ZAny.h 2012-01-28 18:15:20 UTC (rev 2695)
@@ -118,6 +118,16 @@
bool Is() const
{ return this->PGet<S>(); }
+ template <class S>
+ S& Mutable()
+ {
+ if (S* theP = this->PGetMutable<S>())
+ return *theP;
+ pDtor();
+ pCtor_T<S>(S());
+ return *this->PGetMutable<S>();
+ }
+
// Special purpose constructors, called by sAny and sAnyCounted
template <class S, class P0>
ZAny(const S* dummy, const P0& iP0)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-28 18:15:06
|
Revision: 2694
http://zoolib.svn.sourceforge.net/zoolib/?rev=2694&view=rev
Author: agreen
Date: 2012-01-28 18:15:00 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
Whitespace and ctor function.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZTween_Std.h
Modified: trunk/zoolib/source/cxx/zoolib/ZTween_Std.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZTween_Std.h 2012-01-28 18:13:35 UTC (rev 2693)
+++ trunk/zoolib/source/cxx/zoolib/ZTween_Std.h 2012-01-28 18:15:00 UTC (rev 2694)
@@ -22,7 +22,6 @@
#define __ZTween_Std_h__ 1
#include "zconfig.h"
-#include "zoolib/ZCompat_algorithm.h" // for sMinMax
#include "zoolib/ZTween.h"
namespace ZooLib {
@@ -37,9 +36,9 @@
public:
virtual ZQ<Val> QValAt(double iTime)
{
- if (iTime < 0 || iTime >= 1.0)
- return null;
- return Fun(iTime);
+ if (iTime >= 0 && iTime <= 1.0)
+ return Fun(iTime);
+ return null;
}
virtual double Duration()
@@ -98,6 +97,14 @@
const ZRef<ZTween<Param> > fTween;
};
+template <class Val, class Param>
+ZRef<ZTween<Val> > sTween_Filter_Coerce(const ZRef<ZTween<Param> >& iTween)
+ {
+ if (iTween)
+ return new ZTween_Filter_Coerce<Val,Param>(iTween);
+ return null;
+ }
+
// =================================================================================================
// MARK: - sTween_OneMinus
@@ -443,14 +450,14 @@
Val spTweenFun_BounceIn(double iTime)
{
if (iTime < 1 / 2.75)
+ {
return 7.5625 * iTime * iTime;
-
+ }
else if (iTime < 2 / 2.75)
{
iTime -= 1.5/2.75;
return 7.5625 * iTime * iTime + .75;
}
-
else if (iTime < 2.5 / 2.75)
{
iTime -= 2.25/2.75;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-28 18:13:42
|
Revision: 2693
http://zoolib.svn.sourceforge.net/zoolib/?rev=2693&view=rev
Author: agreen
Date: 2012-01-28 18:13:35 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
Add Mutable -- returns a non-const ref to a value of the type,
whatever was already there if that's possible, otherwise a
default-initialized value.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp
trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp 2012-01-28 18:11:49 UTC (rev 2692)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Any.cpp 2012-01-28 18:13:35 UTC (rev 2693)
@@ -94,6 +94,13 @@
ZVal_Any ZVal_Any::Get(const string8& iName) const
{ return this->GetMap().Get(iName); }
+ZVal_Any& ZVal_Any::Mutable(const string8& iName)
+ {
+ if (ZMap_Any* asMap = this->PGetMutable<ZMap_Any>())
+ return asMap->Mutable(iName);
+ return this->Mutable<ZMap_Any>().Mutable(iName);
+ }
+
ZVal_Any* ZVal_Any::PGetMutable(size_t iIndex)
{
if (ZSeq_Any* asSeq = this->PGetMutable<ZSeq_Any>())
@@ -539,6 +546,12 @@
return *this;
}
+ZVal_Any& ZMap_Any::Mutable(const string8& iName)
+ {
+ this->pTouch();
+ return fRep->fMap[iName];
+ }
+
ZMap_Any::Index_t ZMap_Any::Begin() const
{
if (fRep)
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2012-01-28 18:11:49 UTC (rev 2692)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2012-01-28 18:13:35 UTC (rev 2693)
@@ -148,11 +148,13 @@
using ZAny::DGet;
using ZAny::Get;
using ZAny::Set;
+ using ZAny::Mutable;
// Shortcut access to values in an enclosed Map.
ZVal_Any* PGetMutable(const string8& iName);
const ZVal_Any* PGet(const string8& iName) const;
ZVal_Any Get(const string8& iName) const;
+ ZVal_Any& Mutable(const string8& iName);
template <class S>
S* PGetMutable(const string8& iName)
@@ -178,6 +180,10 @@
S Get(const string8& iName) const
{ return this->Get(iName).Get<S>(); }
+ template <class S>
+ S& Mutable(const string8& iName) const
+ { return this->Mutable(iName).Mutable<S>(); }
+
// Shortcut access to values in an enclosed Seq.
ZVal_Any* PGetMutable(size_t iIndex);
const ZVal_Any* PGet(size_t iIndex) const;
@@ -497,6 +503,8 @@
ZMap_Any& Erase(const Index_t& iIndex);
// Our protocol
+ ZVal_Any& Mutable(const string8& iName);
+
Index_t Begin() const;
Index_t End() const;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-28 18:11:55
|
Revision: 2692
http://zoolib.svn.sourceforge.net/zoolib/?rev=2692&view=rev
Author: agreen
Date: 2012-01-28 18:11:49 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
Don't need the using declaration.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZCallable_Bind.h
Modified: trunk/zoolib/source/cxx/zoolib/ZCallable_Bind.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCallable_Bind.h 2012-01-26 18:22:12 UTC (rev 2691)
+++ trunk/zoolib/source/cxx/zoolib/ZCallable_Bind.h 2012-01-28 18:11:49 UTC (rev 2692)
@@ -1292,8 +1292,6 @@
typedef typename ST::LE PD;
typedef typename ST::LF PE;
- using ZCallable<typename ST_T<Signature_p>::SL01>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0); }
@@ -1389,8 +1387,6 @@
typedef typename ST::LE PC;
typedef typename ST::LF PD;
- using ZCallable<typename ST_T<Signature_p>::SL02>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1); }
@@ -1483,8 +1479,6 @@
typedef typename ST::LE PB;
typedef typename ST::LF PC;
- using ZCallable<typename ST_T<Signature_p>::SL03>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2); }
@@ -1574,8 +1568,6 @@
typedef typename ST::LE PA;
typedef typename ST::LF PB;
- using ZCallable<typename ST_T<Signature_p>::SL04>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3); }
@@ -1662,8 +1654,6 @@
typedef typename ST::LE P9;
typedef typename ST::LF PA;
- using ZCallable<typename ST_T<Signature_p>::SL05>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4); }
@@ -1747,8 +1737,6 @@
typedef typename ST::LE P8;
typedef typename ST::LF P9;
- using ZCallable<typename ST_T<Signature_p>::SL06>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5); }
@@ -1829,8 +1817,6 @@
typedef typename ST::LE P7;
typedef typename ST::LF P8;
- using ZCallable<typename ST_T<Signature_p>::SL07>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6); }
@@ -1908,8 +1894,6 @@
typedef typename ST::LE P6;
typedef typename ST::LF P7;
- using ZCallable<typename ST_T<Signature_p>::SL08>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7); }
@@ -1985,8 +1969,6 @@
typedef typename ST::LE P5;
typedef typename ST::LF P6;
- using ZCallable<typename ST_T<Signature_p>::SL09>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8); }
@@ -2060,8 +2042,6 @@
typedef typename ST::LE P4;
typedef typename ST::LF P5;
- using ZCallable<typename ST_T<Signature_p>::SL10>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9); }
@@ -2133,8 +2113,6 @@
typedef typename ST::LE P3;
typedef typename ST::LF P4;
- using ZCallable<typename ST_T<Signature_p>::SL11>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA); }
@@ -2204,8 +2182,6 @@
typedef typename ST::LE P2;
typedef typename ST::LF P3;
- using ZCallable<typename ST_T<Signature_p>::SL12>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB); }
@@ -2273,8 +2249,6 @@
typedef typename ST::LE P1;
typedef typename ST::LF P2;
- using ZCallable<typename ST_T<Signature_p>::SL13>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB, fC); }
@@ -2340,8 +2314,6 @@
typedef typename ST::LE P0;
typedef typename ST::LF P1;
- using ZCallable<typename ST_T<Signature_p>::SL14>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB, fC, fD); }
@@ -2405,7 +2377,6 @@
typedef typename ST::R R;
typedef typename ST::LF P0;
- using ZCallable<typename ST_T<Signature_p>::SL15>::Call;
private:
ZQ<R> QCall()
@@ -2468,8 +2439,6 @@
typedef typename ST::R R;
- using ZCallable<typename ST_T<Signature_p>::SL16>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB, fC, fD, fE, fF); }
@@ -2859,8 +2828,6 @@
typedef typename ST::LD PD;
typedef typename ST::LE PE;
- using ZCallable<typename ST_T<Signature_p>::SR01>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0); }
@@ -2956,8 +2923,6 @@
typedef typename ST::LC PC;
typedef typename ST::LD PD;
- using ZCallable<typename ST_T<Signature_p>::SR02>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1); }
@@ -3050,8 +3015,6 @@
typedef typename ST::LB PB;
typedef typename ST::LC PC;
- using ZCallable<typename ST_T<Signature_p>::SR03>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2); }
@@ -3141,8 +3104,6 @@
typedef typename ST::LA PA;
typedef typename ST::LB PB;
- using ZCallable<typename ST_T<Signature_p>::SR04>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3); }
@@ -3229,8 +3190,6 @@
typedef typename ST::L9 P9;
typedef typename ST::LA PA;
- using ZCallable<typename ST_T<Signature_p>::SR05>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4); }
@@ -3314,8 +3273,6 @@
typedef typename ST::L8 P8;
typedef typename ST::L9 P9;
- using ZCallable<typename ST_T<Signature_p>::SR06>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5); }
@@ -3396,8 +3353,6 @@
typedef typename ST::L7 P7;
typedef typename ST::L8 P8;
- using ZCallable<typename ST_T<Signature_p>::SR07>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6); }
@@ -3475,8 +3430,6 @@
typedef typename ST::L6 P6;
typedef typename ST::L7 P7;
- using ZCallable<typename ST_T<Signature_p>::SR08>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7); }
@@ -3552,8 +3505,6 @@
typedef typename ST::L5 P5;
typedef typename ST::L6 P6;
- using ZCallable<typename ST_T<Signature_p>::SR09>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8); }
@@ -3627,8 +3578,6 @@
typedef typename ST::L4 P4;
typedef typename ST::L5 P5;
- using ZCallable<typename ST_T<Signature_p>::SR10>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9); }
@@ -3700,8 +3649,6 @@
typedef typename ST::L3 P3;
typedef typename ST::L4 P4;
- using ZCallable<typename ST_T<Signature_p>::SR11>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA); }
@@ -3771,8 +3718,6 @@
typedef typename ST::L2 P2;
typedef typename ST::L3 P3;
- using ZCallable<typename ST_T<Signature_p>::SR12>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB); }
@@ -3840,8 +3785,6 @@
typedef typename ST::L1 P1;
typedef typename ST::L2 P2;
- using ZCallable<typename ST_T<Signature_p>::SR13>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB, fC); }
@@ -3907,8 +3850,6 @@
typedef typename ST::L0 P0;
typedef typename ST::L1 P1;
- using ZCallable<typename ST_T<Signature_p>::SR14>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB, fC, fD); }
@@ -3972,8 +3913,6 @@
typedef typename ST::R R;
typedef typename ST::L0 P0;
- using ZCallable<typename ST_T<Signature_p>::SR15>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB, fC, fD, fE); }
@@ -4035,8 +3974,6 @@
typedef typename ST::R R;
- using ZCallable<typename ST_T<Signature_p>::SR16>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fA, fB, fC, fD, fE, fF); }
@@ -4424,8 +4361,6 @@
typedef typename ST::LE PE;
typedef typename ST::LF PF;
- using ZCallable<Signature_p>::Call;
-
private:
ZQ<R> QCall()
{ return fCallable->QCall(fCallable); }
@@ -4535,8 +4470,6 @@
typedef typename ST::LE PE;
typedef typename ST::LF PF;
- using ZCallable<Signature>::Call;
-
private:
ZQ<R> QCall()
{
@@ -4685,8 +4618,6 @@
typedef typename ST::LE PE;
typedef typename ST::LF PF;
- using ZCallable<Signature>::Call;
-
private:
ZQ<void> QCall()
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-26 18:22:23
|
Revision: 2691
http://zoolib.svn.sourceforge.net/zoolib/?rev=2691&view=rev
Author: agreen
Date: 2012-01-26 18:22:12 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
More fiddling around with DynNonConst, conforming to ZRef::DynamicCast.
Modified Paths:
--------------
trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp
trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Intersect.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h
trunk/zoolib/source/cxx/zoolib/ZYad.cpp
trunk/zoolib/source/cxx/zoolib/zconfigl.h
Modified: trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -174,7 +174,7 @@
void Source_Union::Proxy::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Proxy* theVisitor = DynNonConst<Visitor_Proxy*>(&iVisitor))
+ if (Visitor_Proxy* theVisitor = DynNonConst<Visitor_Proxy>(&iVisitor))
this->Accept_Proxy(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -182,7 +182,7 @@
void Source_Union::Proxy::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZRA::Expr_Rel>& iVisitor)
{
- if (Visitor_Proxy* theVisitor = DynNonConst<Visitor_Proxy*>(&iVisitor))
+ if (Visitor_Proxy* theVisitor = DynNonConst<Visitor_Proxy>(&iVisitor))
this->Accept_Proxy(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -49,20 +49,18 @@
void Expr_Rel_Search::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Search* theVisitor =
- DynNonConst<Visitor_Expr_Rel_Search*>(&iVisitor))
- { this->Accept_Expr_Rel_Search(*theVisitor); }
+ if (Visitor_Expr_Rel_Search* theVisitor = DynNonConst<Visitor_Expr_Rel_Search>(&iVisitor))
+ this->Accept_Expr_Rel_Search(*theVisitor);
else
- { inherited::Accept(iVisitor); }
+ inherited::Accept(iVisitor);
}
void Expr_Rel_Search::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZRA::Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Search* theVisitor =
- DynNonConst<Visitor_Expr_Rel_Search*>(&iVisitor))
- { this->Accept_Expr_Rel_Search(*theVisitor); }
+ if (Visitor_Expr_Rel_Search* theVisitor = DynNonConst<Visitor_Expr_Rel_Search>(&iVisitor))
+ this->Accept_Expr_Rel_Search(*theVisitor);
else
- { inherited::Accept_Expr_Op0(iVisitor); }
+ inherited::Accept_Expr_Op0(iVisitor);
}
ZRef<ZRA::Expr_Rel> Expr_Rel_Search::Self()
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -66,7 +66,7 @@
void Expr_Rel_Calc::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Calc* theVisitor = DynNonConst<Visitor_Expr_Rel_Calc*>(&iVisitor))
+ if (Visitor_Expr_Rel_Calc* theVisitor = DynNonConst<Visitor_Expr_Rel_Calc>(&iVisitor))
this->Accept_Expr_Rel_Calc(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -74,7 +74,7 @@
void Expr_Rel_Calc::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Calc* theVisitor = DynNonConst<Visitor_Expr_Rel_Calc*>(&iVisitor))
+ if (Visitor_Expr_Rel_Calc* theVisitor = DynNonConst<Visitor_Expr_Rel_Calc>(&iVisitor))
this->Accept_Expr_Rel_Calc(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -43,7 +43,7 @@
void Expr_Rel_Concrete::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Concrete* theVisitor = DynNonConst<Visitor_Expr_Rel_Concrete*>(&iVisitor))
+ if (Visitor_Expr_Rel_Concrete* theVisitor = DynNonConst<Visitor_Expr_Rel_Concrete>(&iVisitor))
this->Accept_Expr_Rel_Concrete(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -51,7 +51,7 @@
void Expr_Rel_Concrete::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Concrete* theVisitor = DynNonConst<Visitor_Expr_Rel_Concrete*>(&iVisitor))
+ if (Visitor_Expr_Rel_Concrete* theVisitor = DynNonConst<Visitor_Expr_Rel_Concrete>(&iVisitor))
this->Accept_Expr_Rel_Concrete(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -52,7 +52,7 @@
void Expr_Rel_Const::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Const* theVisitor = DynNonConst<Visitor_Expr_Rel_Const*>(&iVisitor))
+ if (Visitor_Expr_Rel_Const* theVisitor = DynNonConst<Visitor_Expr_Rel_Const>(&iVisitor))
this->Accept_Expr_Rel_Const(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -60,7 +60,7 @@
void Expr_Rel_Const::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Const* theVisitor = DynNonConst<Visitor_Expr_Rel_Const*>(&iVisitor))
+ if (Visitor_Expr_Rel_Const* theVisitor = DynNonConst<Visitor_Expr_Rel_Const>(&iVisitor))
this->Accept_Expr_Rel_Const(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -45,7 +45,7 @@
void Expr_Rel_Dee::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Dee* theVisitor = DynNonConst<Visitor_Expr_Rel_Dee*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dee* theVisitor = DynNonConst<Visitor_Expr_Rel_Dee>(&iVisitor))
this->Accept_Expr_Rel_Dee(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -53,7 +53,7 @@
void Expr_Rel_Dee::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Dee* theVisitor = DynNonConst<Visitor_Expr_Rel_Dee*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dee* theVisitor = DynNonConst<Visitor_Expr_Rel_Dee>(&iVisitor))
this->Accept_Expr_Rel_Dee(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -49,14 +49,10 @@
void Expr_Rel_Difference::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
if (Visitor_Expr_Rel_Difference* theVisitor =
- DynNonConst<Visitor_Expr_Rel_Difference*>(&iVisitor))
- {
- this->Accept_Expr_Rel_Difference(*theVisitor);
- }
+ DynNonConst<Visitor_Expr_Rel_Difference>(&iVisitor))
+ { this->Accept_Expr_Rel_Difference(*theVisitor); }
else
- {
- inherited::Accept_Expr_Op2(iVisitor);
- }
+ { inherited::Accept_Expr_Op2(iVisitor); }
}
ZRef<Expr_Rel> Expr_Rel_Difference::Self()
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -45,7 +45,7 @@
void Expr_Rel_Dum::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Dum* theVisitor = DynNonConst<Visitor_Expr_Rel_Dum*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dum* theVisitor = DynNonConst<Visitor_Expr_Rel_Dum>(&iVisitor))
this->Accept_Expr_Rel_Dum(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -53,7 +53,7 @@
void Expr_Rel_Dum::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Dum* theVisitor = DynNonConst<Visitor_Expr_Rel_Dum*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dum* theVisitor = DynNonConst<Visitor_Expr_Rel_Dum>(&iVisitor))
this->Accept_Expr_Rel_Dum(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -54,7 +54,7 @@
void Expr_Rel_Embed::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Embed* theVisitor = DynNonConst<Visitor_Expr_Rel_Embed*>(&iVisitor))
+ if (Visitor_Expr_Rel_Embed* theVisitor = DynNonConst<Visitor_Expr_Rel_Embed>(&iVisitor))
this->Accept_Expr_Rel_Embed(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -62,7 +62,7 @@
void Expr_Rel_Embed::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Embed* theVisitor = DynNonConst<Visitor_Expr_Rel_Embed*>(&iVisitor))
+ if (Visitor_Expr_Rel_Embed* theVisitor = DynNonConst<Visitor_Expr_Rel_Embed>(&iVisitor))
this->Accept_Expr_Rel_Embed(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Intersect.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Intersect.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Intersect.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -48,15 +48,10 @@
void Expr_Rel_Intersect::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Intersect* theVisitor =
- dynamic_cast<Visitor_Expr_Rel_Intersect*>(&iVisitor))
- {
+ if (Visitor_Expr_Rel_Intersect* theVisitor = DynNonConst<Visitor_Expr_Rel_Intersect>(&iVisitor))
this->Accept_Expr_Rel_Intersect(*theVisitor);
- }
else
- {
inherited::Accept_Expr_Op2(iVisitor);
- }
}
ZRef<Expr_Rel> Expr_Rel_Intersect::Self()
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -48,7 +48,7 @@
void Expr_Rel_Product::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Product* theVisitor = DynNonConst<Visitor_Expr_Rel_Product*>(&iVisitor))
+ if (Visitor_Expr_Rel_Product* theVisitor = DynNonConst<Visitor_Expr_Rel_Product>(&iVisitor))
this->Accept_Expr_Rel_Product(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -56,7 +56,7 @@
void Expr_Rel_Product::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Product* theVisitor = DynNonConst<Visitor_Expr_Rel_Product*>(&iVisitor))
+ if (Visitor_Expr_Rel_Product* theVisitor = DynNonConst<Visitor_Expr_Rel_Product>(&iVisitor))
this->Accept_Expr_Rel_Product(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -52,7 +52,7 @@
void Expr_Rel_Project::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Project* theVisitor = DynNonConst<Visitor_Expr_Rel_Project*>(&iVisitor))
+ if (Visitor_Expr_Rel_Project* theVisitor = DynNonConst<Visitor_Expr_Rel_Project>(&iVisitor))
this->Accept_Expr_Rel_Project(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -60,7 +60,7 @@
void Expr_Rel_Project::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Project* theVisitor = DynNonConst<Visitor_Expr_Rel_Project*>(&iVisitor))
+ if (Visitor_Expr_Rel_Project* theVisitor = DynNonConst<Visitor_Expr_Rel_Project>(&iVisitor))
this->Accept_Expr_Rel_Project(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -61,7 +61,7 @@
void Expr_Rel_Rename::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Rename* theVisitor = DynNonConst<Visitor_Expr_Rel_Rename*>(&iVisitor))
+ if (Visitor_Expr_Rel_Rename* theVisitor = DynNonConst<Visitor_Expr_Rel_Rename>(&iVisitor))
this->Accept_Expr_Rel_Rename(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -69,7 +69,7 @@
void Expr_Rel_Rename::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Rename* theVisitor = DynNonConst<Visitor_Expr_Rel_Rename*>(&iVisitor))
+ if (Visitor_Expr_Rel_Rename* theVisitor = DynNonConst<Visitor_Expr_Rel_Rename>(&iVisitor))
this->Accept_Expr_Rel_Rename(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -52,7 +52,7 @@
void Expr_Rel_Restrict::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Restrict* theVisitor = DynNonConst<Visitor_Expr_Rel_Restrict*>(&iVisitor))
+ if (Visitor_Expr_Rel_Restrict* theVisitor = DynNonConst<Visitor_Expr_Rel_Restrict>(&iVisitor))
this->Accept_Expr_Rel_Restrict(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -60,7 +60,7 @@
void Expr_Rel_Restrict::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Restrict* theVisitor = DynNonConst<Visitor_Expr_Rel_Restrict*>(&iVisitor))
+ if (Visitor_Expr_Rel_Restrict* theVisitor = DynNonConst<Visitor_Expr_Rel_Restrict>(&iVisitor))
this->Accept_Expr_Rel_Restrict(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -48,7 +48,7 @@
void Expr_Rel_Union::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Union* theVisitor = DynNonConst<Visitor_Expr_Rel_Union*>(&iVisitor))
+ if (Visitor_Expr_Rel_Union* theVisitor = DynNonConst<Visitor_Expr_Rel_Union>(&iVisitor))
this->Accept_Expr_Rel_Union(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -27,7 +27,7 @@
void ZExpr::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr* theVisitor = DynNonConst<ZVisitor_Expr*>(&iVisitor))
+ if (ZVisitor_Expr* theVisitor = DynNonConst<ZVisitor_Expr>(&iVisitor))
this->Accept_Expr(*theVisitor);
else
ZVisitee::Accept(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -43,7 +43,7 @@
void ZExpr_Bool_True::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_True* theVisitor = DynNonConst<ZVisitor_Expr_Bool_True*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_True* theVisitor = DynNonConst<ZVisitor_Expr_Bool_True>(&iVisitor))
this->Accept_Expr_Bool_True(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -51,7 +51,7 @@
void ZExpr_Bool_True::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_True* theVisitor = DynNonConst<ZVisitor_Expr_Bool_True*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_True* theVisitor = DynNonConst<ZVisitor_Expr_Bool_True>(&iVisitor))
this->Accept_Expr_Bool_True(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
@@ -92,7 +92,7 @@
void ZExpr_Bool_False::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_False* theVisitor = DynNonConst<ZVisitor_Expr_Bool_False*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_False* theVisitor = DynNonConst<ZVisitor_Expr_Bool_False>(&iVisitor))
this->Accept_Expr_Bool_False(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -100,7 +100,7 @@
void ZExpr_Bool_False::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_False* theVisitor = DynNonConst<ZVisitor_Expr_Bool_False*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_False* theVisitor = DynNonConst<ZVisitor_Expr_Bool_False>(&iVisitor))
this->Accept_Expr_Bool_False(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
@@ -136,7 +136,7 @@
void ZExpr_Bool_Not::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_Not* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Not*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Not* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Not>(&iVisitor))
this->Accept_Expr_Bool_Not(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -144,7 +144,7 @@
void ZExpr_Bool_Not::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_Not* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Not*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Not* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Not>(&iVisitor))
this->Accept_Expr_Bool_Not(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
@@ -180,7 +180,7 @@
void ZExpr_Bool_And::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_And* theVisitor = DynNonConst<ZVisitor_Expr_Bool_And*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_And* theVisitor = DynNonConst<ZVisitor_Expr_Bool_And>(&iVisitor))
this->Accept_Expr_Bool_And(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -188,7 +188,7 @@
void ZExpr_Bool_And::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_And* theVisitor = DynNonConst<ZVisitor_Expr_Bool_And*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_And* theVisitor = DynNonConst<ZVisitor_Expr_Bool_And>(&iVisitor))
this->Accept_Expr_Bool_And(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
@@ -228,7 +228,7 @@
void ZExpr_Bool_Or::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_Or* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Or*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Or* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Or>(&iVisitor))
this->Accept_Expr_Bool_Or(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -236,7 +236,7 @@
void ZExpr_Bool_Or::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_Or* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Or*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Or* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Or>(&iVisitor))
this->Accept_Expr_Bool_Or(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -35,20 +35,18 @@
void ZExpr_Bool_ValPred::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_ValPred* theVisitor =
- DynNonConst<ZVisitor_Expr_Bool_ValPred*>(&iVisitor))
- { this->Accept_Expr_Bool_ValPred(*theVisitor); }
+ if (ZVisitor_Expr_Bool_ValPred* theVisitor = DynNonConst<ZVisitor_Expr_Bool_ValPred>(&iVisitor))
+ this->Accept_Expr_Bool_ValPred(*theVisitor);
else
- { inherited::Accept(iVisitor); }
+ inherited::Accept(iVisitor);
}
void ZExpr_Bool_ValPred::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_ValPred* theVisitor =
- DynNonConst<ZVisitor_Expr_Bool_ValPred*>(&iVisitor))
- { this->Accept_Expr_Bool_ValPred(*theVisitor); }
+ if (ZVisitor_Expr_Bool_ValPred* theVisitor = DynNonConst<ZVisitor_Expr_Bool_ValPred>(&iVisitor))
+ this->Accept_Expr_Bool_ValPred(*theVisitor);
else
- { inherited::Accept_Expr_Op0(iVisitor); }
+ inherited::Accept_Expr_Op0(iVisitor);
}
ZRef<ZExpr_Bool> ZExpr_Bool_ValPred::Self()
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h 2012-01-26 18:22:12 UTC (rev 2691)
@@ -49,7 +49,7 @@
// From ZVisitee
virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Op0_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op0_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op0_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op0_T<T> >(&iVisitor))
this->Accept_Expr_Op0(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -58,7 +58,7 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_Op0_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op0_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op0_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op0_T<T> >(&iVisitor))
{
this->Accept_Expr_Op0(*theVisitor);
}
@@ -114,7 +114,7 @@
// From ZVisitee
virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Op1_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op1_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op1_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op1_T<T> >(&iVisitor))
this->Accept_Expr_Op1(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -123,7 +123,7 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_Op1_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op1_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op1_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op1_T<T> >(&iVisitor))
this->Accept_Expr_Op1(*theVisitor);
else
ZExpr::Accept_Expr(iVisitor);
@@ -186,7 +186,7 @@
// From ZVisitee
virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Op2_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op2_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op2_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op2_T<T> >(&iVisitor))
this->Accept_Expr_Op2(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -195,7 +195,7 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_Op2_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op2_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op2_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op2_T<T> >(&iVisitor))
this->Accept_Expr_Op2(*theVisitor);
else
ZExpr::Accept_Expr(iVisitor);
@@ -261,7 +261,7 @@
// From ZVisitee
virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_OpN_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_OpN_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_OpN_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_OpN_T<T> >(&iVisitor))
this->Accept_Expr_OpN(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -270,7 +270,7 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_OpN_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_OpN_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_OpN_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_OpN_T<T> >(&iVisitor))
this->Accept_Expr_OpN(*theVisitor);
else
ZExpr::Accept_Expr(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZYad.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad.cpp 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/zoolib/ZYad.cpp 2012-01-26 18:22:12 UTC (rev 2691)
@@ -92,7 +92,7 @@
void ZYadR::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Yad* theVisitor = DynNonConst<ZVisitor_Yad*>(&iVisitor))
+ if (ZVisitor_Yad* theVisitor = DynNonConst<ZVisitor_Yad>(&iVisitor))
this->Accept_Yad(*theVisitor);
else
ZVisitee::Accept(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/zconfigl.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/zconfigl.h 2012-01-26 17:23:43 UTC (rev 2690)
+++ trunk/zoolib/source/cxx/zoolib/zconfigl.h 2012-01-26 18:22:12 UTC (rev 2691)
@@ -334,17 +334,33 @@
{ return const_cast<T*>(iT); }
template <class T>
+T* NonConst(T* iT)
+ { return iT; }
+
+template <class T>
T& NonConst(const T& iT)
{ return const_cast<T&>(iT); }
+template <class T>
+T& NonConst(T& iT)
+ { return iT; }
+
template <class P, class T>
-P DynNonConst(const T* iT)
- { return dynamic_cast<P>(NonConst(iT)); }
+P* DynNonConst(const T* iT)
+ { return dynamic_cast<P*>(NonConst(iT)); }
template <class P, class T>
-P DynNonConst(const T& iT)
- { return dynamic_cast<P>(NonConst(iT)); }
+P* DynNonConst(T* iT)
+ { return dynamic_cast<P*>(iT); }
+template <class P, class T>
+P& DynNonConst(const T& iT)
+ { return dynamic_cast<P&>(NonConst(iT)); }
+
+template <class P, class T>
+P& DynNonConst(T& iT)
+ { return dynamic_cast<P&>(iT); }
+
} // namespace ZooLib
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-26 17:23:51
|
Revision: 2690
http://zoolib.svn.sourceforge.net/zoolib/?rev=2690&view=rev
Author: agreen
Date: 2012-01-26 17:23:43 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Conform to ZVisitee::Accept change.
Remove CoerceReal.
Modified Paths:
--------------
trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp
trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp
trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestFactory.cpp
trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp
trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.h
trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp
trunk/zoolib/source/cxx/zoolib/ZDCPixmap_CoreVideo.cpp
trunk/zoolib/source/cxx/zoolib/ZDebug.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.h
trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.h
trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h
trunk/zoolib/source/cxx/zoolib/ZUtil_Any.cpp
trunk/zoolib/source/cxx/zoolib/ZUtil_Any.h
trunk/zoolib/source/cxx/zoolib/ZYad_JSON.cpp
trunk/zoolib/source/cxx/zoolib/ZYad_JSONNormalize.cpp
trunk/zoolib/source/cxx/zoolib/ZYad_XMLPList.cpp
trunk/zoolib/source/cxx/zoolib/ZYad_XMLRPC.cpp
Modified: trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/dataspace/ZDataspace_Source_Union.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -131,7 +131,7 @@
virtual void Finalize();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T<Expr_Rel>
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor);
@@ -172,9 +172,9 @@
void Source_Union::Proxy::Finalize()
{ fSource->pFinalizeProxy(this); }
-void Source_Union::Proxy::Accept(ZVisitor& iVisitor)
+void Source_Union::Proxy::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Proxy* theVisitor = dynamic_cast<Visitor_Proxy*>(&iVisitor))
+ if (Visitor_Proxy* theVisitor = DynNonConst<Visitor_Proxy*>(&iVisitor))
this->Accept_Proxy(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -182,7 +182,7 @@
void Source_Union::Proxy::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZRA::Expr_Rel>& iVisitor)
{
- if (Visitor_Proxy* theVisitor = dynamic_cast<Visitor_Proxy*>(&iVisitor))
+ if (Visitor_Proxy* theVisitor = DynNonConst<Visitor_Proxy*>(&iVisitor))
this->Accept_Proxy(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/javascriptcore/ZJavaScriptCore.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -299,7 +299,7 @@
{
return Value(double(theQ.Get()));
}
- else if (ZQ<double> theQ = sQCoerceReal(iAny))
+ else if (ZQ<double> theQ = sQCoerceRat(iAny))
{
return Value(theQ.Get());
}
Modified: trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestFactory.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestFactory.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/netscape/ZNetscape_GuestFactory.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -66,7 +66,7 @@
#if ZCONFIG_SPI_Enabled(Win)
template <typename P>
-P sLookup_T(HMODULE iHMODULE, const char* iName)
+P spLookup(HMODULE iHMODULE, const char* iName)
{ return reinterpret_cast<P>(::GetProcAddress(iHMODULE, iName)); }
static ZQ<int> spQGetMajorVersion(const UTF16* iNativePath)
@@ -109,17 +109,14 @@
return nullptr;
}
-static void* spLookup(NSModule iModule, const char* iName)
+template <typename P>
+P spLookup(NSModule iNSModule, const char* iName)
{
- if (NSSymbol theSymbol = ::NSLookupSymbolInModule(iModule, iName))
- return ::NSAddressOfSymbol(theSymbol);
+ if (NSSymbol theSymbol = ::NSLookupSymbolInModule(iNSModule, iName))
+ return reinterpret_cast<P>(::NSAddressOfSymbol(theSymbol));
return nullptr;
}
-template <typename P>
-P sLookup_T(NSModule iNSModule, const char* iName)
- { return reinterpret_cast<P>(spLookup(iNSModule, iName)); }
-
#endif // ZCONFIG_SPI_Enabled(CoreFoundation) && __MACH__
// =================================================================================================
@@ -128,7 +125,7 @@
#if ZCONFIG_SPI_Enabled(CoreFoundation)
template <typename P>
-P sLookup_T(CFBundleRef iBundleRef, CFStringRef iName)
+P spLookup(CFBundleRef iBundleRef, CFStringRef iName)
{ return reinterpret_cast<P>(::CFBundleGetFunctionPointerForName(iBundleRef, iName)); }
ZQ<int> spQGetMajorVersion(const ZRef<CFStringRef>& iStringRef)
@@ -193,14 +190,14 @@
ZMemZero_T(fNPPluginFuncs);
fNPPluginFuncs.size = sizeof(NPPluginFuncs);
- fShutdown = sLookup_T<NPP_ShutdownProcPtr>(fHMODULE, "NP_Shutdown");
+ fShutdown = spLookup<NPP_ShutdownProcPtr>(fHMODULE, "NP_Shutdown");
NP_InitializeFuncPtr theInit =
- sLookup_T<NP_InitializeFuncPtr>
+ spLookup<NP_InitializeFuncPtr>
(fHMODULE, "NP_Initialize");
NP_GetEntryPointsFuncPtr theEntryPoints =
- sLookup_T<NP_GetEntryPointsFuncPtr>
+ spLookup<NP_GetEntryPointsFuncPtr>
(fHMODULE, "NP_GetEntryPoints");
if (!fShutdown || !theInit || !theEntryPoints)
@@ -210,7 +207,7 @@
theEntryPoints(&fNPPluginFuncs);
if (Flash_DisableLocalSecurityFuncPtr theDLS =
- sLookup_T<Flash_DisableLocalSecurityFuncPtr>(fHMODULE, "Flash_DisableLocalSecurity"))
+ spLookup<Flash_DisableLocalSecurityFuncPtr>(fHMODULE, "Flash_DisableLocalSecurity"))
{
theDLS();
}
@@ -296,24 +293,22 @@
// don't do this, and unload the bundle, then any subsequent loader will
// get nils for any entry point. In Safari this manifests with a
// "Internal error unloading bundle" log message.
- bool isMachOPlugin = ::CFBundleGetFunctionPointerForName(theBundleRef, CFSTR("NP_Initialize"));
-
// This also tells us that the NP_Initialize entry point exists, so it's
// a macho binary (CFM would only provide 'main'), and we should use NSModule
// to load our independent instantiation.
- if (isMachOPlugin)
+ if (::CFBundleGetFunctionPointerForName(theBundleRef, CFSTR("NP_Initialize")))
{
fNSModule = spLoadNSModule(theBundleRef);
- fShutdown = sLookup_T<NPP_ShutdownProcPtr>(fNSModule, "_NP_Shutdown");
+ fShutdown = spLookup<NPP_ShutdownProcPtr>(fNSModule, "_NP_Shutdown");
NP_GetEntryPointsFuncPtr theEntryPoints =
- sLookup_T<NP_GetEntryPointsFuncPtr>
+ spLookup<NP_GetEntryPointsFuncPtr>
(fNSModule, "_NP_GetEntryPoints");
NP_InitializeFuncPtr theInit =
- sLookup_T<NP_InitializeFuncPtr>
+ spLookup<NP_InitializeFuncPtr>
(fNSModule, "_NP_Initialize");
if (!fShutdown || !theInit || !theEntryPoints)
@@ -350,7 +345,7 @@
// lookup mechanism will have created a MachO-callable thunk for it.
MainFuncPtr theMain =
- sLookup_T<MainFuncPtr>
+ spLookup<MainFuncPtr>
(theBundleRef, CFSTR("main"));
if (!theMain)
@@ -441,7 +436,7 @@
CFBundleRef theBundleRef = ::CFPlugInGetBundle(fPlugInRef);
// We're PowerPC -- look for main(), and if it's there we can just call it.
- MainFuncPtr theMain = sLookup_T<MainFuncPtr>(theBundleRef, CFSTR("main"));
+ MainFuncPtr theMain = spLookup<MainFuncPtr>(theBundleRef, CFSTR("main"));
if (theMain)
{
@@ -456,14 +451,14 @@
(fNPNF.size - offsetof(NPNetscapeFuncs_Z, geturl)) / sizeof(void*),
fGlue_NPNF);
- fShutdown = sLookup_T<NPP_ShutdownProcPtr>(theBundleRef, CFSTR("NP_Shutdown"));
+ fShutdown = spLookup<NPP_ShutdownProcPtr>(theBundleRef, CFSTR("NP_Shutdown"));
NP_GetEntryPointsFuncPtr theEntryPoints =
- sLookup_T<NP_GetEntryPointsFuncPtr>
+ spLookup<NP_GetEntryPointsFuncPtr>
(theBundleRef, CFSTR("NP_GetEntryPoints"));
NP_InitializeFuncPtr theInit =
- sLookup_T<NP_InitializeFuncPtr>
+ spLookup<NP_InitializeFuncPtr>
(theBundleRef, CFSTR("NP_Initialize"));
if (!fShutdown || !theInit || !theEntryPoints)
Modified: trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -47,20 +47,22 @@
, fExpr_Bool(iExpr_Bool)
{}
-void Expr_Rel_Search::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Search::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Search* theVisitor = dynamic_cast<Visitor_Expr_Rel_Search*>(&iVisitor))
- this->Accept_Expr_Rel_Search(*theVisitor);
+ if (Visitor_Expr_Rel_Search* theVisitor =
+ DynNonConst<Visitor_Expr_Rel_Search*>(&iVisitor))
+ { this->Accept_Expr_Rel_Search(*theVisitor); }
else
- inherited::Accept(iVisitor);
+ { inherited::Accept(iVisitor); }
}
void Expr_Rel_Search::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZRA::Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Search* theVisitor = dynamic_cast<Visitor_Expr_Rel_Search*>(&iVisitor))
- this->Accept_Expr_Rel_Search(*theVisitor);
+ if (Visitor_Expr_Rel_Search* theVisitor =
+ DynNonConst<Visitor_Expr_Rel_Search*>(&iVisitor))
+ { this->Accept_Expr_Rel_Search(*theVisitor); }
else
- inherited::Accept_Expr_Op0(iVisitor);
+ { inherited::Accept_Expr_Op0(iVisitor); }
}
ZRef<ZRA::Expr_Rel> Expr_Rel_Search::Self()
Modified: trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zqe/ZQE_Expr_Rel_Search.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -42,7 +42,7 @@
Expr_Rel_Search(const ZRA::Rename& iRename, const ZRef<ZExpr_Bool>& iExpr_Bool);
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T<Expr_Rel>
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -64,9 +64,9 @@
Expr_Rel_Calc::~Expr_Rel_Calc()
{}
-void Expr_Rel_Calc::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Calc::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Calc* theVisitor = dynamic_cast<Visitor_Expr_Rel_Calc*>(&iVisitor))
+ if (Visitor_Expr_Rel_Calc* theVisitor = DynNonConst<Visitor_Expr_Rel_Calc*>(&iVisitor))
this->Accept_Expr_Rel_Calc(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -74,7 +74,7 @@
void Expr_Rel_Calc::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Calc* theVisitor = dynamic_cast<Visitor_Expr_Rel_Calc*>(&iVisitor))
+ if (Visitor_Expr_Rel_Calc* theVisitor = DynNonConst<Visitor_Expr_Rel_Calc*>(&iVisitor))
this->Accept_Expr_Rel_Calc(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Calc.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -52,7 +52,7 @@
virtual ~Expr_Rel_Calc();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op1_T<Expr_Rel>
virtual void Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -41,9 +41,9 @@
: fRelHead(iRelHead)
{}
-void Expr_Rel_Concrete::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Concrete::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Concrete* theVisitor = dynamic_cast<Visitor_Expr_Rel_Concrete*>(&iVisitor))
+ if (Visitor_Expr_Rel_Concrete* theVisitor = DynNonConst<Visitor_Expr_Rel_Concrete*>(&iVisitor))
this->Accept_Expr_Rel_Concrete(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -51,7 +51,7 @@
void Expr_Rel_Concrete::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Concrete* theVisitor = dynamic_cast<Visitor_Expr_Rel_Concrete*>(&iVisitor))
+ if (Visitor_Expr_Rel_Concrete* theVisitor = DynNonConst<Visitor_Expr_Rel_Concrete*>(&iVisitor))
this->Accept_Expr_Rel_Concrete(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Concrete.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -44,7 +44,7 @@
Expr_Rel_Concrete(const RelHead& iRelHead);
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T<Expr_Rel>
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -50,9 +50,9 @@
Expr_Rel_Const::~Expr_Rel_Const()
{}
-void Expr_Rel_Const::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Const::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Const* theVisitor = dynamic_cast<Visitor_Expr_Rel_Const*>(&iVisitor))
+ if (Visitor_Expr_Rel_Const* theVisitor = DynNonConst<Visitor_Expr_Rel_Const*>(&iVisitor))
this->Accept_Expr_Rel_Const(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -60,7 +60,7 @@
void Expr_Rel_Const::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Const* theVisitor = dynamic_cast<Visitor_Expr_Rel_Const*>(&iVisitor))
+ if (Visitor_Expr_Rel_Const* theVisitor = DynNonConst<Visitor_Expr_Rel_Const*>(&iVisitor))
this->Accept_Expr_Rel_Const(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Const.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -45,7 +45,7 @@
virtual ~Expr_Rel_Const();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T<Expr_Rel>
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -43,9 +43,9 @@
Expr_Rel_Dee::~Expr_Rel_Dee()
{}
-void Expr_Rel_Dee::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Dee::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Dee* theVisitor = dynamic_cast<Visitor_Expr_Rel_Dee*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dee* theVisitor = DynNonConst<Visitor_Expr_Rel_Dee*>(&iVisitor))
this->Accept_Expr_Rel_Dee(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -53,7 +53,7 @@
void Expr_Rel_Dee::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Dee* theVisitor = dynamic_cast<Visitor_Expr_Rel_Dee*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dee* theVisitor = DynNonConst<Visitor_Expr_Rel_Dee*>(&iVisitor))
this->Accept_Expr_Rel_Dee(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dee.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -46,7 +46,7 @@
virtual ~Expr_Rel_Dee();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T<Expr_Rel>
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Difference.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -49,7 +49,7 @@
void Expr_Rel_Difference::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
if (Visitor_Expr_Rel_Difference* theVisitor =
- dynamic_cast<Visitor_Expr_Rel_Difference*>(&iVisitor))
+ DynNonConst<Visitor_Expr_Rel_Difference*>(&iVisitor))
{
this->Accept_Expr_Rel_Difference(*theVisitor);
}
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -43,9 +43,9 @@
Expr_Rel_Dum::~Expr_Rel_Dum()
{}
-void Expr_Rel_Dum::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Dum::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Dum* theVisitor = dynamic_cast<Visitor_Expr_Rel_Dum*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dum* theVisitor = DynNonConst<Visitor_Expr_Rel_Dum*>(&iVisitor))
this->Accept_Expr_Rel_Dum(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -53,7 +53,7 @@
void Expr_Rel_Dum::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Dum* theVisitor = dynamic_cast<Visitor_Expr_Rel_Dum*>(&iVisitor))
+ if (Visitor_Expr_Rel_Dum* theVisitor = DynNonConst<Visitor_Expr_Rel_Dum*>(&iVisitor))
this->Accept_Expr_Rel_Dum(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Dum.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -46,7 +46,7 @@
virtual ~Expr_Rel_Dum();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T<Expr_Rel>
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -52,9 +52,9 @@
, fRelName(iRelName)
{}
-void Expr_Rel_Embed::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Embed::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Embed* theVisitor = dynamic_cast<Visitor_Expr_Rel_Embed*>(&iVisitor))
+ if (Visitor_Expr_Rel_Embed* theVisitor = DynNonConst<Visitor_Expr_Rel_Embed*>(&iVisitor))
this->Accept_Expr_Rel_Embed(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -62,7 +62,7 @@
void Expr_Rel_Embed::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Embed* theVisitor = dynamic_cast<Visitor_Expr_Rel_Embed*>(&iVisitor))
+ if (Visitor_Expr_Rel_Embed* theVisitor = DynNonConst<Visitor_Expr_Rel_Embed*>(&iVisitor))
this->Accept_Expr_Rel_Embed(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Embed.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -43,7 +43,7 @@
const RelName& iRelName, const ZRef<Expr_Rel>& iEmbedee);
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op2_T
virtual void Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -46,9 +46,9 @@
: inherited(iOp0, iOp1)
{}
-void Expr_Rel_Product::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Product::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Product* theVisitor = dynamic_cast<Visitor_Expr_Rel_Product*>(&iVisitor))
+ if (Visitor_Expr_Rel_Product* theVisitor = DynNonConst<Visitor_Expr_Rel_Product*>(&iVisitor))
this->Accept_Expr_Rel_Product(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -56,7 +56,7 @@
void Expr_Rel_Product::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Product* theVisitor = dynamic_cast<Visitor_Expr_Rel_Product*>(&iVisitor))
+ if (Visitor_Expr_Rel_Product* theVisitor = DynNonConst<Visitor_Expr_Rel_Product*>(&iVisitor))
this->Accept_Expr_Rel_Product(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Product.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -42,7 +42,7 @@
Expr_Rel_Product(const ZRef<Expr_Rel>& iOp0, const ZRef<Expr_Rel>& iOp1);
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op2_T
virtual void Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -50,9 +50,9 @@
Expr_Rel_Project::~Expr_Rel_Project()
{}
-void Expr_Rel_Project::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Project::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Project* theVisitor = dynamic_cast<Visitor_Expr_Rel_Project*>(&iVisitor))
+ if (Visitor_Expr_Rel_Project* theVisitor = DynNonConst<Visitor_Expr_Rel_Project*>(&iVisitor))
this->Accept_Expr_Rel_Project(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -60,7 +60,7 @@
void Expr_Rel_Project::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Project* theVisitor = dynamic_cast<Visitor_Expr_Rel_Project*>(&iVisitor))
+ if (Visitor_Expr_Rel_Project* theVisitor = DynNonConst<Visitor_Expr_Rel_Project*>(&iVisitor))
this->Accept_Expr_Rel_Project(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Project.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -44,7 +44,7 @@
virtual ~Expr_Rel_Project();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op1_T<Expr_Rel>
virtual void Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -59,9 +59,9 @@
Expr_Rel_Rename::~Expr_Rel_Rename()
{}
-void Expr_Rel_Rename::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Rename::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Rename* theVisitor = dynamic_cast<Visitor_Expr_Rel_Rename*>(&iVisitor))
+ if (Visitor_Expr_Rel_Rename* theVisitor = DynNonConst<Visitor_Expr_Rel_Rename*>(&iVisitor))
this->Accept_Expr_Rel_Rename(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -69,7 +69,7 @@
void Expr_Rel_Rename::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Rename* theVisitor = dynamic_cast<Visitor_Expr_Rel_Rename*>(&iVisitor))
+ if (Visitor_Expr_Rel_Rename* theVisitor = DynNonConst<Visitor_Expr_Rel_Rename*>(&iVisitor))
this->Accept_Expr_Rel_Rename(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Rename.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -45,7 +45,7 @@
virtual ~Expr_Rel_Rename();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op1_T<Expr_Rel>
virtual void Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -50,9 +50,9 @@
Expr_Rel_Restrict::~Expr_Rel_Restrict()
{}
-void Expr_Rel_Restrict::Accept(ZVisitor& iVisitor)
+void Expr_Rel_Restrict::Accept(const ZVisitor& iVisitor)
{
- if (Visitor_Expr_Rel_Restrict* theVisitor = dynamic_cast<Visitor_Expr_Rel_Restrict*>(&iVisitor))
+ if (Visitor_Expr_Rel_Restrict* theVisitor = DynNonConst<Visitor_Expr_Rel_Restrict*>(&iVisitor))
this->Accept_Expr_Rel_Restrict(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -60,7 +60,7 @@
void Expr_Rel_Restrict::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Restrict* theVisitor = dynamic_cast<Visitor_Expr_Rel_Restrict*>(&iVisitor))
+ if (Visitor_Expr_Rel_Restrict* theVisitor = DynNonConst<Visitor_Expr_Rel_Restrict*>(&iVisitor))
this->Accept_Expr_Rel_Restrict(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.h
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Restrict.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -44,7 +44,7 @@
virtual ~Expr_Rel_Restrict();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op1_T<Expr_Rel>
virtual void Accept_Expr_Op1(ZVisitor_Expr_Op1_T<Expr_Rel>& iVisitor);
Modified: trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp
===================================================================
--- trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/more/zoolib/zra/ZRA_Expr_Rel_Union.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -48,7 +48,7 @@
void Expr_Rel_Union::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<Expr_Rel>& iVisitor)
{
- if (Visitor_Expr_Rel_Union* theVisitor = dynamic_cast<Visitor_Expr_Rel_Union*>(&iVisitor))
+ if (Visitor_Expr_Rel_Union* theVisitor = DynNonConst<Visitor_Expr_Rel_Union*>(&iVisitor))
this->Accept_Expr_Rel_Union(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZDCPixmap_CoreVideo.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZDCPixmap_CoreVideo.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZDCPixmap_CoreVideo.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -54,7 +54,8 @@
fBaseAddress = nullptr;
}
-EFormatStandard sAsFormatStandard(OSType iOSType)
+static
+EFormatStandard spAsFormatStandard(OSType iOSType)
{
switch (iOSType)
{
@@ -81,7 +82,7 @@
ZDCPixmap sPixmap(ZRef<CVPixelBufferRef> iPBR)
{
const OSType thePFT = ::CVPixelBufferGetPixelFormatType(iPBR);
- const EFormatStandard theFormat = sAsFormatStandard(thePFT);
+ const EFormatStandard theFormat = spAsFormatStandard(thePFT);
const size_t theRowBytes = ::CVPixelBufferGetBytesPerRow(iPBR);
const size_t theHeight = ::CVPixelBufferGetHeight(iPBR);
Modified: trunk/zoolib/source/cxx/zoolib/ZDebug.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZDebug.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZDebug.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -24,6 +24,7 @@
#include "zoolib/ZCONFIG_SPI.h"
#include <stdio.h>
+#include <stdlib.h> // For abort
#include <string.h>
#if ZCONFIG(Compiler, MSVC)
@@ -287,6 +288,9 @@
// Perhaps it should throw an exception in production code.
void ZUnimplemented()
- { ZDebugStopf(0, ("Unimplemented routine")); }
+ {
+ ZDebugStopf(0, ("Unimplemented routine"));
+ abort();
+ }
} // namespace ZooLib
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -41,9 +41,9 @@
return spTrue;
}
-void ZExpr_Bool_True::Accept(ZVisitor& iVisitor)
+void ZExpr_Bool_True::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_True* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_True*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_True* theVisitor = DynNonConst<ZVisitor_Expr_Bool_True*>(&iVisitor))
this->Accept_Expr_Bool_True(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -51,7 +51,7 @@
void ZExpr_Bool_True::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_True* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_True*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_True* theVisitor = DynNonConst<ZVisitor_Expr_Bool_True*>(&iVisitor))
this->Accept_Expr_Bool_True(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
@@ -90,9 +90,9 @@
return spFalse;
}
-void ZExpr_Bool_False::Accept(ZVisitor& iVisitor)
+void ZExpr_Bool_False::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_False* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_False*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_False* theVisitor = DynNonConst<ZVisitor_Expr_Bool_False*>(&iVisitor))
this->Accept_Expr_Bool_False(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -100,7 +100,7 @@
void ZExpr_Bool_False::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_False* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_False*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_False* theVisitor = DynNonConst<ZVisitor_Expr_Bool_False*>(&iVisitor))
this->Accept_Expr_Bool_False(*theVisitor);
else
inherited::Accept_Expr_Op0(iVisitor);
@@ -134,9 +134,9 @@
: inherited(iOp0)
{}
-void ZExpr_Bool_Not::Accept(ZVisitor& iVisitor)
+void ZExpr_Bool_Not::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_Not* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_Not*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Not* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Not*>(&iVisitor))
this->Accept_Expr_Bool_Not(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -144,7 +144,7 @@
void ZExpr_Bool_Not::Accept_Expr_Op1(ZVisitor_Expr_Op1_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_Not* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_Not*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Not* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Not*>(&iVisitor))
this->Accept_Expr_Bool_Not(*theVisitor);
else
inherited::Accept_Expr_Op1(iVisitor);
@@ -178,9 +178,9 @@
: inherited(iOp0, iOp1)
{}
-void ZExpr_Bool_And::Accept(ZVisitor& iVisitor)
+void ZExpr_Bool_And::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_And* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_And*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_And* theVisitor = DynNonConst<ZVisitor_Expr_Bool_And*>(&iVisitor))
this->Accept_Expr_Bool_And(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -188,7 +188,7 @@
void ZExpr_Bool_And::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_And* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_And*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_And* theVisitor = DynNonConst<ZVisitor_Expr_Bool_And*>(&iVisitor))
this->Accept_Expr_Bool_And(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
@@ -226,9 +226,9 @@
: inherited(iOp0, iOp1)
{}
-void ZExpr_Bool_Or::Accept(ZVisitor& iVisitor)
+void ZExpr_Bool_Or::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Bool_Or* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_Or*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Or* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Or*>(&iVisitor))
this->Accept_Expr_Bool_Or(*theVisitor);
else
inherited::Accept(iVisitor);
@@ -236,7 +236,7 @@
void ZExpr_Bool_Or::Accept_Expr_Op2(ZVisitor_Expr_Op2_T<ZExpr_Bool>& iVisitor)
{
- if (ZVisitor_Expr_Bool_Or* theVisitor = dynamic_cast<ZVisitor_Expr_Bool_Or*>(&iVisitor))
+ if (ZVisitor_Expr_Bool_Or* theVisitor = DynNonConst<ZVisitor_Expr_Bool_Or*>(&iVisitor))
this->Accept_Expr_Bool_Or(*theVisitor);
else
inherited::Accept_Expr_Op2(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Bool.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -53,7 +53,7 @@
static ZRef<ZExpr_Bool> sTrue();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor);
@@ -96,7 +96,7 @@
static ZRef<ZExpr_Bool> sFalse();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0_T
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor);
@@ -135,7 +135,7 @@
ZExpr_Bool_Not(const ZRef<ZExpr_Bool>& iOp0);
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op1_T
virtual void Accept_Expr_Op1(ZVisitor_Expr_Op1_T<ZExpr_Bool>& iVisitor);
@@ -174,7 +174,7 @@
ZExpr_Bool_And(const ZRef<ZExpr_Bool>& iOp0, const ZRef<ZExpr_Bool>& iOp1);
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op2_T
virtual void Accept_Expr_Op2(ZVisitor_Expr_Op2_T<ZExpr_Bool>& iVisitor);
@@ -213,7 +213,7 @@
ZExpr_Bool_Or(const ZRef<ZExpr_Bool>& iOp0, const ZRef<ZExpr_Bool>& iOp1);
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op2_T
virtual void Accept_Expr_Op2(ZVisitor_Expr_Op2_T<ZExpr_Bool>& iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -33,30 +33,22 @@
ZExpr_Bool_ValPred::~ZExpr_Bool_ValPred()
{}
-void ZExpr_Bool_ValPred::Accept(ZVisitor& iVisitor)
+void ZExpr_Bool_ValPred::Accept(const ZVisitor& iVisitor)
{
if (ZVisitor_Expr_Bool_ValPred* theVisitor =
- dynamic_cast<ZVisitor_Expr_Bool_ValPred*>(&iVisitor))
- {
- this->Accept_Expr_Bool_ValPred(*theVisitor);
- }
+ DynNonConst<ZVisitor_Expr_Bool_ValPred*>(&iVisitor))
+ { this->Accept_Expr_Bool_ValPred(*theVisitor); }
else
- {
- inherited::Accept(iVisitor);
- }
+ { inherited::Accept(iVisitor); }
}
void ZExpr_Bool_ValPred::Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor)
{
if (ZVisitor_Expr_Bool_ValPred* theVisitor =
- dynamic_cast<ZVisitor_Expr_Bool_ValPred*>(&iVisitor))
- {
- this->Accept_Expr_Bool_ValPred(*theVisitor);
- }
+ DynNonConst<ZVisitor_Expr_Bool_ValPred*>(&iVisitor))
+ { this->Accept_Expr_Bool_ValPred(*theVisitor); }
else
- {
- inherited::Accept_Expr_Op0(iVisitor);
- }
+ { inherited::Accept_Expr_Op0(iVisitor); }
}
ZRef<ZExpr_Bool> ZExpr_Bool_ValPred::Self()
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Bool_ValPred.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -42,7 +42,7 @@
virtual ~ZExpr_Bool_ValPred();
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// From ZExpr_Op0
virtual void Accept_Expr_Op0(ZVisitor_Expr_Op0_T<ZExpr_Bool>& iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr_Op_T.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -47,9 +47,9 @@
{}
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor)
+ virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Op0_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_Op0_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op0_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op0_T<T>*>(&iVisitor))
this->Accept_Expr_Op0(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -58,10 +58,14 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_Op0_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_Op0_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op0_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op0_T<T>*>(&iVisitor))
+ {
this->Accept_Expr_Op0(*theVisitor);
+ }
else
+ {
ZExpr::Accept_Expr(iVisitor);
+ }
}
// Our protocol
@@ -108,9 +112,9 @@
{}
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor)
+ virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Op1_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_Op1_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op1_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op1_T<T>*>(&iVisitor))
this->Accept_Expr_Op1(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -119,7 +123,7 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_Op1_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_Op1_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op1_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op1_T<T>*>(&iVisitor))
this->Accept_Expr_Op1(*theVisitor);
else
ZExpr::Accept_Expr(iVisitor);
@@ -180,9 +184,9 @@
{}
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor)
+ virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_Op2_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_Op2_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op2_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op2_T<T>*>(&iVisitor))
this->Accept_Expr_Op2(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -191,7 +195,7 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_Op2_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_Op2_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_Op2_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_Op2_T<T>*>(&iVisitor))
this->Accept_Expr_Op2(*theVisitor);
else
ZExpr::Accept_Expr(iVisitor);
@@ -255,9 +259,9 @@
{}
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor)
+ virtual void Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr_OpN_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_OpN_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_OpN_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_OpN_T<T>*>(&iVisitor))
this->Accept_Expr_OpN(*theVisitor);
else
ZExpr::Accept(iVisitor);
@@ -266,7 +270,7 @@
// From ZExpr
virtual void Accept_Expr(ZVisitor_Expr& iVisitor)
{
- if (ZVisitor_Expr_OpN_T<T>* theVisitor = dynamic_cast<ZVisitor_Expr_OpN_T<T>*>(&iVisitor))
+ if (ZVisitor_Expr_OpN_T<T>* theVisitor = DynNonConst<ZVisitor_Expr_OpN_T<T>*>(&iVisitor))
this->Accept_Expr_OpN(*theVisitor);
else
ZExpr::Accept_Expr(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZUtil_Any.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZUtil_Any.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZUtil_Any.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -33,22 +33,22 @@
if (const bool* pBool = iAny.PGet<bool>())
return *pBool;
- if (ZQ<int64> qInt64 = sQCoerceInt(iAny))
- return (0 != qInt64.Get());
+ if (ZQ<int64> theQ = sQCoerceInt(iAny))
+ return *theQ;
- if (ZQ<double> qDouble = sQCoerceReal(iAny))
- return (0.0 != qDouble.Get());
+ if (ZQ<double> theQ = sQCoerceRat(iAny))
+ return *theQ;
if (const string* pString = iAny.PGet<string>())
{
if (pString->empty())
return false;
- if (ZQ<double> qDouble = ZUtil_string::sQDouble(*pString))
- return (0.0 != qDouble.Get());
+ if (ZQ<double> theQ = ZUtil_string::sQDouble(*pString))
+ return *theQ;
- if (ZQ<int64> qInt64 = ZUtil_string::sQInt64(*pString))
- return (0 != qInt64.Get());
+ if (ZQ<int64> theQ = ZUtil_string::sQInt64(*pString))
+ return *theQ;
if (ZUtil_string::sEquali(*pString, "t") || ZUtil_string::sEquali(*pString, "true"))
return true;
@@ -61,9 +61,9 @@
bool sQCoerceBool(const ZAny& iAny, bool& oVal)
{
- if (ZQ<bool> qBool = sQCoerceBool(iAny))
+ if (ZQ<bool> theQ = sQCoerceBool(iAny))
{
- oVal = qBool.Get();
+ oVal = *theQ;
return true;
}
return false;
@@ -71,15 +71,15 @@
bool sDCoerceBool(bool iDefault, const ZAny& iAny)
{
- if (ZQ<bool> qBool = sQCoerceBool(iAny))
- return qBool.Get();
+ if (ZQ<bool> theQ = sQCoerceBool(iAny))
+ return *theQ;
return iDefault;
}
bool sCoerceBool(const ZAny& iAny)
{
- if (ZQ<bool> qBool = sQCoerceBool(iAny))
- return qBool.Get();
+ if (ZQ<bool> theQ = sQCoerceBool(iAny))
+ return *theQ;
return false;
}
@@ -87,39 +87,39 @@
{
if (false)
{}
- else if (const char* theVal = iAny.PGet<char>())
- return *theVal;
- else if (const signed char* theVal = iAny.PGet<signed char>())
- return *theVal;
- else if (const unsigned char* theVal = iAny.PGet<unsigned char>())
- return *theVal;
- else if (const wchar_t* theVal = iAny.PGet<wchar_t>())
- return *theVal;
- else if (const short* theVal = iAny.PGet<short>())
- return *theVal;
- else if (const unsigned short* theVal = iAny.PGet<unsigned short>())
- return *theVal;
- else if (const int* theVal = iAny.PGet<int>())
- return *theVal;
- else if (const unsigned int* theVal = iAny.PGet<unsigned int>())
- return *theVal;
- else if (const long* theVal = iAny.PGet<long>())
- return *theVal;
- else if (const unsigned long* theVal = iAny.PGet<unsigned long>())
- return *theVal;
- else if (const int64* theVal = iAny.PGet<int64>())
- return *theVal;
- else if (const uint64* theVal = iAny.PGet<uint64>())
- return *theVal;
+ else if (const char* theP = iAny.PGet<char>())
+ return *theP;
+ else if (const signed char* theP = iAny.PGet<signed char>())
+ return *theP;
+ else if (const unsigned char* theP = iAny.PGet<unsigned char>())
+ return *theP;
+ else if (const wchar_t* theP = iAny.PGet<wchar_t>())
+ return *theP;
+ else if (const short* theP = iAny.PGet<short>())
+ return *theP;
+ else if (const unsigned short* theP = iAny.PGet<unsigned short>())
+ return *theP;
+ else if (const int* theP = iAny.PGet<int>())
+ return *theP;
+ else if (const unsigned int* theP = iAny.PGet<unsigned int>())
+ return *theP;
+ else if (const long* theP = iAny.PGet<long>())
+ return *theP;
+ else if (const unsigned long* theP = iAny.PGet<unsigned long>())
+ return *theP;
+ else if (const int64* theP = iAny.PGet<int64>())
+ return *theP;
+ else if (const uint64* theP = iAny.PGet<uint64>())
+ return *theP;
return null;
}
bool sQCoerceInt(const ZAny& iAny, int64& oVal)
{
- if (ZQ<int64> qInt64 = sQCoerceInt(iAny))
+ if (ZQ<int64> theQ = sQCoerceInt(iAny))
{
- oVal = qInt64.Get();
+ oVal = *theQ;
return true;
}
return false;
@@ -127,15 +127,15 @@
int64 sDCoerceInt(int64 iDefault, const ZAny& iAny)
{
- if (ZQ<int64> qInt = sQCoerceInt(iAny))
- return qInt.Get();
+ if (ZQ<int64> theQ = sQCoerceInt(iAny))
+ return *theQ;
return iDefault;
}
int64 sCoerceInt(const ZAny& iAny)
{
- if (ZQ<int64> qInt = sQCoerceInt(iAny))
- return qInt.Get();
+ if (ZQ<int64> theQ = sQCoerceInt(iAny))
+ return *theQ;
return 0;
}
@@ -143,19 +143,19 @@
{
if (false)
{}
- else if (const float* theVal = iAny.PGet<float>())
- return *theVal;
- else if (const double* theVal = iAny.PGet<double>())
- return *theVal;
+ else if (const float* theP = iAny.PGet<float>())
+ return *theP;
+ else if (const double* theP = iAny.PGet<double>())
+ return *theP;
return null;
}
bool sQCoerceRat(const ZAny& iAny, double& oVal)
{
- if (ZQ<double> qDouble = sQCoerceRat(iAny))
+ if (ZQ<double> theQ = sQCoerceRat(iAny))
{
- oVal = qDouble.Get();
+ oVal = *theQ;
return true;
}
return false;
@@ -163,15 +163,15 @@
double sDCoerceRat(double iDefault, const ZAny& iAny)
{
- if (ZQ<double> qDouble = sQCoerceRat(iAny))
- return qDouble.Get();
+ if (ZQ<double> theQ = sQCoerceRat(iAny))
+ return *theQ;
return iDefault;
}
double sCoerceRat(const ZAny& iAny)
{
- if (ZQ<double> qDouble = sQCoerceRat(iAny))
- return qDouble.Get();
+ if (ZQ<double> theQ = sQCoerceRat(iAny))
+ return *theQ;
return 0.0;
}
Modified: trunk/zoolib/source/cxx/zoolib/ZUtil_Any.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZUtil_Any.h 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZUtil_Any.h 2012-01-26 17:23:43 UTC (rev 2690)
@@ -45,19 +45,6 @@
double sDCoerceRat(double iDefault, const ZAny& iAny);
double sCoerceRat(const ZAny& iAny);
-// Old names
-inline ZQ<double> sQCoerceReal(const ZAny& iAny)
- { return sQCoerceRat(iAny); }
-
-inline bool sQCoerceReal(const ZAny& iAny, double& oVal)
- { return sQCoerceRat(iAny, oVal); }
-
-inline double sDCoerceReal(double iDefault, const ZAny& iAny)
- { return sDCoerceRat(iDefault, iAny); }
-
-inline double sCoerceReal(const ZAny& iAny)
- { return sCoerceRat(iAny); }
-
} // namespace ZooLib
#endif // __ZUtil_Any_h__
Modified: trunk/zoolib/source/cxx/zoolib/ZYad_JSON.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad_JSON.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZYad_JSON.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -922,10 +922,7 @@
ZRef<ZYadR> iYadR, const ZStrimW& s)
{
if (iYadR)
- {
- Visitor_Writer theWriter(iInitialIndent, iOptions, s);
- iYadR->Accept(theWriter);
- }
+ iYadR->Accept(Visitor_Writer(iInitialIndent, iOptions, s));
}
} // namespace ZYad_JSON
Modified: trunk/zoolib/source/cxx/zoolib/ZYad_JSONNormalize.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad_JSONNormalize.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZYad_JSONNormalize.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -80,7 +80,7 @@
{
oVal = theQ.Get();
}
- else if (ZQ<double> theQ = sQCoerceReal(iVal))
+ else if (ZQ<double> theQ = sQCoerceRat(iVal))
{
oVal = theQ.Get();
}
Modified: trunk/zoolib/source/cxx/zoolib/ZYad_XMLPList.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad_XMLPList.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZYad_XMLPList.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -375,7 +375,7 @@
s.Writef("%lld", asInt64);
s.End("integer");
}
- else if (sQCoerceReal(iVal, asDouble))
+ else if (sQCoerceRat(iVal, asDouble))
{
s.Begin("real");
ZUtil_Strim::sWriteExact(s, asDouble);
Modified: trunk/zoolib/source/cxx/zoolib/ZYad_XMLRPC.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad_XMLRPC.cpp 2012-01-26 17:22:14 UTC (rev 2689)
+++ trunk/zoolib/source/cxx/zoolib/ZYad_XMLRPC.cpp 2012-01-26 17:23:43 UTC (rev 2690)
@@ -592,7 +592,7 @@
s.Writef("%d", int(asInt64));
s.End("i4");
}
- else if (sQCoerceReal(iVal, asDouble))
+ else if (sQCoerceRat(iVal, asDouble))
{
s.Begin("double");
ZUtil_Strim::sWriteExact(s, asDouble);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-26 17:22:20
|
Revision: 2689
http://zoolib.svn.sourceforge.net/zoolib/?rev=2689&view=rev
Author: agreen
Date: 2012-01-26 17:22:14 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Correct a mistake in ZCallableUtil's definitions of Field and Param types.
Some cleanup.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZCallable.h
trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.cpp
trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.h
trunk/zoolib/source/cxx/zoolib/ZCallable_Compound.h
Modified: trunk/zoolib/source/cxx/zoolib/ZCallable.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCallable.h 2012-01-26 17:20:55 UTC (rev 2688)
+++ trunk/zoolib/source/cxx/zoolib/ZCallable.h 2012-01-26 17:22:14 UTC (rev 2689)
@@ -37,29 +37,29 @@
template <class T> struct VT
{
- typedef const T F;
- typedef const T& P;
+ typedef const T Field;
+ typedef const T& Param;
- typedef F Field;
- typedef F Param;
+ typedef Field F;
+ typedef Param P;
};
template <class T> struct VT<const T&>
{
- typedef const T F;
- typedef const T& P;
+ typedef const T Field;
+ typedef const T& Param;
- typedef F Field;
- typedef F Param;
+ typedef Field F;
+ typedef Param P;
};
template <class T> struct VT<T&>
{
- typedef T& F;
- typedef T& P;
+ typedef T& Field;
+ typedef T& Param;
- typedef F Field;
- typedef F Param;
+ typedef Field F;
+ typedef Param P;
};
} // namespace ZCallableUtil
Modified: trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.cpp 2012-01-26 17:20:55 UTC (rev 2688)
+++ trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.cpp 2012-01-26 17:22:14 UTC (rev 2689)
@@ -24,94 +24,81 @@
namespace ZooLib {
// =================================================================================================
-// MARK: - anonymous
+// MARK: - Ctors
-namespace { // anonymous
-
-typedef ZCallable_Bool ZCB;
-
-struct Base : public ZCB
- {
- Base(const ZRef<ZCB>& i0, const ZRef<ZCB>& i1) : f0(i0) , f1(i1) {}
- const ZRef<ZCB> f0;
- const ZRef<ZCB> f1;
- };
-
-} // anonymous namespace
-
-// =================================================================================================
-// MARK: - Makers
-
-ZRef<ZCB> sCallable_True()
+ZRef<ZCallable_Bool> sCallable_True()
{ return sCallable_Const(true); }
-ZRef<ZCB> sCallable_False()
+ZRef<ZCallable_Bool> sCallable_False()
{ return sCallable_Const(false); }
-ZRef<ZCB> sCallable_Not(const ZRef<ZCB>& iCallable)
+ZRef<ZCallable_Bool> sCallable_Not(const ZRef<ZCallable_Bool>& iCallable)
{
- struct Callable : public ZCB
+ struct Callable : public ZCallable_Bool
{
- Callable(const ZRef<ZCB>& iCallable) : fCallable(iCallable) {}
+ Callable(const ZRef<ZCallable_Bool>& iCallable) : fCallable(iCallable) {}
virtual ZQ<bool> QCall()
{
- if (ZQ<bool> theQ = sQCall(fCallable))
- return not theQ.Get();
+ if (const ZQ<bool> theQ = sQCall(fCallable))
+ return not *theQ;
return null;
}
- const ZRef<ZCB> fCallable;
+ const ZRef<ZCallable_Bool> fCallable;
};
return new Callable(iCallable);
}
-ZRef<ZCB> sCallable_And(const ZRef<ZCB>& i0, const ZRef<ZCB>& i1)
+ZRef<ZCallable_Bool> sCallable_And(const ZRef<ZCallable_Bool>& i0, const ZRef<ZCallable_Bool>& i1)
{
- struct Callable : public Base
+ struct Callable : public ZCallable_Bool
{
- Callable(const ZRef<ZCB>& i0, const ZRef<ZCB>& i1) : Base(i0, i1) {}
+ Callable(const ZRef<ZCallable_Bool>& i0, const ZRef<ZCallable_Bool>& i1) : f0(i0), f1(i1) {}
virtual ZQ<bool> QCall()
{
- if (ZQ<bool> theQ0 = sQCall(f0))
+ if (const ZQ<bool> theQ0 = sQCall(f0))
{
- if (theQ0.Get())
+ if (*theQ0)
return sQCall(f1);
return false;
}
return null;
}
+ const ZRef<ZCallable_Bool> f0, f1;
};
return new Callable(i0, i1);
}
-ZRef<ZCB> sCallable_Or(const ZRef<ZCB>& i0, const ZRef<ZCB>& i1)
+ZRef<ZCallable_Bool> sCallable_Or(const ZRef<ZCallable_Bool>& i0, const ZRef<ZCallable_Bool>& i1)
{
- struct Callable : public Base
+ struct Callable : public ZCallable_Bool
{
- Callable(const ZRef<ZCB>& i0, const ZRef<ZCB>& i1) : Base(i0, i1) {}
+ Callable(const ZRef<ZCallable_Bool>& i0, const ZRef<ZCallable_Bool>& i1) : f0(i0), f1(i1) {}
virtual ZQ<bool> QCall()
{
- if (ZQ<bool> theQ0 = sQCall(f0) && theQ0.Get())
+ if (const ZQ<bool> theQ0 = sQCall(f0) && *theQ0)
return true;
return sQCall(f1);
}
+ const ZRef<ZCallable_Bool> f0, f1;
};
return new Callable(i0, i1);
}
-ZRef<ZCB> sCallable_Xor(const ZRef<ZCB>& i0, const ZRef<ZCB>& i1)
+ZRef<ZCallable_Bool> sCallable_Xor(const ZRef<ZCallable_Bool>& i0, const ZRef<ZCallable_Bool>& i1)
{
- struct Callable : public Base
+ struct Callable : public ZCallable_Bool
{
- Callable(const ZRef<ZCB>& i0, const ZRef<ZCB>& i1) : Base(i0, i1) {}
+ Callable(const ZRef<ZCallable_Bool>& i0, const ZRef<ZCallable_Bool>& i1) : f0(i0), f1(i1) {}
virtual ZQ<bool> QCall()
{
- if (ZQ<bool> theQ0 = sQCall(f0))
+ if (const ZQ<bool> theQ0 = sQCall(f0))
{
- if (ZQ<bool> theQ1 = sQCall(f1))
- return theQ0.Get() ^ theQ1.Get();
+ if (const ZQ<bool> theQ1 = sQCall(f1))
+ return *theQ0 ^ *theQ1;
}
return null;
}
+ const ZRef<ZCallable_Bool> f0, f1;
};
return new Callable(i0, i1);
}
Modified: trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.h 2012-01-26 17:20:55 UTC (rev 2688)
+++ trunk/zoolib/source/cxx/zoolib/ZCallable_Bool.h 2012-01-26 17:22:14 UTC (rev 2689)
@@ -27,7 +27,7 @@
namespace ZooLib {
// =================================================================================================
-// MARK: - Makers
+// MARK: - Ctors
ZRef<ZCallable_Bool> sCallable_True();
ZRef<ZCallable_Bool> sCallable_False();
@@ -37,7 +37,7 @@
ZRef<ZCallable_Bool> sCallable_Xor(const ZRef<ZCallable_Bool>& i0, const ZRef<ZCallable_Bool>& i1);
// =================================================================================================
-// MARK: - Concise Makers
+// MARK: - Concise Ctors
inline ZRef<ZCallable_Bool> sNot(const ZRef<ZCallable_Bool>& iCallable)
{ return sCallable_Not(iCallable); }
Modified: trunk/zoolib/source/cxx/zoolib/ZCallable_Compound.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZCallable_Compound.h 2012-01-26 17:20:55 UTC (rev 2688)
+++ trunk/zoolib/source/cxx/zoolib/ZCallable_Compound.h 2012-01-26 17:22:14 UTC (rev 2689)
@@ -42,8 +42,8 @@
// From ZCallable
virtual ZQ<A> QCall(C iC)
{
- if (ZQ<B> theB = sQCall(fCallable, iC))
- return sQCall(fApply, theB.Get());
+ if (const ZQ<B> theB = sQCall(fCallable, iC))
+ return sQCall(fApply, *theB);
return null;
}
@@ -141,9 +141,9 @@
// From ZCallable
virtual ZQ<R> QCall()
{
- if (ZQ<bool> theQ = sQCall(fCondition))
+ if (const ZQ<bool> theQ = sQCall(fCondition))
{
- if (theQ.Get())
+ if (*theQ)
return sQCall(f0);
else
return sQCall(f1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-26 17:21:06
|
Revision: 2688
http://zoolib.svn.sourceforge.net/zoolib/?rev=2688&view=rev
Author: agreen
Date: 2012-01-26 17:20:55 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Don't need this file.
Removed Paths:
-------------
trunk/zoolib/source/cxx/zoolib/ZYad_Val_T.cpp
Deleted: trunk/zoolib/source/cxx/zoolib/ZYad_Val_T.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad_Val_T.cpp 2012-01-26 17:20:15 UTC (rev 2687)
+++ trunk/zoolib/source/cxx/zoolib/ZYad_Val_T.cpp 2012-01-26 17:20:55 UTC (rev 2688)
@@ -1,21 +0,0 @@
-/* -------------------------------------------------------------------------------------------------
-Copyright (c) 2009 Andrew Green
-http://www.zoolib.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software
-and associated documentation files (the "Software"), to deal in the Software without restriction,
-including without limitation the rights to use, copy, modify, merge, publish, distribute,
-sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
-is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
-BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES
-OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
-OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-------------------------------------------------------------------------------------------------- */
-
-#include "zoolib/ZYad_Val_T.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ag...@us...> - 2012-01-26 17:20:26
|
Revision: 2687
http://zoolib.svn.sourceforge.net/zoolib/?rev=2687&view=rev
Author: agreen
Date: 2012-01-26 17:20:15 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
ZVisitee::Accept now takes a const ZVisitor&, so we can easily pass
in a temporary visitor and don't *have* to declare it as a local.
Use DynNonConst to get the pointer to which real dispatch happens.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZExpr.cpp
trunk/zoolib/source/cxx/zoolib/ZExpr.h
trunk/zoolib/source/cxx/zoolib/ZVisitor.cpp
trunk/zoolib/source/cxx/zoolib/ZVisitor.h
trunk/zoolib/source/cxx/zoolib/ZYad.cpp
trunk/zoolib/source/cxx/zoolib/ZYad.h
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr.cpp 2012-01-26 17:17:25 UTC (rev 2686)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr.cpp 2012-01-26 17:20:15 UTC (rev 2687)
@@ -25,9 +25,9 @@
// =================================================================================================
// MARK: - ZExpr
-void ZExpr::Accept(ZVisitor& iVisitor)
+void ZExpr::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Expr* theVisitor = dynamic_cast<ZVisitor_Expr*>(&iVisitor))
+ if (ZVisitor_Expr* theVisitor = DynNonConst<ZVisitor_Expr*>(&iVisitor))
this->Accept_Expr(*theVisitor);
else
ZVisitee::Accept(iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZExpr.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZExpr.h 2012-01-26 17:17:25 UTC (rev 2686)
+++ trunk/zoolib/source/cxx/zoolib/ZExpr.h 2012-01-26 17:20:15 UTC (rev 2687)
@@ -35,7 +35,7 @@
{
public:
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// Our protocol
virtual void Accept_Expr(ZVisitor_Expr& iVisitor);
Modified: trunk/zoolib/source/cxx/zoolib/ZVisitor.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVisitor.cpp 2012-01-26 17:17:25 UTC (rev 2686)
+++ trunk/zoolib/source/cxx/zoolib/ZVisitor.cpp 2012-01-26 17:20:15 UTC (rev 2687)
@@ -25,8 +25,8 @@
// =================================================================================================
// MARK: - ZVisitee
-void ZVisitee::Accept(ZVisitor& iVisitor)
- { iVisitor.Visit(this); }
+void ZVisitee::Accept(const ZVisitor& iVisitor)
+ { const_cast<ZVisitor&>(iVisitor).Visit(this); }
// =================================================================================================
// MARK: - ZVisitor
Modified: trunk/zoolib/source/cxx/zoolib/ZVisitor.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVisitor.h 2012-01-26 17:17:25 UTC (rev 2686)
+++ trunk/zoolib/source/cxx/zoolib/ZVisitor.h 2012-01-26 17:20:15 UTC (rev 2687)
@@ -35,7 +35,7 @@
{
public:
// Our protocol
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor) = 0;
};
// =================================================================================================
Modified: trunk/zoolib/source/cxx/zoolib/ZYad.cpp
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad.cpp 2012-01-26 17:17:25 UTC (rev 2686)
+++ trunk/zoolib/source/cxx/zoolib/ZYad.cpp 2012-01-26 17:20:15 UTC (rev 2687)
@@ -90,17 +90,12 @@
ZYadR::ZYadR()
{}
-void ZYadR::Accept(ZVisitor& iVisitor)
+void ZYadR::Accept(const ZVisitor& iVisitor)
{
- if (ZVisitor_Yad* theVisitor =
- dynamic_cast<ZVisitor_Yad*>(&iVisitor))
- {
+ if (ZVisitor_Yad* theVisitor = DynNonConst<ZVisitor_Yad*>(&iVisitor))
this->Accept_Yad(*theVisitor);
- }
else
- {
ZVisitee::Accept(iVisitor);
- }
}
void ZYadR::Finish()
Modified: trunk/zoolib/source/cxx/zoolib/ZYad.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZYad.h 2012-01-26 17:17:25 UTC (rev 2686)
+++ trunk/zoolib/source/cxx/zoolib/ZYad.h 2012-01-26 17:20:15 UTC (rev 2687)
@@ -79,7 +79,7 @@
public:
// From ZVisitee
- virtual void Accept(ZVisitor& iVisitor);
+ virtual void Accept(const ZVisitor& iVisitor);
// Our protocol
virtual void Finish();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|