Image Component Library (ICL)
|
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 | |
icl8u & | operator[] (int idx) |
index operator | |
const icl8u | operator[] (int idx) const |
index operator (const) | |
Bytes & | operator= (const Bytes &other) throw (utils::ICLException) |
deep copy assignment operator | |
icl8u * | begin () |
iterator based access to the data begin | |
icl8u * | end () |
iterator based access to the data end | |
const icl8u * | begin () const |
iterator based access to the data begin (const) | |
const icl8u * | end () 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 | |
icl8u * | data |
data pointer (shallowly wrapped) | |
int | len |
Friends | |
struct | DataSegmentBase |
only the DataSegmentBase can create these |
Very simple Byte Vector class to provide binary access to DataSegmentBase data.
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)
icl8u* icl::core::DataSegmentBase::Bytes::begin | ( | ) | [inline] |
iterator based access to the data begin
const icl8u* icl::core::DataSegmentBase::Bytes::begin | ( | ) | const [inline] |
iterator based access to the data begin (const)
icl8u* icl::core::DataSegmentBase::Bytes::end | ( | ) | [inline] |
iterator based access to the data end
const icl8u* icl::core::DataSegmentBase::Bytes::end | ( | ) | const [inline] |
iterator based access to the data end (const)
int icl::core::DataSegmentBase::Bytes::getDim | ( | ) | const [inline] |
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)
friend struct DataSegmentBase [friend] |
only the DataSegmentBase can create these
icl8u* icl::core::DataSegmentBase::Bytes::data [private] |
data pointer (shallowly wrapped)
int icl::core::DataSegmentBase::Bytes::len [private] |
number of byte elements