LLVM API Documentation

Public Member Functions | Friends
PBQP::Vector Class Reference

PBQP Vector class. More...

#include <Math.h>

Inheritance diagram for PBQP::Vector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Vector (unsigned Length)
 Construct a PBQP vector of the given size.
 Vector (unsigned Length, PBQPNum InitVal)
 Construct a PBQP vector with initializer.
 Vector (const Vector &V)
 Copy construct a PBQP vector.
 Vector (Vector &&V)
 Move construct a PBQP vector.
 ~Vector ()
 Destroy this vector, return its memory.
Vectoroperator= (const Vector &V)
 Copy-assignment operator.
Vectoroperator= (Vector &&V)
 Move-assignment operator.
bool operator== (const Vector &V) const
 Comparison operator.
unsigned getLength () const
 Return the length of the vector.
PBQPNumoperator[] (unsigned Index)
 Element access.
const PBQPNumoperator[] (unsigned Index) const
 Const element access.
Vectoroperator+= (const Vector &V)
 Add another vector to this one.
Vectoroperator-= (const Vector &V)
 Subtract another vector from this one.
unsigned minIndex () const
 Returns the index of the minimum value in this vector.

Friends

class VectorComparator

Detailed Description

PBQP Vector class.

Definition at line 22 of file Math.h.


Constructor & Destructor Documentation

PBQP::Vector::Vector ( unsigned  Length) [inline, explicit]

Construct a PBQP vector of the given size.

Definition at line 27 of file Math.h.

PBQP::Vector::Vector ( unsigned  Length,
PBQPNum  InitVal 
) [inline]

Construct a PBQP vector with initializer.

Definition at line 34 of file Math.h.

PBQP::Vector::Vector ( const Vector V) [inline]

Copy construct a PBQP vector.

Definition at line 43 of file Math.h.

PBQP::Vector::Vector ( Vector &&  V) [inline]

Move construct a PBQP vector.

Definition at line 51 of file Math.h.

PBQP::Vector::~Vector ( ) [inline]

Destroy this vector, return its memory.

Definition at line 58 of file Math.h.


Member Function Documentation

unsigned PBQP::Vector::getLength ( ) const [inline]

Return the length of the vector.

Definition at line 93 of file Math.h.

Referenced by PBQP::operator<<(), and PBQP::RegAlloc::NodeMetadata::setup().

unsigned PBQP::Vector::minIndex ( ) const [inline]

Returns the index of the minimum value in this vector.

Definition at line 129 of file Math.h.

Vector& PBQP::Vector::operator+= ( const Vector V) [inline]

Add another vector to this one.

Definition at line 113 of file Math.h.

Vector& PBQP::Vector::operator-= ( const Vector V) [inline]

Subtract another vector from this one.

Definition at line 121 of file Math.h.

Vector& PBQP::Vector::operator= ( const Vector V) [inline]

Copy-assignment operator.

Definition at line 64 of file Math.h.

Vector& PBQP::Vector::operator= ( Vector &&  V) [inline]

Move-assignment operator.

Definition at line 75 of file Math.h.

bool PBQP::Vector::operator== ( const Vector V) const [inline]

Comparison operator.

Definition at line 85 of file Math.h.

References llvm::lltok::equal.

PBQPNum& PBQP::Vector::operator[] ( unsigned  Index) [inline]

Element access.

Definition at line 99 of file Math.h.

const PBQPNum& PBQP::Vector::operator[] ( unsigned  Index) const [inline]

Const element access.

Definition at line 106 of file Math.h.


Friends And Related Function Documentation

friend class VectorComparator [friend]

Definition at line 23 of file Math.h.


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