forked from apple/turicreate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcache_stream.hpp
37 lines (32 loc) · 973 Bytes
/
cache_stream.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_FILEIO_CACHE_STREAM_HPP
#define TURI_FILEIO_CACHE_STREAM_HPP
#include<fileio/cache_stream_source.hpp>
#include<fileio/cache_stream_sink.hpp>
namespace turi {
namespace fileio{
/**
* \internal
* \ingroup fileio
* icache_stream provides an input stream to a cache object;
* this should not be used directly.
* \see general_ifstream
*/
typedef boost::iostreams::stream<turi::fileio_impl::cache_stream_source>
icache_stream;
/**
* \internal
* \ingroup fileio
* ocache_stream provides an output stream to a cache object;
* this should not be used directly.
* \see general_ofstream
*/
typedef boost::iostreams::stream<turi::fileio_impl::cache_stream_sink>
ocache_stream;
} // end of fileio
} // end of turicreate
#endif