Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
AbsPtr.cpp File Reference

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &file, const RegPassivePtr &f)
 
std::ostream & operator<< (std::ostream &file, const DoubleReg &f)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  file,
const DoubleReg f 
)

Definition at line 268 of file AbsPtr.cpp.

270 { // make output similar to ordinary double
271 file << f.val;
272 return file;
273}
double val
Definition: AbsPtr.h:2398

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  file,
const RegPassivePtr &  f 
)

Definition at line 165 of file AbsPtr.cpp.

165 {
166#ifdef USE_BIT_OPERA
167#ifdef USE_CHAR_GETSETTERS_PARAMETERS
168 Ifile << "RegPassivePtr<X>: s_ban_del/sub/cop=" << int(f.get_s_ban_del())
169 << "/" << int(f.get_s_ban_sub()) << "/" << int(f.get_s_ban_cop());
170#else
171 Ifile << "RegPassivePtr<X>: s_ban_del/sub/cop=" << f.get_s_ban_del() << "/"
172 << f.get_s_ban_sub() << "/" << f.get_s_ban_cop();
173#endif
174#elif defined USE_BIT_FIELDS
175 Ifile << "RegPassivePtr<X>: s_ban_del/sub/cop=" << f.conparam.s_ban_del << "/"
176 << f.conparam.s_ban_sub << "/" << f.conparam.s_ban_cop;
177#else
178#ifdef USE_CHAR_CONTROL_VARIABLES
179 Ifile << "RegPassivePtr<X>: s_ban_del/sub/cop=" << int(f.s_ban_del) << "/"
180 << int(f.s_ban_sub) << "/" << int(f.s_ban_cop);
181#else
182 Ifile << "RegPassivePtr<X>: s_ban_del/sub/cop=" << f.s_ban_del << "/"
183 << f.s_ban_sub << "/" << f.s_ban_cop;
184#endif
185#endif
186 /*
187 Ifile<<"RegPassivePtr<X>: s_ban_del="<<f.s_ban_del
188 <<" s_ban_sub="<<f.s_ban_sub
189 <<" s_ban_cop="<<f.s_ban_cop;
190 */
191 if (RegPassivePtr::s_print_adr_cpp == 0) {
192 if (f.cpp == NULL) {
193 file << " cpp=NULL\n";
194 } else {
195 file << " cpp!=NULL\n";
196 }
197 } else {
198 file << " cpp=" << f.cpp << '\n';
199 }
200 if (f.cpp != NULL) {
201 indn.n += 2;
202 Ifile << "cpp->number_of_registered=" << f.cpp->get_number_of_booked()
203 << '\n';
204 indn.n -= 2;
205 }
206#ifdef USE_DELETE_AT_ZERO_COUNT
207 indn.n += 2;
208#ifdef USE_BIT_OPERA
209 Ifile << "s_allow_del_at_zero_count="
210#ifdef USE_CHAR_GETSETTERS_PARAMETERS
211 << int(f.get_s_allow_del_at_zero_count()) << '\n';
212#else
213 << f.get_s_allow_del_at_zero_count() << '\n';
214#endif
215#elif defined(USE_BIT_FIELDS)
216 Ifile << "s_allow_del_at_zero_count=" << f.conparam.s_allow_del_at_zero_count
217 << '\n';
218#else
219#ifdef USE_CHAR_CONTROL_VARIABLES
220 Ifile << "s_allow_del_at_zero_count=" << int(f.s_allow_del_at_zero_count)
221 << '\n';
222#else
223 Ifile << "s_allow_del_at_zero_count=" << f.s_allow_del_at_zero_count << '\n';
224#endif
225#endif
226 indn.n -= 2;
227#endif
228 return file;
229}
indentation indn
Definition: prstream.cpp:13
#define Ifile
Definition: prstream.h:207