Image Component Library (ICL)
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
icl::core::DataSegmentBase::Bytes Class Reference

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

#include <DataSegmentBase.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

icl8udata
 data pointer (shallowly wrapped) More...
 
int len
 

Friends

struct DataSegmentBase
 only the DataSegmentBase can create these More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Bytes() [1/2]

icl::core::DataSegmentBase::Bytes::Bytes ( icl8u data = 0,
int  len = 0 
)
inlineprivate

constructor (private)

◆ Bytes() [2/2]

icl::core::DataSegmentBase::Bytes::Bytes ( const Bytes other)
inlineprivate

copy constructor (also provivate)

Member Function Documentation

◆ begin() [1/2]

icl8u* icl::core::DataSegmentBase::Bytes::begin ( )
inline

iterator based access to the data begin

◆ begin() [2/2]

const icl8u* icl::core::DataSegmentBase::Bytes::begin ( ) const
inline

iterator based access to the data begin (const)

◆ end() [1/2]

icl8u* icl::core::DataSegmentBase::Bytes::end ( )
inline

iterator based access to the data end

◆ end() [2/2]

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

iterator based access to the data end (const)

◆ getDim()

int icl::core::DataSegmentBase::Bytes::getDim ( ) const
inline

returns the number of contained byte elements

◆ operator=()

Bytes& icl::core::DataSegmentBase::Bytes::operator= ( const Bytes other)
inline

deep copy assignment operator

if source and destination lengths differ, an exception is thrown

◆ operator[]() [1/2]

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

index operator

◆ operator[]() [2/2]

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

index operator (const)

Friends And Related Function Documentation

◆ DataSegmentBase

friend struct DataSegmentBase
friend

only the DataSegmentBase can create these

Member Data Documentation

◆ data

icl8u* icl::core::DataSegmentBase::Bytes::data
private

data pointer (shallowly wrapped)

◆ len

int icl::core::DataSegmentBase::Bytes::len
private

number of byte elements


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