BOSS 7.0.5
BESIII Offline Software System
|
#include <PagedMemory.h>
Classes | |
class | const_iterator |
struct | node_t |
Public Types | |
typedef struct eformat::PagedMemory::node_t | node_t |
typedef struct eformat::PagedMemory::node_t | node_t |
Public Member Functions | |
PagedMemory (const struct iovec *pages, size_t count) | |
const struct iovec * | pages (void) const |
size_t | count (void) const |
size_t | size (void) const |
const_iterator | begin (void) const |
const_iterator | end (void) const |
PagedMemory (const struct iovec *pages, size_t count) | |
const struct iovec * | pages (void) const |
size_t | count (void) const |
size_t | size (void) const |
const_iterator | begin (void) const |
const_iterator | end (void) const |
Static Public Attributes | |
static const unsigned int | MAXPAGES = TMAXPAGES |
A list of nodes. To gain speed, the PagedMemory uses an internal page index. The default maximum size of this index is 128. The user can instanciate bigger PagedMemory objects by increasing the default template parameter size to a more suitable value.
@warn Attention: PagedMemory's with different index sizes cannot interact directly.
Definition at line 39 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
typedef struct eformat::PagedMemory::node_t eformat::PagedMemory< TMAXPAGES >::node_t |
Define a private type that is used to index the access to this type of eformat::Memory. The performance of this iterator is dependent on the distance from the current offset and on the page sizes. Try to use the iterator for small scale reach and readjust if necessary.
typedef struct eformat::PagedMemory::node_t eformat::PagedMemory< TMAXPAGES >::node_t |
Define a private type that is used to index the access to this type of eformat::Memory. The performance of this iterator is dependent on the distance from the current offset and on the page sizes. Try to use the iterator for small scale reach and readjust if necessary.
eformat::PagedMemory< TMAXPAGES >::PagedMemory | ( | const struct iovec * | pages, |
size_t | count | ||
) |
Simpler constructor: starts from an existing set of base addresses and sizes. Please note that for reasons of simplicity, the data in all memory blocks have to be 32-bit aligned. Otherwise, the implementation should be DC::Buffer, where this has all been thought about.
Also note that this class is intended for reading data and optimized for such. If you just want to manipulate fragments you are better doing it your self or using the writing part of the library.
pages | The memory area I would like to read data from |
count | The number of pages pointed by the variable pages. This has to be smaller than TMAXPAGES. |
Definition at line 274 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
eformat::PagedMemory< TMAXPAGES >::PagedMemory | ( | const struct iovec * | pages, |
size_t | count | ||
) |
Simpler constructor: starts from an existing set of base addresses and sizes. Please note that for reasons of simplicity, the data in all memory blocks have to be 32-bit aligned. Otherwise, the implementation should be DC::Buffer, where this has all been thought about.
Also note that this class is intended for reading data and optimized for such. If you just want to manipulate fragments you are better doing it your self or using the writing part of the library.
pages | The memory area I would like to read data from |
count | The number of pages pointed by the variable pages. This has to be smaller than TMAXPAGES. |
|
inline |
Returns a const iterator to the begin of this list
it | An updateable iterator you should provide. |
Definition at line 249 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
Referenced by main().
|
inline |
Returns a const iterator to the begin of this list
it | An updateable iterator you should provide. |
Definition at line 249 of file InstallArea/include/eformat/eformat/PagedMemory.h.
|
inline |
Returns the number of blocks in this IO vector
Definition at line 71 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
Referenced by eformat::PagedMemory< TMAXPAGES >::PagedMemory().
|
inline |
Returns the number of blocks in this IO vector
Definition at line 71 of file InstallArea/include/eformat/eformat/PagedMemory.h.
|
inline |
Returns a const iterator to the end of this list
it | An updateable iterator you should provide. |
Definition at line 257 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
|
inline |
Returns a const iterator to the end of this list
it | An updateable iterator you should provide. |
Definition at line 257 of file InstallArea/include/eformat/eformat/PagedMemory.h.
|
inline |
Returns the base address of the input IO vector
Definition at line 66 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
Referenced by eformat::PagedMemory< TMAXPAGES >::PagedMemory().
|
inline |
Returns the base address of the input IO vector
Definition at line 66 of file InstallArea/include/eformat/eformat/PagedMemory.h.
|
inline |
Returns the size in bytes words for this PagedMemory.
Definition at line 76 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
|
inline |
Returns the size in bytes words for this PagedMemory.
Definition at line 76 of file InstallArea/include/eformat/eformat/PagedMemory.h.
|
static |
Definition at line 43 of file Event/eformat/eformat-00-00-04/eformat/PagedMemory.h.
Referenced by eformat::PagedMemory< TMAXPAGES >::PagedMemory().