Logo ROOT  
Reference Guide
BidirMMapPipe_impl::Pages Class Reference

handle class for a number of Pages

Author
Manuel Schiller manue.nosp@m.l.sc.nosp@m.hille.nosp@m.r@ni.nosp@m.khef..nosp@m.nl
Date
2013-07-24

the associated pages are continuous in memory

Definition at line 132 of file BidirMMapPipe.h.

Classes

struct  impl
 implementation More...
 

Public Member Functions

 Pages ()
 default constructor More...
 
 Pages (const Pages &other)
 copy constructor More...
 
 ~Pages ()
 destructor More...
 
unsigned npages () const
 return number of pages accessible More...
 
Pagesoperator= (const Pages &other)
 assignment operator More...
 
unsigned operator[] (Page *p) const
 perform page to page number mapping More...
 
Page * operator[] (unsigned pgno) const
 return page number pageno More...
 
Page * page (unsigned pgno) const
 return page number pageno More...
 
unsigned pageno (Page *p) const
 perform page to page number mapping More...
 
void swap (Pages &other)
 swap with other's contents More...
 

Static Public Member Functions

static unsigned pagesize ()
 return page size More...
 

Private Member Functions

 Pages (PageChunk *parent, Page *pages, unsigned npg)
 constructor More...
 

Private Attributes

implm_pimpl
 pointer to implementation More...
 

Friends

class BidirMMapPipe_impl::PageChunk
 page pool is our friend - it's allowed to construct Pages More...
 

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/roofit/roofitcore/src/BidirMMapPipe.h>

Constructor & Destructor Documentation

◆ Pages() [1/3]

BidirMMapPipe_impl::Pages::Pages ( )
inline

default constructor

Definition at line 143 of file BidirMMapPipe.h.

◆ ~Pages()

BidirMMapPipe_impl::Pages::~Pages ( )

destructor

Definition at line 282 of file BidirMMapPipe.cxx.

◆ Pages() [2/3]

BidirMMapPipe_impl::Pages::Pages ( const Pages other)

copy constructor

copy Pages handle to new object - old object loses ownership, and becomes a dangling handle

Definition at line 290 of file BidirMMapPipe.cxx.

◆ Pages() [3/3]

BidirMMapPipe_impl::Pages::Pages ( PageChunk parent,
Page *  pages,
unsigned  npg 
)
private

constructor

Definition at line 266 of file BidirMMapPipe.cxx.

Member Function Documentation

◆ npages()

unsigned BidirMMapPipe_impl::Pages::npages ( ) const
inline

return number of pages accessible

Definition at line 166 of file BidirMMapPipe.h.

◆ operator=()

Pages & BidirMMapPipe_impl::Pages::operator= ( const Pages other)

assignment operator

assign Pages handle to new object - old object loses ownership, and becomes a dangling handle

Definition at line 294 of file BidirMMapPipe.cxx.

◆ operator[]() [1/2]

unsigned BidirMMapPipe_impl::Pages::operator[] ( Page *  p) const
inline

perform page to page number mapping

Definition at line 178 of file BidirMMapPipe.h.

◆ operator[]() [2/2]

Page* BidirMMapPipe_impl::Pages::operator[] ( unsigned  pgno) const
inline

return page number pageno

Definition at line 172 of file BidirMMapPipe.h.

◆ page()

Page * BidirMMapPipe_impl::Pages::page ( unsigned  pgno) const

return page number pageno

Definition at line 308 of file BidirMMapPipe.cxx.

◆ pageno()

unsigned BidirMMapPipe_impl::Pages::pageno ( Page *  p) const

perform page to page number mapping

Definition at line 317 of file BidirMMapPipe.cxx.

◆ pagesize()

unsigned BidirMMapPipe_impl::Pages::pagesize ( )
static

return page size

Definition at line 306 of file BidirMMapPipe.cxx.

◆ swap()

void BidirMMapPipe_impl::Pages::swap ( Pages other)
inline

swap with other's contents

Definition at line 181 of file BidirMMapPipe.h.

Friends And Related Function Documentation

◆ BidirMMapPipe_impl::PageChunk

friend class BidirMMapPipe_impl::PageChunk
friend

page pool is our friend - it's allowed to construct Pages

Definition at line 190 of file BidirMMapPipe.h.

Member Data Documentation

◆ m_pimpl

impl* BidirMMapPipe_impl::Pages::m_pimpl
private

pointer to implementation

Definition at line 193 of file BidirMMapPipe.h.


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