29 #ifndef CMEMCOPIER_HPP_
30 #define CMEMCOPIER_HPP_
59 bool init(
const T* arg_mem);
79 CMemCopier<T>::CMemCopier()
96 { initialized_ =
true; }
102 template <
typename T>
108 typename std::vector<T*>::iterator it, ite;
110 for(it= buf_.begin(); it!=ite; ++it)
121 buf_.push_back(arg_buf);
124 { initialized_ =
true; }
132 template <
typename T>
135 typename std::vector<T*>::iterator it, ite;
137 for(it= buf_.begin(); it!=ite; ++it)
147 { initialized_ =
false; }
155 template <
typename T>
163 typename std::vector<T*>::iterator it, ite;
165 for(it= buf_.begin(); it!=ite; ++it)
170 { flag =
false;
continue; }
172 { memcpy((
void*)(*it),mem_,
sizeof(T)); }
bool copy()
Definition: CMemCopier.hpp:156
std::vector< T * > buf_
Definition: CMemCopier.hpp:49
Definition: CMemCopier.hpp:42
bool init(const T *arg_mem)
Definition: CMemCopier.hpp:86
const T * mem_
Definition: CMemCopier.hpp:46
T * removeBuf(T *arg_buf)
Definition: CMemCopier.hpp:133
bool initialized_
Definition: CMemCopier.hpp:52
bool addBuf(T *arg_buf)
Definition: CMemCopier.hpp:103