source: trunk/source/interfaces/html/G4VInteractorManager_8cc-source.html @ 828

Last change on this file since 828 was 571, checked in by garnier, 17 years ago

r581@mac-90108: laurentgarnier | 2007-08-17 17:30:26 +0200
deplacement de frame

  • Property svn:mime-type set to text/html
File size: 29.3 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>G4VInteractorManager.cc Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5</head><body>
6<!-- Generated by Doxygen 1.3.4 -->
7<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8<h1>G4VInteractorManager.cc</h1><a href="G4VInteractorManager_8cc.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">//</span>
900002 <span class="comment">// ********************************************************************</span>
1000003 <span class="comment">// * License and Disclaimer                                           *</span>
1100004 <span class="comment">// *                                                                  *</span>
1200005 <span class="comment">// * The  Geant4 software  is  copyright of the Copyright Holders  of *</span>
1300006 <span class="comment">// * the Geant4 Collaboration.  It is provided  under  the terms  and *</span>
1400007 <span class="comment">// * conditions of the Geant4 Software License,  included in the file *</span>
1500008 <span class="comment">// * LICENSE and available at  http://cern.ch/geant4/license .  These *</span>
1600009 <span class="comment">// * include a list of copyright holders.                             *</span>
1700010 <span class="comment">// *                                                                  *</span>
1800011 <span class="comment">// * Neither the authors of this software system, nor their employing *</span>
1900012 <span class="comment">// * institutes,nor the agencies providing financial support for this *</span>
2000013 <span class="comment">// * work  make  any representation or  warranty, express or implied, *</span>
2100014 <span class="comment">// * regarding  this  software system or assume any liability for its *</span>
2200015 <span class="comment">// * use.  Please see the license in the file  LICENSE  and URL above *</span>
2300016 <span class="comment">// * for the full disclaimer and the limitation of liability.         *</span>
2400017 <span class="comment">// *                                                                  *</span>
2500018 <span class="comment">// * This  code  implementation is the result of  the  scientific and *</span>
2600019 <span class="comment">// * technical work of the GEANT4 collaboration.                      *</span>
2700020 <span class="comment">// * By using,  copying,  modifying or  distributing the software (or *</span>
2800021 <span class="comment">// * any work based  on the software)  you  agree  to acknowledge its *</span>
2900022 <span class="comment">// * use  in  resulting  scientific  publications,  and indicate your *</span>
3000023 <span class="comment">// * acceptance of all terms of the Geant4 Software license.          *</span>
3100024 <span class="comment">// ********************************************************************</span>
3200025 <span class="comment">//</span>
3300026 <span class="comment">//</span>
3400027 <span class="comment">// $Id: G4VInteractorManager.cc,v 1.13 2006/06/29 19:10:24 gunter Exp $</span>
3500028 <span class="comment">// GEANT4 tag $Name: geant4-08-01-patch-01 $</span>
3600029 <span class="comment">//</span>
3700030 <span class="comment">// G.Barrand</span>
3800031
3900032 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
4000033 <span class="preprocessor">#include &lt;string.h&gt;</span>
4100034
4200035 <span class="preprocessor">#include &lt;algorithm&gt;</span>
4300036
4400037 <span class="preprocessor">#include "<a class="code" href="G4VInteractorManager_8hh.html">G4VInteractorManager.hh</a>"</span>
4500038
4600039 <span class="preprocessor">#define NewString(str)  \</span>
4700040 <span class="preprocessor"> ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : NULL)</span>
4800041 <span class="preprocessor"></span>
4900042 <span class="comment">/***************************************************************************/</span>
50<a name="l00043"></a><a class="code" href="classG4VInteractorManager.html#a0">00043</a> <a class="code" href="classG4VInteractorManager.html#a0">G4VInteractorManager::G4VInteractorManager</a> (
5100044 )
5200045 :argc(0)
5300046 ,argv(NULL)
5400047 ,mainInteractor(NULL)
5500048 ,secondaryLoopEnabled(TRUE)
5600049 ,alreadyInSecondaryLoop(FALSE)
5700050 ,exitSecondaryLoop(0)
5800051 ,parentInteractor(NULL)
5900052 ,createdInteractor(NULL)
6000053 ,creationString(NULL)
6100054 <span class="comment">/***************************************************************************/</span>
6200056 {
6300057 }
6400058 <span class="comment">/***************************************************************************/</span>
65<a name="l00059"></a><a class="code" href="classG4VInteractorManager.html#a1">00059</a> <a class="code" href="classG4VInteractorManager.html#a1">G4VInteractorManager::~G4VInteractorManager</a> (
6600060 )
6700061 <span class="comment">/***************************************************************************/</span>
6800063 {
6900064   <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r1">argv</a>!=NULL) {
7000065     <span class="keywordflow">for</span>(G4int argi=0;argi&lt;<a class="code" href="classG4VInteractorManager.html#r0">argc</a>;argi++) {
7100066       <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r1">argv</a>[argi]!=NULL) free(<a class="code" href="classG4VInteractorManager.html#r1">argv</a>[argi]);
7200067     }
7300068     free (<a class="code" href="classG4VInteractorManager.html#r1">argv</a>);
7400069   }
7500070   <a class="code" href="classG4VInteractorManager.html#r1">argv</a> = NULL;
7600071   <a class="code" href="classG4VInteractorManager.html#r0">argc</a> = 0;
7700072   <a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.clear();
7800073   <a class="code" href="classG4VInteractorManager.html#r4">preActions</a>.clear();
7900074   <a class="code" href="classG4VInteractorManager.html#r5">postActions</a>.clear();
8000075   <a class="code" href="classG4VInteractorManager.html#r6">shells</a>.clear();
8100076   <a class="code" href="classG4VInteractorManager.html#r7">secondaryLoopEnabled</a> = TRUE;
8200077   <a class="code" href="classG4VInteractorManager.html#r8">alreadyInSecondaryLoop</a> = FALSE;
8300078   <a class="code" href="classG4VInteractorManager.html#r9">exitSecondaryLoop</a> = 0;
8400079 }
8500080 <span class="comment">/***************************************************************************/</span>
8600081 <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a2">G4VInteractorManager::SetArguments</a> (
8700082  G4int  a_argc
8800083 ,<span class="keywordtype">char</span>** a_argv
8900084 )
9000085 <span class="comment">/***************************************************************************/</span>
9100087 {
9200088   <span class="comment">// Free previous values.</span>
9300089   <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r1">argv</a>!=NULL) {
9400090     <span class="keywordflow">for</span>(G4int argi=0;argi&lt;<a class="code" href="classG4VInteractorManager.html#r0">argc</a>;argi++) {
9500091       <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r1">argv</a>[argi]!=NULL) free(argv[argi]);
9600092     }
9700093     free(argv);
9800094   }
9900095   <a class="code" href="classG4VInteractorManager.html#r1">argv</a> = NULL;
10000096   <a class="code" href="classG4VInteractorManager.html#r0">argc</a> = 0;
10100097   <span class="comment">// Set new values.</span>
10200098   <span class="keywordflow">if</span>(a_argc!=0) {
10300099     <a class="code" href="classG4VInteractorManager.html#r1">argv</a> = (<span class="keywordtype">char</span>**)malloc(a_argc * <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>*));
10400100     <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r1">argv</a>!=NULL) {
10500101       <a class="code" href="classG4VInteractorManager.html#r0">argc</a> = a_argc;
10600102       <span class="keywordflow">for</span>(G4int argi=0;argi&lt;a_argc;argi++) {
10700103         <a class="code" href="classG4VInteractorManager.html#r1">argv</a>[argi] = (<span class="keywordtype">char</span>*)NewString (a_argv[argi]);
10800104       }
10900105     }
11000106   }
11100107 }
11200108 <span class="comment">/***************************************************************************/</span>
11300109 <span class="keywordtype">char</span>** <a class="code" href="classG4VInteractorManager.html#a3">G4VInteractorManager::GetArguments</a> (
11400110  G4int* a_argc
11500111 )
11600112 <span class="comment">/***************************************************************************/</span>
11700114 {
11800115   <span class="keywordflow">if</span>(a_argc!=NULL) *a_argc = <a class="code" href="classG4VInteractorManager.html#r0">argc</a>;
11900116   <span class="keywordflow">return</span> <a class="code" href="classG4VInteractorManager.html#r1">argv</a>;
12000117 }
12100118 <span class="comment">/***************************************************************************/</span>
122<a name="l00119"></a><a class="code" href="classG4VInteractorManager.html#a4">00119</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a4">G4VInteractorManager::SetMainInteractor</a> (
12300120  <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> a_main
12400121 )
12500122 <span class="comment">/***************************************************************************/</span>
12600124 {
12700125   <a class="code" href="classG4VInteractorManager.html#r2">mainInteractor</a> = a_main;
12800126 }
12900127 <span class="comment">/***************************************************************************/</span>
130<a name="l00128"></a><a class="code" href="classG4VInteractorManager.html#a5">00128</a> <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> <a class="code" href="classG4VInteractorManager.html#a5">G4VInteractorManager::GetMainInteractor</a> (
13100129 )
13200130 <span class="comment">/***************************************************************************/</span>
13300132 {
13400133   <span class="keywordflow">return</span> <a class="code" href="classG4VInteractorManager.html#r2">mainInteractor</a>;
13500134 }
13600135 <span class="comment">/***************************************************************************/</span>
137<a name="l00136"></a><a class="code" href="classG4VInteractorManager.html#a12">00136</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a12">G4VInteractorManager::EnableSecondaryLoop</a> (
13800137 )
13900138 <span class="comment">/***************************************************************************/</span>
14000140 {
14100141   <a class="code" href="classG4VInteractorManager.html#r7">secondaryLoopEnabled</a> = TRUE;
14200142 }
14300143 <span class="comment">/***************************************************************************/</span>
144<a name="l00144"></a><a class="code" href="classG4VInteractorManager.html#a13">00144</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a13">G4VInteractorManager::DisableSecondaryLoop</a> (
14500145 )
14600146 <span class="comment">/***************************************************************************/</span>
14700148 {
14800149   <a class="code" href="classG4VInteractorManager.html#r7">secondaryLoopEnabled</a> = FALSE;
14900150 }
15000151 <span class="comment">/***************************************************************************/</span>
151<a name="l00152"></a><a class="code" href="classG4VInteractorManager.html#a6">00152</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a6">G4VInteractorManager::AddDispatcher</a> (
15200153  <a class="code" href="G4VInteractorManager_8hh.html#a1">G4DispatchFunction</a> a_dispatcher
15300154 )
15400155 <span class="comment">/***************************************************************************/</span>
15500157 {
15600158   <span class="keywordflow">if</span>(a_dispatcher==NULL) <span class="keywordflow">return</span>;
15700159   <span class="keywordflow">if</span>(std::find(<a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.begin(),<a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.end(),a_dispatcher)!=<a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.end()) <span class="keywordflow">return</span>;
15800160   <a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.push_back(a_dispatcher);
15900161 }
16000162 <span class="comment">/***************************************************************************/</span>
161<a name="l00163"></a><a class="code" href="classG4VInteractorManager.html#a7">00163</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a7">G4VInteractorManager::RemoveDispatcher</a> (
16200164  <a class="code" href="G4VInteractorManager_8hh.html#a1">G4DispatchFunction</a> a_dispatcher
16300165 )
16400166 <span class="comment">/***************************************************************************/</span>
16500168 {
16600169   std::vector&lt;G4DispatchFunction&gt;::iterator it;
16700170   <span class="keywordflow">for</span> (it = <a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.begin(); it != <a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.end(); it++) {
16800171     <span class="keywordflow">if</span> (*it == a_dispatcher) {
16900172       <a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.erase(it);
17000173       <span class="keywordflow">break</span>;
17100174     }
17200175   }
17300176 }
17400177 <span class="comment">/***************************************************************************/</span>
175<a name="l00178"></a><a class="code" href="classG4VInteractorManager.html#a17">00178</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a17">G4VInteractorManager::DispatchEvent</a> (
17600179  <span class="keywordtype">void</span>* a_event
17700180 )
17800181 <span class="comment">/***************************************************************************/</span>
17900183 {
18000184   G4int dispatchern = <a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>.size();
18100185   <a class="code" href="G4VInteractorManager_8hh.html#a1">G4DispatchFunction</a> func;
18200186   <span class="keywordflow">for</span>(G4int count=0;count&lt;dispatchern;count++) {
18300187     func = <a class="code" href="classG4VInteractorManager.html#r3">dispatchers</a>[count];
18400188     <span class="keywordflow">if</span>(func!=NULL) {
18500189       <span class="keywordflow">if</span>(func(a_event)==<span class="keyword">true</span>) <span class="keywordflow">return</span>;
18600190     }
18700191   }
18800192 }
18900193 <span class="comment">/***************************************************************************/</span>
190<a name="l00194"></a><a class="code" href="classG4VInteractorManager.html#a8">00194</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a8">G4VInteractorManager::AddSecondaryLoopPreAction</a> (
19100195  <a class="code" href="G4VInteractorManager_8hh.html#a2">G4SecondaryLoopAction</a> a_preAction
19200196 )
19300197 <span class="comment">/***************************************************************************/</span>
19400199 {
19500200   <span class="keywordflow">if</span>(a_preAction==NULL) <span class="keywordflow">return</span>;
19600201   <span class="keywordflow">if</span>(std::find(<a class="code" href="classG4VInteractorManager.html#r4">preActions</a>.begin(),<a class="code" href="classG4VInteractorManager.html#r4">preActions</a>.end(),a_preAction)!=<a class="code" href="classG4VInteractorManager.html#r4">preActions</a>.end()) <span class="keywordflow">return</span>;
19700202   <a class="code" href="classG4VInteractorManager.html#r4">preActions</a>.push_back(a_preAction);
19800203 }
19900204 <span class="comment">/***************************************************************************/</span>
200<a name="l00205"></a><a class="code" href="classG4VInteractorManager.html#a14">00205</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a14">G4VInteractorManager::SecondaryLoopPreActions</a> (
20100206 )
20200207 <span class="comment">/***************************************************************************/</span>
20300209 {
20400210   G4int preActionn = <a class="code" href="classG4VInteractorManager.html#r4">preActions</a>.size();
20500211   <span class="keywordflow">for</span>(G4int count=0;count&lt;preActionn;count++) {
20600212     <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r4">preActions</a>[count]!=NULL) <a class="code" href="classG4VInteractorManager.html#r4">preActions</a>[count]();
20700213   }
20800214 }
20900215 <span class="comment">/***************************************************************************/</span>
210<a name="l00216"></a><a class="code" href="classG4VInteractorManager.html#a9">00216</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a9">G4VInteractorManager::AddSecondaryLoopPostAction</a> (
21100217  <a class="code" href="G4VInteractorManager_8hh.html#a2">G4SecondaryLoopAction</a> a_postAction
21200218 )
21300219 <span class="comment">/***************************************************************************/</span>
21400221 {
21500222   <span class="keywordflow">if</span>(a_postAction==NULL) <span class="keywordflow">return</span>;
21600223   <span class="keywordflow">if</span>(std::find(<a class="code" href="classG4VInteractorManager.html#r5">postActions</a>.begin(),<a class="code" href="classG4VInteractorManager.html#r5">postActions</a>.end(),a_postAction)!=<a class="code" href="classG4VInteractorManager.html#r5">postActions</a>.end()) <span class="keywordflow">return</span>;
21700224   <a class="code" href="classG4VInteractorManager.html#r5">postActions</a>.push_back(a_postAction);
21800225 }
21900226 <span class="comment">/***************************************************************************/</span>
220<a name="l00227"></a><a class="code" href="classG4VInteractorManager.html#a15">00227</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a15">G4VInteractorManager::SecondaryLoopPostActions</a> (
22100228 )
22200229 <span class="comment">/***************************************************************************/</span>
22300231 {
22400232   G4int postActionn = <a class="code" href="classG4VInteractorManager.html#r5">postActions</a>.size();
22500233   <span class="keywordflow">for</span>(G4int count=0;count&lt;postActionn;count++) {
22600234     <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r5">postActions</a>[count]!=NULL) <a class="code" href="classG4VInteractorManager.html#r5">postActions</a>[count]();
22700235   }
22800236 }
22900237 <span class="comment">/***************************************************************************/</span>
230<a name="l00238"></a><a class="code" href="classG4VInteractorManager.html#a18">00238</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a18">G4VInteractorManager::SecondaryLoop</a> (
23100239 )
23200240 <span class="comment">/***************************************************************************/</span>
23300242 {
23400243   <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#a21">Inited</a>()==FALSE) <span class="keywordflow">return</span>;
23500244
23600245   <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r7">secondaryLoopEnabled</a>==FALSE) <span class="keywordflow">return</span>;
23700246   
23800247   <span class="keywordflow">if</span> (<a class="code" href="classG4VInteractorManager.html#r8">alreadyInSecondaryLoop</a>==FALSE) {
23900248     G4cout &lt;&lt; <span class="stringliteral">"------------------------------------------"</span> &lt;&lt; G4endl;
24000249     G4cout &lt;&lt; <span class="stringliteral">"You have entered a viewer secondary X event loop."</span> &lt;&lt; G4endl;
24100250     G4cout &lt;&lt; <span class="stringliteral">"Quit it with an 'Escape' viewer button"</span> &lt;&lt; G4endl;
24200251     <a class="code" href="classG4VInteractorManager.html#r8">alreadyInSecondaryLoop</a>   = TRUE;
24300252     <a class="code" href="classG4VInteractorManager.html#r9">exitSecondaryLoop</a>        = 0;
24400253     <a class="code" href="classG4VInteractorManager.html#a14">SecondaryLoopPreActions</a>  ();
24500254     <span class="comment">//for(G4int count=0;count&lt;shelln;count++) XWidgetUniconify(shells[count]);</span>
24600255     <span class="keywordtype">void</span>*                    event;
24700256     <span class="keywordflow">while</span>(1) {
24800257       event = <a class="code" href="classG4VInteractorManager.html#a22">GetEvent</a>();
24900258       <span class="keywordflow">if</span>(event==NULL) <span class="keywordflow">break</span>;
25000259       <a class="code" href="classG4VInteractorManager.html#a17">DispatchEvent</a>  (event);
25100260       <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r9">exitSecondaryLoop</a>!=0) <span class="keywordflow">break</span>;
25200261     }
25300262     G4cout &lt;&lt; <span class="stringliteral">"Secondary X event loop exited."</span> &lt;&lt; G4endl;
25400263     <a class="code" href="classG4VInteractorManager.html#a15">SecondaryLoopPostActions</a> ();
25500264     }
25600265 }
25700266 <span class="comment">/***************************************************************************/</span>
25800267 <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a16">G4VInteractorManager::RequireExitSecondaryLoop</a> (
25900268  G4int a_code
26000269 )
26100270 <span class="comment">/***************************************************************************/</span>
26200272 {
26300273   <span class="keywordflow">if</span>(<a class="code" href="classG4VInteractorManager.html#r7">secondaryLoopEnabled</a>==FALSE) <span class="keywordflow">return</span>;
26400274   <span class="keywordflow">if</span>(a_code==0)            a_code = 1;
26500275   <a class="code" href="classG4VInteractorManager.html#r9">exitSecondaryLoop</a>        = a_code;
26600276   <a class="code" href="classG4VInteractorManager.html#r8">alreadyInSecondaryLoop</a>   = FALSE;
26700277   <span class="comment">// for(G4int count=0;count&lt;shelln;count++) XWidgetIconify(shells[count]);</span>
26800278   <span class="comment">// if(shelln!=0)            XSync(XtDisplay(topWidget),False);</span>
26900279 }
27000280 <span class="comment">/***************************************************************************/</span>
271<a name="l00281"></a><a class="code" href="classG4VInteractorManager.html#a19">00281</a> G4int <a class="code" href="classG4VInteractorManager.html#a19">G4VInteractorManager::GetExitSecondaryLoopCode</a> (
27200282 )
27300283 <span class="comment">/***************************************************************************/</span>
27400285 {
27500286   <span class="keywordflow">return</span> <a class="code" href="classG4VInteractorManager.html#r9">exitSecondaryLoop</a>;
27600287 }
27700288 <span class="comment">/***************************************************************************/</span>
278<a name="l00289"></a><a class="code" href="classG4VInteractorManager.html#a10">00289</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a10">G4VInteractorManager::AddShell</a> (
27900290  <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> a_shell
28000291 )
28100292 <span class="comment">/***************************************************************************/</span>
28200294 {
28300295   <span class="keywordflow">if</span>(a_shell==NULL) <span class="keywordflow">return</span>;
28400296   <span class="keywordflow">if</span>(std::find(<a class="code" href="classG4VInteractorManager.html#r6">shells</a>.begin(),<a class="code" href="classG4VInteractorManager.html#r6">shells</a>.end(),a_shell)!=<a class="code" href="classG4VInteractorManager.html#r6">shells</a>.end()) <span class="keywordflow">return</span>;
28500297   <a class="code" href="classG4VInteractorManager.html#r6">shells</a>.push_back(a_shell);
28600298 }
28700299 <span class="comment">/***************************************************************************/</span>
288<a name="l00300"></a><a class="code" href="classG4VInteractorManager.html#a11">00300</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a11">G4VInteractorManager::RemoveShell</a> (
28900301  <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> a_shell
29000302 )
29100303 <span class="comment">/***************************************************************************/</span>
29200305 { 
29300306   std::vector&lt;G4Interactor&gt;::iterator it;
29400307   <span class="keywordflow">for</span> (it = <a class="code" href="classG4VInteractorManager.html#r6">shells</a>.begin(); it != <a class="code" href="classG4VInteractorManager.html#r6">shells</a>.end(); it++) {
29500308     <span class="keywordflow">if</span> (*it == a_shell) {
29600309       <a class="code" href="classG4VInteractorManager.html#r6">shells</a>.erase(it);
29700310       <span class="keywordflow">break</span>;
29800311     }
29900312   }
30000313 }
30100314 <span class="comment">/***************************************************************************/</span>
302<a name="l00315"></a><a class="code" href="classG4VInteractorManager.html#a24">00315</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a24">G4VInteractorManager::SetParentInteractor</a> (
30300316  <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> a_interactor
30400317 )
30500318 <span class="comment">/***************************************************************************/</span>
30600320 {
30700321   <a class="code" href="classG4VInteractorManager.html#r10">parentInteractor</a> = a_interactor;
30800322 }
30900323 <span class="comment">/***************************************************************************/</span>
310<a name="l00324"></a><a class="code" href="classG4VInteractorManager.html#a25">00324</a> <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> <a class="code" href="classG4VInteractorManager.html#a25">G4VInteractorManager::GetParentInteractor</a> (
31100325 )
31200326 <span class="comment">/***************************************************************************/</span>
31300328 {
31400329   <span class="keywordflow">return</span> <a class="code" href="classG4VInteractorManager.html#r10">parentInteractor</a>;
31500330 }
31600331 <span class="comment">/***************************************************************************/</span>
317<a name="l00332"></a><a class="code" href="classG4VInteractorManager.html#a26">00332</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a26">G4VInteractorManager::SetCreatedInteractor</a> (
31800333  <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> a_interactor
31900334 )
32000335 <span class="comment">/***************************************************************************/</span>
32100337 {
32200338   <a class="code" href="classG4VInteractorManager.html#r11">createdInteractor</a> = a_interactor;
32300339 }
32400340 <span class="comment">/***************************************************************************/</span>
325<a name="l00341"></a><a class="code" href="classG4VInteractorManager.html#a27">00341</a> <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> <a class="code" href="classG4VInteractorManager.html#a27">G4VInteractorManager::GetCreatedInteractor</a> (
32600342 )
32700343 <span class="comment">/***************************************************************************/</span>
32800345 {
32900346   <span class="keywordflow">return</span> <a class="code" href="classG4VInteractorManager.html#r11">createdInteractor</a>;
33000347 }
33100348 <span class="comment">/***************************************************************************/</span>
332<a name="l00349"></a><a class="code" href="classG4VInteractorManager.html#a28">00349</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractorManager.html#a28">G4VInteractorManager::SetCreationString</a> (
33300350  <span class="keywordtype">char</span>* a_string
33400351 )
33500352 <span class="comment">/***************************************************************************/</span>
33600354 {
33700355   <a class="code" href="classG4VInteractorManager.html#r12">creationString</a> = a_string;
33800356 }
33900357 <span class="comment">/***************************************************************************/</span>
340<a name="l00358"></a><a class="code" href="classG4VInteractorManager.html#a29">00358</a> <span class="keywordtype">char</span>* <a class="code" href="classG4VInteractorManager.html#a29">G4VInteractorManager::GetCreationString</a> (
34100359 )
34200360 <span class="comment">/***************************************************************************/</span>
34300362 {
34400363   <span class="keywordflow">return</span> <a class="code" href="classG4VInteractorManager.html#r12">creationString</a>;
34500364 }
34600365
347</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:07:02 2007 by
348<a href="http://www.doxygen.org/index.html">
349<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
350</a>1.3.4 </small></address>
351</body>
352</html>
Note: See TracBrowser for help on using the repository browser.