Go to the documentation of this file.
28 #ifndef CASA_BUCKETMAPPED_H
29 #define CASA_BUCKETMAPPED_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/IO/BucketBase.h>
34 #include <casacore/casa/IO/MMapfdIO.h>
98 return const_cast<char*
>(
getBucket(bucketNr));
BucketMapped & operator=(const BucketMapped &)
Assignment is not possible.
virtual void doFlush()
Flush the file.
Abstract base class for Bucket classes.
Use file mapping for buckets in a part of a file.
Bool itsHasWritten
Have data been written?
File object for BucketCache.
virtual void initializeBuckets(uInt bucketNr)
Initialize the bucket buffer.
char * getrwBucket(uInt bucketNr)
Get a writable pointer to the given bucket in memory.
virtual void doExtend(uInt nrBucket)
Extend the file with the given number of buckets.
this file contains all the compiler specific defines
BucketMapped(BucketFile *file, Int64 startOffset, uInt bucketSize, uInt nrOfBuckets)
Create the cache for (part of) a file.
virtual void doResync()
Do the actual resync-ing.
~BucketMapped()
Unmap the file.
const char * getBucket(uInt bucketNr)
Get a readonly pointer to the given bucket in memory.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
BucketMapped(const BucketMapped &)
Copy constructor is not possible.