Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
detail
null_tss_ptr.hpp
Go to the documentation of this file.
1
//
2
// detail/null_tss_ptr.hpp
3
// ~~~~~~~~~~~~~~~~~~~~~~~
4
//
5
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6
//
7
// Distributed under the Boost Software License, Version 1.0. (See accompanying
8
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
//
10
11
#ifndef ASIO_DETAIL_NULL_TSS_PTR_HPP
12
#define ASIO_DETAIL_NULL_TSS_PTR_HPP
13
14
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15
# pragma once
16
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18
#include "
asio/detail/config.hpp
"
19
20
#if !defined(ASIO_HAS_THREADS)
21
22
#include "
asio/detail/noncopyable.hpp
"
23
24
#include "
asio/detail/push_options.hpp
"
25
26
namespace
asio
{
27
namespace
detail {
28
29
template
<
typename
T>
30
class
null_tss_ptr
31
:
private
noncopyable
32
{
33
public
:
34
// Constructor.
35
null_tss_ptr
()
36
: value_(0)
37
{
38
}
39
40
// Destructor.
41
~null_tss_ptr
()
42
{
43
}
44
45
// Get the value.
46
operator
T*()
const
47
{
48
return
value_;
49
}
50
51
// Set the value.
52
void
operator=
(T* value)
53
{
54
value_ = value;
55
}
56
57
private
:
58
T* value_;
59
};
60
61
}
// namespace detail
62
}
// namespace asio
63
64
#include "
asio/detail/pop_options.hpp
"
65
66
#endif // !defined(ASIO_HAS_THREADS)
67
68
#endif // ASIO_DETAIL_NULL_TSS_PTR_HPP
asio::detail::null_tss_ptr
Definition:
null_tss_ptr.hpp:30
config.hpp
asio::detail::noncopyable
Definition:
noncopyable.hpp:25
push_options.hpp
asio::detail::null_tss_ptr::~null_tss_ptr
~null_tss_ptr()
Definition:
null_tss_ptr.hpp:41
asio::detail::null_tss_ptr::operator=
void operator=(T *value)
Definition:
null_tss_ptr.hpp:52
pop_options.hpp
noncopyable.hpp
asio
Definition:
async_result.hpp:23
asio::detail::null_tss_ptr::null_tss_ptr
null_tss_ptr()
Definition:
null_tss_ptr.hpp:35
Generated by
1.8.11