Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes
stxxl::BID< SIZE > Struct Template Reference

Block identifier class. More...

#include <bid.h>

Inheritance diagram for stxxl::BID< SIZE >:
Inheritance graph
[legend]
Collaboration diagram for stxxl::BID< SIZE >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { size = SIZE, t_size = SIZE }

Public Member Functions

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

Public Attributes

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

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 40 of file bid.h.


Member Enumeration Documentation

template<unsigned SIZE>
anonymous enum
Enumerator:
size 

Block size.

t_size 

Blocks size, given by the parameter.

Definition at line 42 of file bid.h.


Constructor & Destructor Documentation

template<unsigned SIZE>
stxxl::BID< SIZE >::BID ( ) [inline]

Definition at line 51 of file bid.h.

template<unsigned SIZE>
stxxl::BID< SIZE >::BID ( file s,
stxxl::int64  o 
) [inline]

Definition at line 59 of file bid.h.

template<unsigned SIZE>
stxxl::BID< SIZE >::BID ( const BID< SIZE > &  obj) [inline]

Definition at line 62 of file bid.h.

template<unsigned SIZE>
template<unsigned BlockSize>
stxxl::BID< SIZE >::BID ( const BID< BlockSize > &  obj) [inline, explicit]

Definition at line 66 of file bid.h.


Member Function Documentation

template<unsigned SIZE>
bool stxxl::BID< SIZE >::is_managed ( ) const [inline]

Definition at line 77 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 70 of file bid.h.

template<unsigned SIZE>
bool stxxl::BID< SIZE >::valid ( ) const [inline]

Member Data Documentation

template<unsigned SIZE>
stxxl::int64 stxxl::BID< SIZE >::offset
template<unsigned SIZE>
file* stxxl::BID< SIZE >::storage

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines