ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
PageAllocator Class Reference

#include <page_allocator.h>

Collaboration diagram for PageAllocator:

Classes

struct  Page

Public Types

enum  { default_pgsize = 1024 }

Public Member Functions

 PageAllocator ()=default
 PageAllocator (const PageAllocator &)=delete
PageAllocator & operator= (const PageAllocator &)=delete
 PageAllocator (PageAllocator &&)=default
PageAllocator & operator= (PageAllocator &&)=default
void initialize (int pgsize)
int * allocate (int n)
void reset ()
int get_pgsize () const

Private Member Functions

void new_page_ ()

Private Attributes

std::vector< Page > pages_
int pgsize_ = default_pgsize

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
default_pgsize 

Constructor & Destructor Documentation

◆ PageAllocator() [1/3]

PageAllocator::PageAllocator ( )
default
Here is the caller graph for this function:

◆ PageAllocator() [2/3]

PageAllocator::PageAllocator ( const PageAllocator & )
delete
Here is the call graph for this function:

◆ PageAllocator() [3/3]

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

Member Function Documentation

◆ allocate()

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

◆ get_pgsize()

int PageAllocator::get_pgsize ( ) const
Here is the caller graph for this function:

◆ initialize()

void PageAllocator::initialize ( int pgsize)
Here is the caller graph for this function:

◆ new_page_()

void PageAllocator::new_page_ ( )
private
Here is the caller graph for this function:

◆ operator=() [1/2]

PageAllocator & PageAllocator::operator= ( const PageAllocator & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

PageAllocator & PageAllocator::operator= ( PageAllocator && )
default
Here is the call graph for this function:

◆ reset()

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

Member Data Documentation

◆ pages_

std::vector<Page> PageAllocator::pages_
private

◆ pgsize_

int PageAllocator::pgsize_ = default_pgsize
private

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