Tkrzw
Public Member Functions | Public Attributes | List of all members
tkrzw::FreeBlock Struct Referencefinal

Free block structure. More...

#include <tkrzw_dbm_hash_impl.h>

Public Member Functions

 FreeBlock ()
 Constructor. More...
 
 FreeBlock (int64_t offset, int32_t size)
 Constructor. More...
 
bool operator< (const FreeBlock &rhs) const
 Comparator to get the minimum free block. More...
 

Public Attributes

int64_t offset
 The offset in the file. More...
 
int32_t size
 The size of the block. More...
 

Detailed Description

Free block structure.

Constructor & Destructor Documentation

◆ FreeBlock() [1/2]

tkrzw::FreeBlock::FreeBlock ( )

Constructor.

◆ FreeBlock() [2/2]

tkrzw::FreeBlock::FreeBlock ( int64_t  offset,
int32_t  size 
)

Constructor.

Parameters
offsetThe offset in the file.
sizeThe size of the block

Member Function Documentation

◆ operator<()

bool tkrzw::FreeBlock::operator< ( const FreeBlock rhs) const

Comparator to get the minimum free block.

Parameters
rhsThe other object to compare with.
Returns
True if the self record is smaller than the oher record.

Member Data Documentation

◆ offset

int64_t tkrzw::FreeBlock::offset

The offset in the file.

◆ size

int32_t tkrzw::FreeBlock::size

The size of the block.