User Documentation
RAVL, Recognition And Vision Library
DEVELOP 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<class DataC>   
 
Pair of homogenious objects
 
include "Ravl/Pair.hh"
Created:27/02/1997 
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:
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.


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