Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes | Friends
icl::core::DataSegmentBase::Bytes Class Reference

Very simple Byte Vector class to provide binary access to DataSegmentBase data. More...

#include <DataSegmentBase.h>

List of all members.

Public Member Functions

int getDim () const
 returns the number of contained byte elements
icl8uoperator[] (int idx)
 index operator
const icl8u operator[] (int idx) const
 index operator (const)
Bytesoperator= (const Bytes &other) throw (utils::ICLException)
 deep copy assignment operator
icl8ubegin ()
 iterator based access to the data begin
icl8uend ()
 iterator based access to the data end
const icl8ubegin () const
 iterator based access to the data begin (const)
const icl8uend () const
 iterator based access to the data end (const)

Private Member Functions

 Bytes (icl8u *data=0, int len=0)
 constructor (private)
 Bytes (const Bytes &other)
 copy constructor (also provivate)

Private Attributes

icl8udata
 data pointer (shallowly wrapped)
int len

Friends

struct DataSegmentBase
 only the DataSegmentBase can create these

Detailed Description

Very simple Byte Vector class to provide binary access to DataSegmentBase data.


Constructor & Destructor Documentation

icl::core::DataSegmentBase::Bytes::Bytes ( icl8u data = 0,
int  len = 0 
) [inline, private]

constructor (private)

icl::core::DataSegmentBase::Bytes::Bytes ( const Bytes other) [inline, private]

copy constructor (also provivate)


Member Function Documentation

iterator based access to the data begin

iterator based access to the data begin (const)

iterator based access to the data end

const icl8u* icl::core::DataSegmentBase::Bytes::end ( ) const [inline]

iterator based access to the data end (const)

returns the number of contained byte elements

Bytes& icl::core::DataSegmentBase::Bytes::operator= ( const Bytes other) throw (utils::ICLException) [inline]

deep copy assignment operator

if source and destination lengths differ, an exception is thrown

icl8u& icl::core::DataSegmentBase::Bytes::operator[] ( int  idx) [inline]

index operator

const icl8u icl::core::DataSegmentBase::Bytes::operator[] ( int  idx) const [inline]

index operator (const)


Friends And Related Function Documentation

friend struct DataSegmentBase [friend]

only the DataSegmentBase can create these


Member Data Documentation

data pointer (shallowly wrapped)

number of byte elements


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