本文整理汇总了C++中safe_ptr::print方法的典型用法代码示例。如果您正苦于以下问题:C++ safe_ptr::print方法的具体用法?C++ safe_ptr::print怎么用?C++ safe_ptr::print使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类safe_ptr
的用法示例。
在下文中一共展示了safe_ptr::print方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: status
layer_status status() const
{
layer_status status;
status.foreground = foreground_->print();
status.background = background_->print();
status.is_paused = is_paused_;
status.total_frames = foreground_->nb_frames();
status.current_frame = frame_number_;
return status;
}
示例2: receive_and_follow
safe_ptr<basic_frame> receive_and_follow(safe_ptr<frame_producer>& producer, int hints)
{
auto frame = producer->receive(hints);
if(frame == basic_frame::eof())
{
CASPAR_LOG(info) << producer->print() << " End Of File.";
auto following = producer->get_following_producer();
if(following != frame_producer::empty())
{
following->set_leading_producer(producer);
producer = std::move(following);
}
else
producer = make_safe<last_frame_producer>(producer);
return receive_and_follow(producer, hints);
}
return frame;
}
示例3: print
virtual std::wstring print() const override
{
return L"separated[fill:" + fill_producer_->print() + L"|key[" + key_producer_->print() + L"]]";
}
示例4: print
virtual std::wstring print() const override
{
return L"transition[" + source_producer_->print() + L"=>" + dest_producer_->print() + L"]";
}
示例5: print
virtual std::wstring print() const override
{
return consumer_->print();
}
示例6:
last_frame_producer(const safe_ptr<frame_producer>& producer)
: print_(producer->print())
, frame_(producer->last_frame() != basic_frame::eof() ? producer->last_frame() : basic_frame::empty())
, nb_frames_(producer->nb_frames())
{
}