CLAM-Development
1.1
|
#include <PhantomBuffer.hxx>
Public Member Functions | |
PhantomBuffer () | |
T * | Read (unsigned int pos, unsigned int size) |
void | Touch (unsigned int pos, unsigned int size) |
Updates the beginning or phantom zone corresponding with 'symetric' of the specifyed window /see UpdatePhantom. | |
void | Write (unsigned int pos, unsigned int size, const T *data) |
Copies an array into the buffer and updates (touches) the 'repeated' data (beginning or phantom) /see Touch. | |
unsigned | LogicalSize () const |
unsigned int | PhantomSize () const |
void | Resize (unsigned int size, unsigned int phantom, unsigned int insert_pos) |
void | FulfilsInvariant () const |
For debugging purposes. |
Definition at line 32 of file PhantomBuffer.hxx.
CLAM::PhantomBuffer< T >::PhantomBuffer | ( | ) |
Definition at line 93 of file PhantomBuffer.hxx.
void CLAM::PhantomBuffer< T >::FulfilsInvariant | ( | ) | const |
For debugging purposes.
Checks that: logical / phantom sizes are consistents and 'repeated' data is consistent /see Touch
Definition at line 202 of file PhantomBuffer.hxx.
References CLAM_ASSERT.
unsigned CLAM::PhantomBuffer< T >::LogicalSize | ( | ) | const [inline] |
Definition at line 52 of file PhantomBuffer.hxx.
unsigned int CLAM::PhantomBuffer< T >::PhantomSize | ( | ) | const [inline] |
Definition at line 54 of file PhantomBuffer.hxx.
Definition at line 152 of file PhantomBuffer.hxx.
References CLAM_DEBUG_ASSERT.
void CLAM::PhantomBuffer< T >::Resize | ( | unsigned int | size, |
unsigned int | phantom, | ||
unsigned int | insert_pos | ||
) |
Definition at line 122 of file PhantomBuffer.hxx.
References CLAM_ASSERT.
Updates the beginning or phantom zone corresponding with 'symetric' of the specifyed window /see UpdatePhantom.
Definition at line 161 of file PhantomBuffer.hxx.
References CLAM_DEBUG_ASSERT.
void CLAM::PhantomBuffer< T >::Write | ( | unsigned int | pos, |
unsigned int | size, | ||
const T * | data | ||
) |
Copies an array into the buffer and updates (touches) the 'repeated' data (beginning or phantom) /see Touch.
Definition at line 189 of file PhantomBuffer.hxx.
References CLAM_DEBUG_ASSERT.