BuiltinPointer.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (C) 2014 by Ralf Kaestner *
3  * ralf.kaestner@gmail.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the Lesser GNU General Public License as published by*
7  * the Free Software Foundation; either version 3 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * Lesser GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the Lesser GNU General Public License *
16  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17  ******************************************************************************/
18 
23 #ifndef VARIANT_TOPIC_TOOLS_BUILTIN_POINTER_H
24 #define VARIANT_TOPIC_TOOLS_BUILTIN_POINTER_H
25 
28 
29 namespace variant_topic_tools {
32  template <typename T> class BuiltinPointer :
33  public Pointer<typename type_traits::BuiltinType<T>::ValueType> {
34  public:
36 
40 
43  BuiltinPointer(ValueType* builtin = 0);
44 
48 
52 
56 
60 
61  protected:
64  class Impl :
65  public Pointer<ValueType>::ImplA {
66  public:
70  shared_ptr<ValueType>());
71 
74  virtual ~Impl();
75 
78  ValueType* get() const;
79 
81  };
82  };
83 };
84 
85 #include <variant_topic_tools/BuiltinPointer.tpp>
86 
87 #endif
type_traits::BuiltinType< T >::ValueType ValueType
Definition of the built-in value type.
BuiltinPointer(ValueType *builtin=0)
Default constructor.
Impl(const boost::shared_ptr< ValueType > &builtin=boost::shared_ptr< ValueType >())
Constructor.
Built-in pointer implementation.
Header file providing the built-in type traits.
BOOST_STATIC_ASSERT(type_traits::IsBuiltin< T >::value)
Shared pointer.
Definition: Pointer.h:33
boost::shared_ptr< ValueType > builtin
Header file providing the Pointer class interface.
Shared pointer to a built-in variable.


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Sat Jan 9 2021 03:56:49