OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
CollectionTypes.hpp
Go to the documentation of this file.
1 /* Copyright 2010, Object Management Group, Inc.
2 * Copyright 2010, PrismTech, Corp.
3 * Copyright 2010, Real-Time Innovations, Inc.
4 * All rights reserved.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 #ifndef OMG_DDS_CORE_XTYPES_T_COLLECTION_TYPES_HPP_
19 #define OMG_DDS_CORE_XTYPES_T_COLLECTION_TYPES_HPP_
20 
22 
23 namespace dds
24 {
25 namespace core
26 {
27 namespace xtypes
28 {
29 
30 
31 class CollectionType;
32 
33 
34 class MapType;
35 
36 
37 class SequenceType;
38 
39 template <typename CHAR_T, template <typename C> class DELEGATE>
40 class StringType;
41 }
42 }
43 }
44 
45 
46 class dds::core::xtypes::CollectionType : public dds::core::xtypes::DynamicType
47 {
48 public:
49  const uint32_t UNBOUNDED = 0xFFFFFFFF;
50 
51 protected:
52  CollectionType(const std::string& name, TypeKind kind);
53 public:
54  uint32_t bounds() const;
55 };
56 
57 
58 
60 {
61 public:
65  MapType(const DyanmicType& key_type, const DynamicType& value_type);
69  MapType(const DyanmicType& key_type, const DynamicType& value_type, uint32_t bounds);
70 public:
71  const DyanmicType& key_type();
72  const DynamicType& value_type();
73 };
74 
75 
77 {
78 public:
82  SequenceType(const DynamicType& type);
83 
87  SequenceType(const DynamicType& type, uint32_t bounds);
88 public:
89  const DyanmicType& key_type() const;
90 };
91 
92 template <typename CHAR_T, template <typename C> class DELEGATE>
94 {
95 public:
96  StringType(uint32_t bounds);
97 };
98 
99 
100 #endif /* OMG_DDS_CORE_XTYPES_T_COLLECTION_TYPES_HPP_ */
Definition: array.hpp:23