ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PageAllocator Class Reference

#include <neighbor_list.h>

Collaboration diagram for PageAllocator:

Classes

struct  Page
 

Public Member Functions

 PageAllocator ()
 
 PageAllocator (int pgsize_)
 
 ~PageAllocator ()
 
 PageAllocator (const PageAllocator &)=delete
 
PageAllocatoroperator= (const PageAllocator &)=delete
 
 PageAllocator (PageAllocator &&)=default
 
PageAllocatoroperator= (PageAllocator &&)=default
 
void new_page ()
 
int * allocate (int n)
 
void reset ()
 

Public Attributes

std::vector< Pagepages
 
int pgsize
 

Static Public Attributes

static constexpr int DEFAULT_PGSIZE = 1024
 

Constructor & Destructor Documentation

◆ PageAllocator() [1/4]

PageAllocator::PageAllocator ( )
inline
Here is the call graph for this function:

◆ PageAllocator() [2/4]

PageAllocator::PageAllocator ( int  pgsize_)
inline
Here is the call graph for this function:

◆ ~PageAllocator()

PageAllocator::~PageAllocator ( )
inline

◆ PageAllocator() [3/4]

PageAllocator::PageAllocator ( const PageAllocator )
delete

◆ PageAllocator() [4/4]

PageAllocator::PageAllocator ( PageAllocator &&  )
default

Member Function Documentation

◆ allocate()

int * PageAllocator::allocate ( int  n)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_page()

void PageAllocator::new_page ( )
inline
Here is the caller graph for this function:

◆ operator=() [1/2]

PageAllocator & PageAllocator::operator= ( const PageAllocator )
delete

◆ operator=() [2/2]

PageAllocator & PageAllocator::operator= ( PageAllocator &&  )
default

◆ reset()

void PageAllocator::reset ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ DEFAULT_PGSIZE

constexpr int PageAllocator::DEFAULT_PGSIZE = 1024
staticconstexpr

◆ pages

std::vector<Page> PageAllocator::pages

◆ pgsize

int PageAllocator::pgsize

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