libwps::AllocTable Class Reference

Public Member Functions

 AllocTable ()
 
void clear ()
 
unsigned long count ()
 
void resize (unsigned long newsize)
 
void set (unsigned long index, unsigned long val)
 
std::vector< unsigned long > follow (unsigned long start)
 
unsigned long operator[] (unsigned long index)
 
void load (const unsigned char *buffer, unsigned len)
 

Public Attributes

unsigned blockSize
 

Static Public Attributes

static const unsigned Eof = 0xfffffffe
 
static const unsigned Avail = 0xffffffff
 
static const unsigned Bat = 0xfffffffd
 
static const unsigned MetaBat = 0xfffffffc
 

Private Member Functions

 AllocTable (const AllocTable &)
 
AllocTableoperator= (const AllocTable &)
 

Private Attributes

std::vector< unsigned long > data
 

Constructor & Destructor Documentation

◆ AllocTable() [1/2]

libwps::AllocTable::AllocTable ( )

◆ AllocTable() [2/2]

libwps::AllocTable::AllocTable ( const AllocTable )
private

Member Function Documentation

◆ clear()

void libwps::AllocTable::clear ( )

◆ count()

unsigned long libwps::AllocTable::count ( )

Referenced by follow(), load(), and set().

◆ follow()

std::vector< unsigned long > libwps::AllocTable::follow ( unsigned long  start)

◆ load()

void libwps::AllocTable::load ( const unsigned char *  buffer,
unsigned  len 
)

Referenced by libwps::StorageIO::load().

◆ operator=()

AllocTable& libwps::AllocTable::operator= ( const AllocTable )
private

◆ operator[]()

unsigned long libwps::AllocTable::operator[] ( unsigned long  index)

◆ resize()

void libwps::AllocTable::resize ( unsigned long  newsize)

Referenced by AllocTable(), load(), and set().

◆ set()

void libwps::AllocTable::set ( unsigned long  index,
unsigned long  val 
)

Member Data Documentation

◆ Avail

const unsigned libwps::AllocTable::Avail = 0xffffffff
static

◆ Bat

const unsigned libwps::AllocTable::Bat = 0xfffffffd
static

Referenced by follow(), and libwps::Header::load().

◆ blockSize

◆ data

std::vector<unsigned long> libwps::AllocTable::data
private

Referenced by count(), follow(), operator[](), resize(), and set().

◆ Eof

const unsigned libwps::AllocTable::Eof = 0xfffffffe
static

Referenced by follow(), and libwps::Header::load().

◆ MetaBat

const unsigned libwps::AllocTable::MetaBat = 0xfffffffc
static

Referenced by follow(), and libwps::Header::load().


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

Generated on Sat Oct 20 2018 10:26:42 for libwps by doxygen 1.8.13