Metall  v0.28
A persistent memory allocator for data-centric analytics
csr< index_t, vid_t, allocator_t > Class Template Reference

Simple CSR graph data structure that can take a custom C++ allocator and be stored in persistent memory. More...

#include </home/runner/work/metall/metall/example/graph_data_structure/csr.hpp>

Public Member Functions

 csr (const std::size_t num_vertices, const std::size_t num_edges, allocator_t allocator=allocator_t())
 
 ~csr ()
 
index_t * indices ()
 Returns a raw pointer to the indices array. More...
 
vid_t * edges ()
 Returns a raw pointer to the edges array. More...
 

Detailed Description

template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
class csr< index_t, vid_t, allocator_t >

Simple CSR graph data structure that can take a custom C++ allocator and be stored in persistent memory.

Template Parameters
index_tIndex type
vid_tVertex ID type
allocator_tAllocator type
Examples
csr_graph.cpp.

Constructor & Destructor Documentation

◆ csr()

template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
csr< index_t, vid_t, allocator_t >::csr ( const std::size_t  num_vertices,
const std::size_t  num_edges,
allocator_t  allocator = allocator_t() 
)
inline

◆ ~csr()

template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
csr< index_t, vid_t, allocator_t >::~csr ( )
inline

Member Function Documentation

◆ indices()

template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
index_t* csr< index_t, vid_t, allocator_t >::indices ( )
inline

Returns a raw pointer to the indices array.

◆ edges()

template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
vid_t* csr< index_t, vid_t, allocator_t >::edges ( )
inline

Returns a raw pointer to the edges array.


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