Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Misc - DChunkC<class DataT>
 

  PUBLIC
DChunkC::DChunkC(void)
DChunkC::DChunkC(IndexC,const Array1dC &)
DChunkC::DChunkC(const Array1dC &)
DChunkC::Offset(void) const
DChunkC::Offset(void)
DChunkC::Size(void) const
DChunkC::IMax(void) const
DChunkC::IMin(void) const
DChunkC::Data(void) const
DChunkC::Data(void)
DChunkC::Contains(IndexC) const
DChunkC::Index(IndexC)
DChunkC::Index(IndexC) const
DChunkC::Nth(UIntT)
DChunkC::Nth(UIntT) const
DChunkC::First(void)
DChunkC::First(void) const
DChunkC::Last(void)
DChunkC::Last(void) const
DLinkC::SetSelfPointing(void)
DLinkC::IsSelfPointing(void) const
DLinkC::Next(void) const
DLinkC::Prev(void) const
DLinkC::Next(void)
DLinkC::Prev(void)
DLinkC::Reverse(void)
DLinkC::LinkBef(DLinkC &)
DLinkC::LinkAft(DLinkC &)
DLinkC::Unlink(void)
DLinkC::CutPaste(DLinkC &,DLinkC &)

   DChunkC<class DataT>   
 
Chunk of a dynamic array.
 
include "Ravl/DArray1d.hh"
Source file:Ravl/Core/System/DArray1d.hh
User Level:Develop
Library:RavlCore
In Scope:RavlN

Parent Classes: Variables:
Array1dC data;

Methods:
DChunkC()
Default constructor.

DChunkC(IndexC noff,const Array1dC<DataT> & dat)
Constructor.

DChunkC(const Array1dC<DataT> & dat)
Constructor.

IndexC Offset() const
Offset from start of list.

IndexC & Offset()
Offset from start of list.

UIntT Size() const
Size of chunk.

IndexC IMax() const
Maximum offset used.

IndexC IMin() const
Maximum offset used.

const Array1dC<DataT> & Data() const
Access data.

Array1dC<DataT> & Data()
Access data.

bool Contains(IndexC i) const
Does this chunk contain the offset?

DataT & Index(IndexC i)
Access data.

const DataT & Index(IndexC i) const
Access data.

DataT & Nth(UIntT i)
Access nth element in the array from the first in this chunk.

const DataT & Nth(UIntT i) const
Access nth element in the array from the first in this chunk

DataT & First()
First element in the array.

const DataT & First() const
First element in the array.

DataT & Last()
First element in the array.

const DataT & Last() const
First element in the array.

#include "Ravl/DLink.hh"
void SetSelfPointing()
Set both links to point to this object.

bool IsSelfPointing() const
Returns TRUE if the next element is this element.

const DLinkC & Next() const
Returns the next element in a constant list.

const DLinkC & Prev() const
Returns the previous element in a constant list.

DLinkC & Next()
Returns the next element in a list.

DLinkC & Prev()
Returns the previous element in a list.

void Reverse()
Swap links.
Swaps the links in all chain elements exchanging meaning of "successor" and "predecessor".

DLinkC & LinkBef(DLinkC & elm)
Links 'elm' before the element.
The links of 'elm' need not to be proper links.

DLinkC & LinkAft(DLinkC & elm)
Links 'elm' after this element.
The links of 'elm' need not to be proper links.

DLinkC & Unlink()
Unlinks the list element from the list.
The predecessor and the successor of this element will be linked to each other. However, the links of this element stay unchanged. Returns this list element.

void CutPaste(DLinkC & firstCut,DLinkC & firstNotCut)
Splice list elements between firstCut, and firstNotCut into this list.
Cuts the chain of double links elements starting at 'firstCut' and ending at the element previous of 'firstNotCut' from a chain. The rest of the chain is linked together again. The cut part is linked in after this element.


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002