Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

parquetfp::SeqPair Class Reference

#include <SeqPair.h>

Collaboration diagram for parquetfp::SeqPair:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SeqPair ()
 SeqPair (unsigned size)
 SeqPair (const vector< unsigned > &X, const vector< unsigned > &Y)
const vector< unsigned > & getX () const
const vector< unsigned > & getY () const
void putX (const vector< unsigned > &X)
void putY (const vector< unsigned > &Y)
void printX (void) const
void printY (void) const
unsigned getSize (void) const

Private Attributes

vector< unsigned > _XX
vector< unsigned > _YY

Constructor & Destructor Documentation

parquetfp::SeqPair::SeqPair  )  [inline]
 

Definition at line 56 of file SeqPair.h.

00056 {}

SeqPair::SeqPair unsigned  size  ) 
 

Definition at line 49 of file SeqPair.cxx.

References _XX, and _YY.

00050 {
00051    _XX.resize(size);
00052    _YY.resize(size);
00053    for(unsigned i=0; i<size; ++i)
00054    {
00055       _XX[i] = i;
00056       _YY[i] = i;
00057    }
00058    random_shuffle(_XX.begin(),_XX.end());
00059    random_shuffle(_YY.begin(),_YY.end());
00060 }

SeqPair::SeqPair const vector< unsigned > &  X,
const vector< unsigned > &  Y
 

Definition at line 62 of file SeqPair.cxx.

00064    : _XX(X),
00065      _YY(Y)
00066 {
00067    if(X.size() != Y.size())
00068       cout<<"ERROR: Input Sequence Pairs of different sizes"<<endl;
00069 }


Member Function Documentation

unsigned parquetfp::SeqPair::getSize void   )  const [inline]
 

Definition at line 89 of file SeqPair.h.

References _XX.

Referenced by parquetfp::Annealer::makeMoveOrient().

00090    {  return _XX.size(); }

const vector< unsigned > & parquetfp::SeqPair::getX  )  const [inline]
 

Definition at line 77 of file SeqPair.h.

References _XX.

Referenced by parquetfp::Annealer::anneal(), parquetfp::Annealer::eval(), parquetfp::Annealer::evalCompact(), parquetfp::Annealer::evalSlacks(), parquetfp::Annealer::go(), and parquetfp::Annealer::packSoftBlocks().

00078    {   return _XX; }

const vector< unsigned > & parquetfp::SeqPair::getY  )  const [inline]
 

Definition at line 80 of file SeqPair.h.

References _YY.

Referenced by parquetfp::Annealer::anneal(), parquetfp::Annealer::eval(), parquetfp::Annealer::evalCompact(), parquetfp::Annealer::evalSlacks(), parquetfp::Annealer::go(), and parquetfp::Annealer::packSoftBlocks().

00081    {   return _YY; }

void parquetfp::SeqPair::printX void   )  const [inline]
 

Definition at line 92 of file SeqPair.h.

References _XX.

Referenced by parquetfp::Annealer::anneal().

00093    {
00094       cout<<"X Seq Pair"<<endl;
00095       for(unsigned i=0; i<_XX.size(); ++i)
00096       {
00097          cout<<_XX[i]<<" ";
00098       }
00099       cout<<endl;
00100    }

void parquetfp::SeqPair::printY void   )  const [inline]
 

Definition at line 102 of file SeqPair.h.

References _XX, and _YY.

Referenced by parquetfp::Annealer::anneal().

00103    {
00104       cout<<"Y Seq Pair"<<endl;
00105       for(unsigned i=0; i<_XX.size(); ++i)
00106       {
00107          cout<<_YY[i]<<" ";
00108       }
00109       cout<<endl;
00110    }

void parquetfp::SeqPair::putX const vector< unsigned > &  X  )  [inline]
 

Definition at line 83 of file SeqPair.h.

References _XX.

Referenced by parquetfp::Annealer::anneal(), and parquetfp::Annealer::takeSPfromDB().

00084    { _XX = X; }

void parquetfp::SeqPair::putY const vector< unsigned > &  Y  )  [inline]
 

Definition at line 86 of file SeqPair.h.

References _YY.

Referenced by parquetfp::Annealer::anneal(), and parquetfp::Annealer::takeSPfromDB().

00087    { _YY = Y; }


Member Data Documentation

vector<unsigned> parquetfp::SeqPair::_XX [private]
 

Definition at line 51 of file SeqPair.h.

Referenced by getSize(), getX(), printX(), printY(), putX(), and SeqPair().

vector<unsigned> parquetfp::SeqPair::_YY [private]
 

Definition at line 52 of file SeqPair.h.

Referenced by getY(), printY(), putY(), and SeqPair().


The documentation for this class was generated from the following files:
Generated on Mon Apr 25 01:18:28 2005 for Parquete by doxygen 1.3.2