Public Member Functions | Protected Member Functions | Private Attributes | Friends
gevd_bufferxy Class Reference

#include <gevd_bufferxy.h>

Inheritance diagram for gevd_bufferxy:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 gevd_bufferxy (int X, int Y, int B)
 Construct a gevd_bufferxy of width x, height y, and b bits per entry.
 gevd_bufferxy (int X, int Y, int B, void *memptr)
 Construct a gevd_bufferxy of width x, height y, and b bits per entry, and load data from memptr. Object will not free memptr.
 gevd_bufferxy (vil1_image const &img)
 Construct a gevd_bufferxy from a vil1_image.
 gevd_bufferxy (vil_image_resource_sptr const &img)
 Construct a gevd_bufferxy from a vil_image.
 ~gevd_bufferxy ()
 gevd_bufferxy (gevd_bufferxy const &)
int GetBitsPixel () const
int GetBytesPixel () const
int GetSizeX () const
int GetSizeY () const
int GetArea () const
int GetSize () const
void * GetBuffer ()
const void * GetBuffer () const
void * GetElementAddr (int x, int y)
const void * GetElementAddr (int x, int y) const
void dump (const char *filename)
 Write to file. Note that this can be OS-specific!.
 gevd_bufferxy (const char *filename)
 Read from file. Note that this can be OS-specific!.
void ClearStatus ()
int GetOffset () const
void SetOffset ()
void SkipBytes (int b)
void SkipToByte (int b)
void SkipToStart ()
void SkipToDataStart ()
int ReadBytes (void *ib, int b)
int ReadBytes (void *ib, int b, int loc)
 Read b bytes from location loc to buffer ib. New @ 6/11/91 gbs.
int ReadBytes (void *ib, int b, int *mapping)
int ReadBytes (void *ib, int b, int loc, int *mapping)
 Read b bytes from loc to ib, thru mapping. New @ 6/11/91 gbs.
int WriteBytes (const void *ib, int b)
int WriteBytes (const void *ib, int b, int loc)
 Write b bytes to location loc from buffer ib. New @ 6/11/91 gbs.
void Clear ()
 Clear the memory and reset all of the appropriate variables.
void SetStatusGood ()
void SetStatusBad (int c=-1)
StatusCode Stat () const
bool StatusGood () const
bool StatusBad () const
StatusCode GetStatusCode () const

Protected Member Functions

void Init (int X, int Y, int B)
 gevd_bufferxy ()
void SetBitsPixel (int d)
void SetBytesPixel (int d)
void SetSizeX (int x)
void SetSizeY (int y)
void SetMemoryPtr (int s, void *ib=0)
unsigned char * GetBufferPtr ()
const unsigned char * GetBufferPtr () const
unsigned char * GetCurrentPtr ()
void SetStatus (int x=0)
void ClearStatus (int x=0)

Private Attributes

int B
int X
int Y
unsigned char ** yra
unsigned int * xra

Friends

vcl_ostream & operator<< (vcl_ostream &os, gevd_bufferxy const &b)

Detailed Description

Definition at line 30 of file gevd_bufferxy.h.


Constructor & Destructor Documentation

gevd_bufferxy::gevd_bufferxy ( ) [protected]
gevd_bufferxy::gevd_bufferxy ( int  X,
int  Y,
int  B 
)

Construct a gevd_bufferxy of width x, height y, and b bits per entry.

Definition at line 40 of file gevd_bufferxy.cxx.

gevd_bufferxy::gevd_bufferxy ( int  X,
int  Y,
int  B,
void *  memptr 
)

Construct a gevd_bufferxy of width x, height y, and b bits per entry, and load data from memptr. Object will not free memptr.

Definition at line 46 of file gevd_bufferxy.cxx.

gevd_bufferxy::gevd_bufferxy ( vil1_image const &  img)

Construct a gevd_bufferxy from a vil1_image.

Definition at line 59 of file gevd_bufferxy.cxx.

gevd_bufferxy::gevd_bufferxy ( vil_image_resource_sptr const &  img)

Construct a gevd_bufferxy from a vil_image.

Definition at line 71 of file gevd_bufferxy.cxx.

gevd_bufferxy::~gevd_bufferxy ( )

Definition at line 138 of file gevd_bufferxy.cxx.

gevd_bufferxy::gevd_bufferxy ( gevd_bufferxy const &  buf)

Definition at line 144 of file gevd_bufferxy.cxx.

gevd_bufferxy::gevd_bufferxy ( const char *  filename)

Read from file. Note that this can be OS-specific!.

Definition at line 185 of file gevd_bufferxy.cxx.


Member Function Documentation

void gevd_memory_mixin::Clear ( ) [inherited]

Clear the memory and reset all of the appropriate variables.

Definition at line 324 of file gevd_memory_mixin.cxx.

void gevd_status_mixin::ClearStatus ( ) [inline, inherited]

Definition at line 70 of file gevd_status_mixin.h.

void gevd_memory_mixin::ClearStatus ( int  x = 0) [inline, protected, inherited]

Reimplemented from gevd_status_mixin.

Definition at line 86 of file gevd_memory_mixin.h.

void gevd_bufferxy::dump ( const char *  filename)

Write to file. Note that this can be OS-specific!.

Definition at line 151 of file gevd_bufferxy.cxx.

int gevd_bufferxy::GetArea ( ) const [inline]

Definition at line 65 of file gevd_bufferxy.h.

int gevd_bufferxy::GetBitsPixel ( ) const [inline]

Definition at line 61 of file gevd_bufferxy.h.

void* gevd_bufferxy::GetBuffer ( ) [inline]

Definition at line 69 of file gevd_bufferxy.h.

const void* gevd_bufferxy::GetBuffer ( ) const [inline]

Definition at line 70 of file gevd_bufferxy.h.

unsigned char* gevd_memory_mixin::GetBufferPtr ( ) [inline, protected, inherited]

Definition at line 81 of file gevd_memory_mixin.h.

const unsigned char* gevd_memory_mixin::GetBufferPtr ( ) const [inline, protected, inherited]

Definition at line 82 of file gevd_memory_mixin.h.

int gevd_bufferxy::GetBytesPixel ( ) const [inline]

Definition at line 62 of file gevd_bufferxy.h.

unsigned char* gevd_memory_mixin::GetCurrentPtr ( ) [inline, protected, inherited]

Definition at line 83 of file gevd_memory_mixin.h.

void* gevd_bufferxy::GetElementAddr ( int  x,
int  y 
) [inline]

Definition at line 71 of file gevd_bufferxy.h.

const void* gevd_bufferxy::GetElementAddr ( int  x,
int  y 
) const [inline]

Definition at line 72 of file gevd_bufferxy.h.

int gevd_memory_mixin::GetOffset ( ) const [inline, inherited]

Definition at line 98 of file gevd_memory_mixin.h.

int gevd_bufferxy::GetSize ( ) const [inline]

Reimplemented from gevd_memory_mixin.

Definition at line 66 of file gevd_bufferxy.h.

int gevd_bufferxy::GetSizeX ( ) const [inline]

Definition at line 63 of file gevd_bufferxy.h.

int gevd_bufferxy::GetSizeY ( ) const [inline]

Definition at line 64 of file gevd_bufferxy.h.

StatusCode gevd_status_mixin::GetStatusCode ( ) const [inline, inherited]

Definition at line 83 of file gevd_status_mixin.h.

void gevd_bufferxy::Init ( int  X,
int  Y,
int  B 
) [protected]

Definition at line 22 of file gevd_bufferxy.cxx.

int gevd_memory_mixin::ReadBytes ( void *  ib,
int  b 
) [inherited]

Definition at line 113 of file gevd_memory_mixin.cxx.

int gevd_memory_mixin::ReadBytes ( void *  ib,
int  b,
int  loc 
) [inherited]

Read b bytes from location loc to buffer ib. New @ 6/11/91 gbs.

