-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDelObj_8hpp-source.html
More file actions
81 lines (71 loc) · 4 KB
/
DelObj_8hpp-source.html
File metadata and controls
81 lines (71 loc) · 4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<html>
<head>
<meta name="keywords" content="0MQ, ZeroMQ, C++, multipart, message, library, open source, ZmqMessage" />
<meta name="description" content="ZmqMessage is free open source C++ library for sending and receiving ZeroMQ multipart messages"/>
<meta name="google-site-verification" content="0EvtpfjffSrc0fDV9ubKQVfq3IV55KY5d59hXHg9M34" />
<title>ZmqMessage: include/zmqmessage/DelObj.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<style>
/* must override a few items to get the style background color */
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25607292-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<table class="zm_headbar">
<tr>
<td>
<span><a href="index.html">Overview</a></span>
<span><a href="zm_tutorial.html">Tutorial</a></span>
<span><a href="namespaceZmqMessage.html">API reference</a></span>
<span><a href="examples.html">Examples</a></span>
<span><a href="zm_build.html">Build</a></span>
<span><a href="https://github.com/zmqmessage/zmqmessage/">Download</a></span>
</td>
<td align="right" class="zm_greynote">ZmqMessage 0.1 - 21 Oct 2011</td>
</tr></table>
<hr style="height: 3px;">
<!-- Generated by Doxygen 1.4.7 -->
<h1>include/zmqmessage/DelObj.hpp</h1><a href="DelObj_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef ZMQMESSAGE_DELOBJ_HPP_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define ZMQMESSAGE_DELOBJ_HPP_</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="keyword">namespace </span>ZmqMessage
<a name="l00013"></a>00013 {
<a name="l00014"></a><a class="code" href="namespaceZmqMessage_1_1Private.html">00014</a> <span class="keyword">namespace </span>Private
<a name="l00015"></a>00015 {
<a name="l00016"></a>00016 <span class="keyword">template</span><<span class="keyword">class</span> T>
<a name="l00017"></a>00017 <span class="keywordtype">void</span>
<a name="l00018"></a><a class="code" href="namespaceZmqMessage_1_1Private.html#d74b6c0dede00718e8850dc6e76cc54d">00018</a> <a class="code" href="namespaceZmqMessage_1_1Private.html#d74b6c0dede00718e8850dc6e76cc54d">del_obj</a>(T* obj)
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020 <span class="keyword">delete</span> obj;
<a name="l00021"></a>00021 }
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="keyword">template</span><<span class="keyword">class</span> T>
<a name="l00024"></a>00024 <span class="keywordtype">void</span>
<a name="l00025"></a><a class="code" href="namespaceZmqMessage_1_1Private.html#e0b6526e922d619e2ebfcc628fb9c223">00025</a> <a class="code" href="namespaceZmqMessage_1_1Private.html#e0b6526e922d619e2ebfcc628fb9c223">del_obj_not_null</a>(T* obj)
<a name="l00026"></a>00026 {
<a name="l00027"></a>00027 <span class="keywordflow">if</span> (obj != 0)
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029 <span class="keyword">delete</span> obj;
<a name="l00030"></a>00030 }
<a name="l00031"></a>00031 }
<a name="l00032"></a>00032 }
<a name="l00033"></a>00033 }
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="preprocessor">#endif </span><span class="comment">/* ZMQMESSAGE_DELOBJ_HPP_ */</span>
</pre></div>
<hr style="height: 3px;">
<div class="zm_greynote">
ZmqMessage 0.1 — open source software, <a href="mailto:support@zmqmessage.org">support@zmqmessage.org</a>
</div>
</body>
</html>