STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::BID< Size > Struct Template Reference

Detailed Description

template<unsigned Size>
struct stxxl::BID< Size >

Block identifier class.

Stores block identity, given by file and offset within the file

Definition at line 41 of file bid.h.

+ Inheritance diagram for stxxl::BID< Size >:
+ Collaboration diagram for stxxl::BID< Size >:

Public Types

enum  { size = Size, t_size = Size }
 

Public Member Functions

 BID ()
 
 BID (file *s, stxxl::int64 o)
 
 BID (const BID &obj)
 
template<unsigned BlockSize>
 BID (const BID< BlockSize > &obj)
 
bool is_managed () const
 
template<unsigned BlockSize>
BIDoperator= (const BID< BlockSize > &obj)
 
bool valid () const
 

Public Attributes

stxxl::int64 offset
 offset within the file of the block More...
 
filestorage
 pointer to the file of the block More...
 

Member Enumeration Documentation

template<unsigned Size>
anonymous enum
Enumerator
size 

Block size.

t_size 

Blocks size, given by the parameter.

Definition at line 43 of file bid.h.

Constructor & Destructor Documentation

template<unsigned Size>
stxxl::BID< Size >::BID ( )
inline

Definition at line 52 of file bid.h.

template<unsigned Size>
stxxl::BID< Size >::BID ( file s,
stxxl::int64  o 
)
inline

Definition at line 60 of file bid.h.

template<unsigned Size>
stxxl::BID< Size >::BID ( const BID< Size > &  obj)
inline

Definition at line 63 of file bid.h.

template<unsigned Size>
template<unsigned BlockSize>
stxxl::BID< Size >::BID ( const BID< BlockSize > &  obj)
inlineexplicit

Definition at line 67 of file bid.h.

Member Function Documentation

template<unsigned Size>
bool stxxl::BID< Size >::is_managed ( ) const
inline

Definition at line 79 of file bid.h.

Referenced by stxxl::block_manager::delete_block().

template<unsigned Size>
template<unsigned BlockSize>
BID& stxxl::BID< Size >::operator= ( const BID< BlockSize > &  obj)
inline

Definition at line 72 of file bid.h.

template<unsigned Size>
bool stxxl::BID< Size >::valid ( ) const
inline

Member Data Documentation


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