ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::stream_n::noexcept_not_unreadable_data_istream_t结构体 参考abstract
类 elc::defs::stream_n::noexcept_not_unreadable_data_istream_t 继承关系图:
[图例]
elc::defs::stream_n::noexcept_not_unreadable_data_istream_t 的协作图:
[图例]

Public 成员函数

virtual size_t read (byte *buf, size_t size) noexcept override=0
 
template<class T >
requires ::std::is_trivially_copyable_v< T > size_t read (T *v, size_t size=1) noexcept
 
- Public 成员函数 继承自 elc::defs::stream_n::noexcept_stream_t
virtual int_t seek (seek_type, int_t) noexcept override=0
 
virtual int_t tell () noexcept override
 
virtual bool seek_to (int_t) noexcept override=0
 
virtual void sync () noexcept override=0
 
virtual void flush () noexcept override=0
 
virtual void close () noexcept override=0
 
- Public 成员函数 继承自 elc::defs::stream_n::base_stream_t
virtual ~base_stream_t ()=default
 
- Public 成员函数 继承自 elc::defs::stream_n::noexcept_not_unreadable_istream_t
virtual bool is_end () noexcept override=0
 
virtual bool waitting_for_data () noexcept override=0
 
virtual operator bool () noexcept override
 
- Public 成员函数 继承自 elc::defs::stream_n::data_not_unreadable_istream_t
template<class T >
requires ::std::is_trivially_copyable_v< T > size_t read (T *v, size_t size=1)
 

额外继承的成员函数

- Public 类型 继承自 elc::defs::stream_n::data_stream_t
typedef byte data_type
 

详细描述

在文件 all_defs.cpp29109 行定义.

成员函数说明

◆ read() [1/2]

virtual size_t elc::defs::stream_n::noexcept_not_unreadable_data_istream_t::read ( byte buf,
size_t  size 
)
overridepure virtualnoexcept

◆ read() [2/2]

template<class T >
requires ::std::is_trivially_copyable_v< T > size_t elc::defs::stream_n::noexcept_not_unreadable_data_istream_t::read ( T *  v,
size_t  size = 1 
)
inlinenoexcept

在文件 all_defs.cpp29112 行定义.

29112 {
29113 return this->read(cast_to_data(v),size*sizeof(T))/sizeof(T);
29114 }
constexpr byte * cast_to_data(T *p) noexcept
virtual size_t read(byte *buf, size_t size) noexcept override=0
函数调用图:

该结构体的文档由以下文件生成: