LLVM API Documentation

llvm::PBQPVector Class Reference

PBQP Vector class. More...

#include <PBQP.h>

Collaboration diagram for llvm::PBQPVector:
[legend]

List of all members.

Public Member Functions

 PBQPVector (unsigned length)
 Construct a PBQP vector of the given size.
 PBQPVector (const PBQPVector &v)
 Copy construct a PBQP vector.
 ~PBQPVector ()
PBQPVector & operator= (const PBQPVector &v)
 Assignment operator.
unsigned getLength () const throw ()
 Return the length of the vector.
PBQPNum & operator[] (unsigned index)
 Element access.
const PBQPNum & operator[] (unsigned index) const
 Const element access.
PBQPVector & operator+= (const PBQPVector &v)
 Add another vector to this one.
PBQPVector & operator-= (const PBQPVector &v)
 Subtract another vector from this one.
unsigned minIndex () const
 Returns the index of the minimum value in this vector.


Detailed Description

PBQP Vector class.

Definition at line 33 of file PBQP.h.


Constructor & Destructor Documentation

llvm::PBQPVector::PBQPVector ( unsigned  length  )  [inline, explicit]

Construct a PBQP vector of the given size.

Definition at line 37 of file PBQP.h.

llvm::PBQPVector::PBQPVector ( const PBQPVector &  v  )  [inline]

Copy construct a PBQP vector.

Definition at line 43 of file PBQP.h.

References data.

llvm::PBQPVector::~PBQPVector (  )  [inline]

Definition at line 48 of file PBQP.h.


Member Function Documentation

PBQPVector& llvm::PBQPVector::operator= ( const PBQPVector &  v  )  [inline]

Assignment operator.

Definition at line 51 of file PBQP.h.

References data, and length.

unsigned llvm::PBQPVector::getLength (  )  const throw () [inline]

PBQPNum& llvm::PBQPVector::operator[] ( unsigned  index  )  [inline]

Element access.

Definition at line 65 of file PBQP.h.

const PBQPNum& llvm::PBQPVector::operator[] ( unsigned  index  )  const [inline]

Const element access.

Definition at line 71 of file PBQP.h.

PBQPVector& llvm::PBQPVector::operator+= ( const PBQPVector &  v  )  [inline]

Add another vector to this one.

Definition at line 77 of file PBQP.h.

References data, and length.

PBQPVector& llvm::PBQPVector::operator-= ( const PBQPVector &  v  )  [inline]

Subtract another vector from this one.

Definition at line 84 of file PBQP.h.

References data, and length.

unsigned llvm::PBQPVector::minIndex (  )  const [inline]

Returns the index of the minimum value in this vector.

Definition at line 91 of file PBQP.h.

Referenced by llvm::determine_solution(), and llvm::determine_trivialsolution().


The documentation for this class was generated from the following file: