8 #ifndef VECTOR_DIST_OPERATORS_LIST_KER_HPP_
9 #define VECTOR_DIST_OPERATORS_LIST_KER_HPP_
33 template<
typename vector_dist_ker_type>
46 void add(vector_dist_ker_type & v)
52 if (vkers.
size() >= 64)
54 std::cout << __FILE__ <<
":" << __LINE__ <<
" The array of tracked vector_dist_ker become suspiciously big, are there memory leak ? " << std::endl;
64 void update(
const vector_dist_ker_type & v)
66 for (
size_t i = 0 ; i < vkers.
size() ; i++)
78 void remove(vector_dist_ker_type & v)
80 for (
size_t i = 0 ; i < vkers.
size() ; i++)
82 if (&vkers.get(i).v == &v)
105 bool check(
const vector_dist_ker_type & v)
107 for (
size_t i = 0 ; i < vkers.
size() ; i++)
109 if (!(vkers.get(i).v == v))
Implementation of 1-D std::vector like structure.
This class contain a list of all tracked vector_dist_ker around.
void add(vector_dist_ker_type &v)
Add a new vector_dist_kernel to track.
void update(const vector_dist_ker_type &v)
Update the addresses of all vector_dist_kernels around.
void remove(vector_dist_ker_type &v)
Remove one vector_dist_kernels entry.
size_t n_entry()
Return the number of entries.
bool check(const vector_dist_ker_type &v)
Check that all the entries are aligned to the latest vector_dist_ker_type.