• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

src/hpp/dds/core/Optional.hpp

Go to the documentation of this file.
00001 #ifndef OMG_DDS_CORE_OPTIONAL_HPP_
00002 #define OMG_DDS_CORE_OPTIONAL_HPP_
00003 
00004 
00005 /* Copyright 2010, Object Management Group, Inc.
00006  * Copyright 2010, PrismTech, Inc.
00007  * Copyright 2010, Real-Time Innovations, Inc.
00008  * All rights reserved.
00009  *
00010  * Licensed under the Apache License, Version 2.0 (the "License");
00011  * you may not use this file except in compliance with the License.
00012  * You may obtain a copy of the License at
00013  *
00014  *     http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing, software
00017  * distributed under the License is distributed on an "AS IS" BASIS,
00018  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019  * See the License for the specific language governing permissions and
00020  * limitations under the License.
00021  */
00022 
00023 namespace dds { namespace core {
00024 
00030 template <typename T, template <typename Q> class DELEGATE>
00031 class optional : public dds::core::Value< DELEGATE<T> > {
00032 public:
00033         optional(const T& t);
00034 
00035 public:
00039         bool is_set() const;
00040 
00044         void reset();
00045 
00049         const T& get() const;
00050 
00054         T& get();
00055 };
00056 
00057 } }
00058 #endif /* OMG_DDS_CORE_OPTIONAL_HPP_ */

Generated on Tue Nov 9 2010 02:16:21 for dds-psm-cxx-doc by  doxygen 1.7.1