acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_papaya_impl.h
1#pragma once
2
3
4//inline ::file_pointer matter::get_reader(const ::payload & payloadFile, ::file::e_open eopen)
5//{
6//
7// return file()->get_reader(payloadFile, eopen);
8//
9//}
10//
11//
12//inline ::file_pointer matter::get_writer(const ::payload & payloadFile, ::file::e_open eopen)
13//{
14//
15// return file()->get_writer(payloadFile, eopen);
16//
17//}
18
19
20//template < typename TYPE, typename ARG_TYPE, typename ALLOCATOR, ::enum_type t_etypeContainer >
21//void __io_array(stream & stream, ::base_array < TYPE, ARG_TYPE, TYPED, MEMORY, t_etypeContainer > & array)
22//{
23//
24// if (stream.is_storing())
25// {
26//
27// stream << array;
28//
29// }
30// else
31// {
32//
33// stream >> array;
34//
35// }
36//
37//}
38
39
42//template < typename TYPE, typename ARG_TYPE, typename ALLOCATOR, ::enum_type t_etypeContainer >
43//inline stream & operator >>(stream & stream, ::base_array < TYPE, ARG_TYPE, TYPED, MEMORY, t_etypeContainer > & array)
44//{
45//
46// ::collection::count cSerialized = 0;
47//
48// ::collection::count c = 0;
49//
50// stream >> c;
51//
52// //if (!stream.fail())
53// {
54//
55// //try
56// //{
57//
58// for (::collection::index i = 0; i < c; i++)
59// {
60//
61// array.set_size(i + 1, minimum((size_t)(c - i), 96_mb / sizeof(array[0])));
62//
63// auto & item = __typed(array[i]);
64//
65// stream >> item;
66//
67// //if (stream.fail())
68// //{
69//
70// // break;
71//
72// //}
73//
74// cSerialized++;
75//
76// }
77//
78// //}
79// //catch (...)
80// //{
81//
82// // stream.set_fail_bit();
83//
84// //}
85//
86// //if (stream.fail())
87// //{
88//
89// // array.set_size((::collection::count) cSerialized);
90//
91// //}
92//
93// }
94//
95// return stream;
96//
97//}
98//
101//template < typename TYPE, typename ARG_TYPE, typename ALLOCATOR, ::enum_type t_etypeContainer >
102//inline stream & operator <<(stream & stream, const ::base_array < TYPE, ARG_TYPE, TYPED, MEMORY, t_etypeContainer > & array)
103//{
104//
105// ::collection::count c = array.get_count();
106//
107// stream << c;
108//
109// for (auto & matter : array.values())
110// {
111//
112// stream << matter;
113//
114// //if (stream.fail())
115// //{
116//
117// // break;
118//
119// //}
120//
121// }
122//
123// return stream;
124//
125//}
126//
127
128namespace acme
129{
130
131
132 namespace array
133 {
134
135
136
137 } // namespace array
138
139
140} // namespace acme
141
142
143
144
include "aura/graphics/image/context.h"
Definition aaaa__defer.h:32