libqasm
library for handling cQASM files
Public Member Functions | Protected Attributes | List of all members
compiler::NumericalIdentifiers Class Reference

Public Member Functions

 NumericalIdentifiers ()=default
 
void addToVector (const int index)
 
void addToVector (const int index_min, const int index_max)
 
const std::vector< size_t > & getIndices () const
 
void removeDuplicates ()
 
void clear ()
 
void printMembers () const
 

Protected Attributes

std::vector< size_t > indices_
 

Detailed Description

Definition at line 21 of file qasm_ast.hpp.

#include <qasm_ast.hpp>

Collaboration diagram for compiler::NumericalIdentifiers:
Collaboration graph
[legend]

Constructor & Destructor Documentation

◆ NumericalIdentifiers()

compiler::NumericalIdentifiers::NumericalIdentifiers ( )
default

Member Function Documentation

◆ addToVector() [1/2]

void compiler::NumericalIdentifiers::addToVector ( const int  index)
inline

Definition at line 27 of file qasm_ast.hpp.

◆ addToVector() [2/2]

void compiler::NumericalIdentifiers::addToVector ( const int  index_min,
const int  index_max 
)
inline

Definition at line 33 of file qasm_ast.hpp.

◆ getIndices()

const std::vector<size_t>& compiler::NumericalIdentifiers::getIndices ( ) const
inline

Definition at line 40 of file qasm_ast.hpp.

◆ removeDuplicates()

void compiler::NumericalIdentifiers::removeDuplicates ( )
inline

Definition at line 45 of file qasm_ast.hpp.

◆ clear()

void compiler::NumericalIdentifiers::clear ( )
inline

Definition at line 51 of file qasm_ast.hpp.

◆ printMembers()

void compiler::NumericalIdentifiers::printMembers ( ) const
inline

Definition at line 56 of file qasm_ast.hpp.

Member Data Documentation

◆ indices_

std::vector<size_t> compiler::NumericalIdentifiers::indices_
protected

Definition at line 67 of file qasm_ast.hpp.


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