LLVM  4.0.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...
 
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...
 
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 33 of file Math.h.

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

Copy construct a PBQP vector.

Definition at line 39 of file Math.h.

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

Move construct a PBQP vector.

Definition at line 45 of file Math.h.

Member Function Documentation

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

Return the length of the vector.

Definition at line 59 of file Math.h.

References assert().

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 88 of file Math.h.

References assert().

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

Add another vector to this one.

Definition at line 79 of file Math.h.

References assert(), and llvm::transform().

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

Comparison operator.

Definition at line 51 of file Math.h.

References assert(), and llvm::lltok::equal.

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

Element access.

Definition at line 65 of file Math.h.

References assert().

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

Const element access.

Definition at line 72 of file Math.h.

References assert().

Friends And Related Function Documentation

hash_code hash_value ( const Vector V)
friend

Return a hash_value for the given vector.

Definition at line 99 of file Math.h.


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