LLVM  3.7.0
Public Member Functions | Friends | List of all members
llvm::PBQP::Vector Class Reference

PBQP Vector class. More...

#include <Math.h>

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

Public Member Functions

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

Friends

hash_code hash_value (const Vector &)
 Return a hash_value for the given vector. More...
 

Detailed Description

PBQP Vector class.

Definition at line 24 of file Math.h.

Constructor & Destructor Documentation

llvm::PBQP::Vector::Vector ( unsigned  Length)
inlineexplicit

Construct a PBQP vector of the given size.

Definition at line 29 of file Math.h.

llvm::PBQP::Vector::Vector ( unsigned  Length,
PBQPNum  InitVal 
)
inline

Construct a PBQP vector with initializer.

Definition at line 36 of file Math.h.

llvm::PBQP::Vector::Vector ( const Vector V)
inline

Copy construct a PBQP vector.

Definition at line 45 of file Math.h.

llvm::PBQP::Vector::Vector ( Vector &&  V)
inline

Move construct a PBQP vector.

Definition at line 53 of file Math.h.

llvm::PBQP::Vector::~Vector ( )
inline

Destroy this vector, return its memory.

Definition at line 60 of file Math.h.

Member Function Documentation

unsigned llvm::PBQP::Vector::getLength ( ) const
inline

Return the length of the vector.

Definition at line 95 of file Math.h.

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

unsigned llvm::PBQP::Vector::minIndex ( ) const
inline

Returns the index of the minimum value in this vector.

Definition at line 131 of file Math.h.

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

Add another vector to this one.

Definition at line 115 of file Math.h.

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

Subtract another vector from this one.

Definition at line 123 of file Math.h.

Vector& llvm::PBQP::Vector::operator= ( const Vector V)
inline

Copy-assignment operator.

Definition at line 66 of file Math.h.

Vector& llvm::PBQP::Vector::operator= ( Vector &&  V)
inline

Move-assignment operator.

Definition at line 77 of file Math.h.

bool llvm::PBQP::Vector::operator== ( const Vector V) const
inline

Comparison operator.

Definition at line 87 of file Math.h.

References llvm::lltok::equal.

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

Element access.

Definition at line 101 of file Math.h.

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

Const element access.

Definition at line 108 of file Math.h.

Friends And Related Function Documentation

hash_code hash_value ( const Vector V)
friend

Return a hash_value for the given vector.

Definition at line 142 of file Math.h.


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