Skip to content

Commit 77ee6c3

Browse files
committed
Renamed type_t to type.
1 parent d2c2e64 commit 77ee6c3

35 files changed

Lines changed: 162 additions & 162 deletions

cpp/src/dotcpp-test/dot/test/system/enum_test_apples_sample.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ namespace dot
4444
template <>
4545
struct type_traits<apples_sample>
4646
{
47-
static type_t typeof()
47+
static type typeof()
4848
{
49-
static type_t result = make_type_builder<char>("dot", "apples_sample")->is_enum()->build();
49+
static type result = make_type_builder<char>("dot", "apples_sample")->is_enum()->build();
5050
return result;
5151
}
5252
};

cpp/src/dotcpp-test/dot/test/system/enum_test_colors_sample.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ namespace dot
4444
template <>
4545
struct type_traits<colors_sample>
4646
{
47-
static type_t typeof()
47+
static type typeof()
4848
{
49-
static type_t result = make_type_builder<char>("dot", "colors_sample")->is_enum()->build();
49+
static type result = make_type_builder<char>("dot", "colors_sample")->is_enum()->build();
5050
return result;
5151
}
5252
};

cpp/src/dotcpp-test/dot/test/system/reflection_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ namespace dot
5353
return 42 + param;
5454
}
5555

56-
type_t get_type() override
56+
type get_type() override
5757
{
5858
// Converts to type_t with thread safety guarantee as per C++ Standard
59-
static type_t result = []()->type_t
59+
static type result = []()->type
6060
{
6161
received << "Creating type_t (this should run only once)." << std::endl;
6262

@@ -97,7 +97,7 @@ namespace dot
9797
9898
object x = obj->count();
9999
100-
type_t result = obj->get_type();
100+
type result = obj->get_type();
101101
list<property_info> props = type->get_properties();
102102
property_info int_prop = props[0];
103103
REQUIRE(int_prop->Name == "IntFld");

cpp/src/dotcpp-test/dot/test/system/serialization_test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ namespace dot
5454

5555
public: // STATIC
5656

57-
static type_t typeof()
57+
static type typeof()
5858
{
59-
static type_t result = []()-> type_t
59+
static type result = []()-> type
6060
{
61-
type_t t = make_type_builder<self>("System.Test", "sample_data_2")
61+
type t = make_type_builder<self>("System.Test", "sample_data_2")
6262
->with_field("data_field", &self::data_field)
6363
->build();
6464

@@ -68,7 +68,7 @@ namespace dot
6868
return result;
6969
}
7070

71-
type_t get_type() override
71+
type get_type() override
7272
{
7373
return typeof();
7474
}
@@ -126,7 +126,7 @@ namespace dot
126126
{
127127
if (obj.is_empty()) return "";
128128

129-
type_t t = obj->get_type();
129+
type t = obj->get_type();
130130

131131
std::stringstream ss;
132132

@@ -168,7 +168,7 @@ namespace dot
168168

169169
string s = obj_to_string(obj);
170170

171-
type_t t = obj->get_type();
171+
type t = obj->get_type();
172172

173173
sample_data dt = (sample_data)activator::create_instance(obj->get_type());
174174

cpp/src/dotcpp/dot/detail/enum_macro.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public: \
3636
operator int() const { return value_; } \
3737
self& operator=(int rhs) { value_ = rhs; return *this; } \
3838
self& operator=(const self& other) { value_ = other.value_; return *this; } \
39-
virtual dot::type_t get_type() { return typeof(); } \
40-
static dot::type_t typeof() \
39+
virtual dot::type get_type() { return typeof(); } \
40+
static dot::type typeof() \
4141
{ \
42-
static dot::type_t result = []()->dot::type_t \
42+
static dot::type result = []()->dot::type \
4343
{ \
44-
dot::type_t t = dot::make_type_builder<self>(nspace, name) \
44+
dot::type t = dot::make_type_builder<self>(nspace, name) \
4545
->is_enum() \
4646
->with_constructor(&self::make_self, {}) \
4747
->with_base<enum_base>() \

cpp/src/dotcpp/dot/detail/reflection_macro.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ limitations under the License.
2626

2727
#define DOT_TYPE_BEGIN(nspace, name, ...) \
2828
public: \
29-
virtual dot::type_t get_type() { return typeof(); } \
30-
static dot::type_t typeof() \
29+
virtual dot::type get_type() { return typeof(); } \
30+
static dot::type typeof() \
3131
{ \
32-
static dot::type_t result = []()-> dot::type_t \
32+
static dot::type result = []()-> dot::type \
3333
{ \
34-
dot::type_t t = dot::make_type_builder<self>(nspace, name)
34+
dot::type t = dot::make_type_builder<self>(nspace, name)
3535

3636
#define DOT_TYPE_END() \
3737
->build(); \

cpp/src/dotcpp/dot/system/bool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ namespace dot
5454
return value_ ? bool_impl::true_string : bool_impl::false_string;
5555
}
5656

57-
type_t bool_impl::typeof()
57+
type bool_impl::typeof()
5858
{
5959
return dot::typeof<bool>();
6060
}
6161

62-
type_t bool_impl::get_type()
62+
type bool_impl::get_type()
6363
{
6464
return typeof();
6565
}

cpp/src/dotcpp/dot/system/bool.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ namespace dot
6666
/// Converts the value of this instance to its equivalent string representation (either "True" or "False").
6767
virtual string to_string() override;
6868

69-
static type_t typeof();
70-
type_t get_type() override;
69+
static type typeof();
70+
type get_type() override;
7171
};
7272

7373
}

cpp/src/dotcpp/dot/system/char.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ namespace dot
5151
return std::to_string(value_);
5252
}
5353

54-
type_t char_impl::typeof()
54+
type char_impl::typeof()
5555
{
5656
return dot::typeof<char>();
5757
}
5858

59-
type_t char_impl::get_type()
59+
type char_impl::get_type()
6060
{
6161
return typeof();
6262
}

cpp/src/dotcpp/dot/system/char.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace dot
6565
/// Converts the numeric value of this instance to its equivalent string representation.
6666
virtual string to_string() override;
6767

68-
static type_t typeof();
69-
type_t get_type() override;
68+
static type typeof();
69+
type get_type() override;
7070
};
7171
}

0 commit comments

Comments
 (0)