Definition at line 132 of file gevd_memory_mixin.cxx.

int gevd_memory_mixin::ReadBytes ( void *  ib,
int  b,
int *  mapping 
) [inherited]

Definition at line 161 of file gevd_memory_mixin.cxx.

int gevd_memory_mixin::ReadBytes ( void *  ib,
int  b,
int  loc,
int *  mapping 
) [inherited]

Read b bytes from loc to ib, thru mapping. New @ 6/11/91 gbs.

Definition at line 181 of file gevd_memory_mixin.cxx.

void gevd_bufferxy::SetBitsPixel ( int  d) [inline, protected]

Definition at line 46 of file gevd_bufferxy.h.

void gevd_bufferxy::SetBytesPixel ( int  d) [inline, protected]

Definition at line 47 of file gevd_bufferxy.h.

void gevd_memory_mixin::SetMemoryPtr ( int  s,
void *  ib = 0 
) [protected, inherited]

Definition at line 215 of file gevd_memory_mixin.cxx.

void gevd_memory_mixin::SetOffset ( ) [inline, inherited]

Definition at line 99 of file gevd_memory_mixin.h.

void gevd_bufferxy::SetSizeX ( int  x) [inline, protected]

Definition at line 48 of file gevd_bufferxy.h.

void gevd_bufferxy::SetSizeY ( int  y) [inline, protected]

Definition at line 49 of file gevd_bufferxy.h.

void gevd_memory_mixin::SetStatus ( int  x = 0) [inline, protected, inherited]

Reimplemented from gevd_status_mixin.

Definition at line 85 of file gevd_memory_mixin.h.

void gevd_status_mixin::SetStatusBad ( int  c = -1) [inline, inherited]

Definition at line 75 of file gevd_status_mixin.h.

void gevd_status_mixin::SetStatusGood ( ) [inline, inherited]

Definition at line 74 of file gevd_status_mixin.h.

void gevd_memory_mixin::SkipBytes ( int  b) [inline, inherited]

Definition at line 101 of file gevd_memory_mixin.h.

void gevd_memory_mixin::SkipToByte ( int  b) [inline, inherited]

Definition at line 107 of file gevd_memory_mixin.h.

void gevd_memory_mixin::SkipToDataStart ( ) [inline, inherited]

Definition at line 113 of file gevd_memory_mixin.h.

void gevd_memory_mixin::SkipToStart ( ) [inline, inherited]

Definition at line 112 of file gevd_memory_mixin.h.

StatusCode gevd_status_mixin::Stat ( ) const [inline, inherited]

Definition at line 80 of file gevd_status_mixin.h.

bool gevd_status_mixin::StatusBad ( ) const [inline, inherited]

Definition at line 82 of file gevd_status_mixin.h.

bool gevd_status_mixin::StatusGood ( ) const [inline, inherited]

Definition at line 81 of file gevd_status_mixin.h.

int gevd_memory_mixin::WriteBytes ( const void *  ib,
int  b 
) [inherited]

Definition at line 271 of file gevd_memory_mixin.cxx.

int gevd_memory_mixin::WriteBytes ( const void *  ib,
int  b,
int  loc 
) [inherited]

Write b bytes to location loc from buffer ib. New @ 6/11/91 gbs.

Definition at line 295 of file gevd_memory_mixin.cxx.


Friends And Related Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  os,
gevd_bufferxy const &  b 
) [friend]

Definition at line 78 of file gevd_bufferxy.h.


Member Data Documentation

int gevd_bufferxy::B [private]

Definition at line 33 of file gevd_bufferxy.h.

int gevd_bufferxy::X [private]

Definition at line 34 of file gevd_bufferxy.h.

unsigned int* gevd_bufferxy::xra [private]

Definition at line 39 of file gevd_bufferxy.h.

int gevd_bufferxy::Y [private]

Definition at line 35 of file gevd_bufferxy.h.

unsigned char** gevd_bufferxy::yra [private]

Definition at line 38 of file gevd_bufferxy.h.


The documentation for this class was generated from the following files: