Go to the documentation of this file.
16 #ifndef STORAGES_RT_MUTABLE_GRAPH_CSR_ADJ_LIST_H_
17 #define STORAGES_RT_MUTABLE_GRAPH_CSR_ADJ_LIST_H_
27 static void copy(T* new_buffer, T* old_buffer,
size_t len) {
28 memcpy((
void*) new_buffer, (
void*) old_buffer, len *
sizeof(T));
32 template <
typename EDATA_T>
104 #endif // STORAGES_RT_MUTABLE_GRAPH_CSR_ADJ_LIST_H_
void set_size(int size)
Definition: nbr.h:438
const nbr_t * data() const
Definition: adj_list.h:93
void init(nbr_t *ptr, int cap, int size)
Definition: adj_list.h:45
uint32_t timestamp_t
Definition: types.h:30
void set_size(int size)
Definition: nbr.h:262
void set_begin(const_nbr_ptr_t ptr)
Definition: nbr.h:265
static void copy(T *new_buffer, T *old_buffer, size_t len)
Definition: adj_list.h:27
uint32_t vid_t
Definition: types.h:31
Definition: adj_list.h:33
Definition: adj_list.h:23
void batch_put_edge(vid_t neighbor, const EDATA_T &data, timestamp_t ts=0)
Definition: adj_list.h:51
std::atomic< timestamp_t > timestamp
Definition: nbr.h:220
Definition: allocators.h:29
int capacity() const
Definition: adj_list.h:91
~MutableAdjlist()
Definition: adj_list.h:43
nbr_t * data()
Definition: adj_list.h:94
void set_begin(nbr_t *ptr)
Definition: nbr.h:441
slice_t get_edges() const
Definition: adj_list.h:77
vid_t neighbor
Definition: nbr.h:219
mut_slice_t get_edges_mut()
Definition: adj_list.h:84
Definition: adj_list.h:26
std::atomic< int > size_
Definition: adj_list.h:98
MutableAdjlist()
Definition: adj_list.h:38
Definition: loading_config.h:232
void * allocate(size_t size)
Definition: allocators.h:60
void put_edge(vid_t neighbor, const EDATA_T &data, timestamp_t ts, Allocator &allocator)
Definition: adj_list.h:59
int size() const
Definition: adj_list.h:92
MutableAdjlist(const MutableAdjlist &rhs)
Definition: adj_list.h:39
int capacity_
Definition: adj_list.h:99
nbr_t * buffer_
Definition: adj_list.h:97