WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
DataSetBuffer< Component > Class Template Reference

View,Canvasなどで送信用にaddされたデータを管理する More...

#include <webcface/internal/data_buffer.h>

Inheritance diagram for DataSetBuffer< Component >:
[legend]

Public Member Functions

 DataSetBuffer ()
 
 DataSetBuffer (const Field &base)
 
 DataSetBuffer (const DataSetBuffer &)=delete
 
 DataSetBuffer (DataSetBuffer &&)=delete
 
DataSetBufferoperator= (const DataSetBuffer &)=delete
 
DataSetBufferoperator= (DataSetBuffer &&)=delete
 
virtual ~DataSetBuffer () noexcept
 
void onDestroy ()
 
void sync ()
 
void onSync ()
 データを処理しtargetにsetする
 
void init ()
 
virtual void onAdd ()
 add時のチェック
 
void add (Component &&cp)
 
void set (const std::vector< Component > &cv)
 まとめてセット
 
void set (std::initializer_list< Component > cl)
 
const std::vector< Component > & components () const
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 

Detailed Description

template<typename Component>
class webcface::internal::DataSetBuffer< Component >

View,Canvasなどで送信用にaddされたデータを管理する

Field側ではこれをshared_ptrで構築し適宜 init(), add(), sync() する

Constructor & Destructor Documentation

◆ DataSetBuffer() [1/4]

template<typename Component >
DataSetBuffer ( )
inline

◆ DataSetBuffer() [2/4]

template<typename Component >
DataSetBuffer ( const Field base)
inlineexplicit

◆ DataSetBuffer() [3/4]

template<typename Component >
DataSetBuffer ( const DataSetBuffer< Component > &  )
delete

◆ DataSetBuffer() [4/4]

template<typename Component >
DataSetBuffer ( DataSetBuffer< Component > &&  )
delete

◆ ~DataSetBuffer()

template<typename Component >
virtual ~DataSetBuffer ( )
inlinevirtualnoexcept

Member Function Documentation

◆ add()

template<typename Component >
void add ( Component &&  cp)
inline

◆ components()

template<typename Component >
const std::vector< Component > & components ( ) const
inline

◆ init()

template<typename Component >
void init ( )
inline

◆ onAdd()

template<typename Component >
virtual void onAdd ( )
inlinevirtual

add時のチェック

Reimplemented in Canvas2DDataBuf.

◆ onDestroy()

template<typename Component >
void onDestroy ( )
inline

◆ onSync() [1/9]

template<typename Component >
void onSync ( )

データを処理しtargetにsetする

実装は型ごと

◆ onSync() [2/9]

void onSync ( )

◆ onSync() [3/9]

void onSync ( )

◆ onSync() [4/9]

void onSync ( )

◆ onSync() [5/9]

void onSync ( )

◆ onSync() [6/9]

void onSync ( )

◆ onSync() [7/9]

void onSync ( )

◆ onSync() [8/9]

void onSync ( )

◆ onSync() [9/9]

void onSync ( )

◆ operator=() [1/2]

template<typename Component >
DataSetBuffer & operator= ( const DataSetBuffer< Component > &  )
delete

◆ operator=() [2/2]

template<typename Component >
DataSetBuffer & operator= ( DataSetBuffer< Component > &&  )
delete

◆ set() [1/2]

template<typename Component >
void set ( const std::vector< Component > &  cv)
inline

まとめてセット

initしてcomponentsを置き換えてsyncする

◆ set() [2/2]

template<typename Component >
void set ( std::initializer_list< Component >  cl)
inline

◆ sync()

template<typename Component >
void sync ( )
inline

The documentation for this class was generated from the following files: