Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Tuples - PairC<class DataC>
 

  PUBLIC
PairC::PairC(void)
PairC::PairC(const PairC &)
PairC::PairC(const DataC &,const DataC &)
PairC::operator=(const PairC &)
PairC::operator[](IndexC) const
PairC::operator[](IndexC)
PairC::A(void) const
PairC::A(void)
PairC::B(void) const
PairC::B(void)
PairC::Size(void) const
PairC::IsValid(void) const
PairC::Contains(const IndexC) const
PairC::Swap(void)
PairC::Reverse(void)
PairC::operator=(const PairC &)

   PairC<class DataC>   
 
Pair of homogenious objects
 
include "Ravl/Pair.hh"
Created:27/02/1997 
Source file:Ravl/Core/Base/Pair.hh
User Level:Normal
Library:RavlCore
In Scope:RavlN

Comments:
The class PairC represents a pair of objects of the same type. It has basic features of arrays. The object class must provide the default constructor, the copy constructor, the assigment operator, and the destructor.

Variables:
DataC item[];
The pair of items.

Methods:
PairC()
The default constructor.

PairC(const PairC & p)
The copy constructor.

PairC(const DataC & o1,const DataC & o2)
Creates the pair of the objects 'o1' and 'o2'.

const PairC & operator=(const PairC & p)
The assigment. Access to the objects ---------------------

const DataC & operator[](IndexC i) const
Returns the i-th object of the pair.

DataC & operator[](IndexC i)
Access to the i-th object of the pair.

const DataC & A() const
Returns the first object of the pair.

DataC & A()
Access to the first object of the pair.

const DataC & B() const
Returns the first object of the pair.

DataC & B()
Access to the first object of the pair.

IndexC Size() const
Returns 2 as the number of elements of the pair.

bool IsValid() const
Returns always true confirming that the pair exists.

bool Contains(const IndexC i) const
Returns true if the pair contains an item with the index 'i'. Special operations ------------------

PairC & Swap()
Exchanges the order of items in the pair.

PairC & Reverse()
Exchanges the order of items in the pair.

const PairC<DataC> & operator=(const PairC<DataC> & p)


Maintainer:Radek Marik, Created: 27/02/1997, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002