MicroModelicaCCompiler  4.5.3
MicroModelica::IR::RangeDefinition Class Reference

#include <index.hpp>

Collaboration diagram for MicroModelica::IR::RangeDefinition:

Public Member Functions

 RangeDefinition ()
 
 RangeDefinition (int begin, int end, int step=1)
 
 RangeDefinition (Expression begin_exp, Expression end_exp, int begin, int end, int step=1)
 
 ~RangeDefinition ()=default
 
int begin () const
 
int cBegin () const
 
int end () const
 
int cEnd () const
 
int step () const
 
int size () const
 
void setBegin (int begin)
 
void setEnd (int end)
 
std::string beginExp (bool convert_params, bool c_index) const
 
std::string endExp (bool convert_params, bool c_index) const
 

Protected Member Functions

std::string generateExp (Expression exp, int limit, bool convert_params) const
 

Protected Attributes

int _begin
 
int _end
 
int _step
 
Expression _begin_exp
 
Expression _end_exp
 

Detailed Description

Definition at line 136 of file index.hpp.

Constructor & Destructor Documentation

◆ RangeDefinition() [1/3]

MicroModelica::IR::RangeDefinition::RangeDefinition ( )
inline

Definition at line 138 of file index.hpp.

◆ RangeDefinition() [2/3]

MicroModelica::IR::RangeDefinition::RangeDefinition ( int  begin,
int  end,
int  step = 1 
)

Definition at line 246 of file index.cpp.

◆ RangeDefinition() [3/3]

MicroModelica::IR::RangeDefinition::RangeDefinition ( Expression  begin_exp,
Expression  end_exp,
int  begin,
int  end,
int  step = 1 
)

Definition at line 248 of file index.cpp.

◆ ~RangeDefinition()

MicroModelica::IR::RangeDefinition::~RangeDefinition ( )
default

Member Function Documentation

◆ begin()

int MicroModelica::IR::RangeDefinition::begin ( ) const
inline

◆ beginExp()

string MicroModelica::IR::RangeDefinition::beginExp ( bool  convert_params,
bool  c_index 
) const

Definition at line 272 of file index.cpp.

◆ cBegin()

int MicroModelica::IR::RangeDefinition::cBegin ( ) const
inline

Definition at line 143 of file index.hpp.

References MicroModelica::IR::Range::_ranges.

◆ cEnd()

int MicroModelica::IR::RangeDefinition::cEnd ( ) const
inline

Definition at line 145 of file index.hpp.

◆ end()

int MicroModelica::IR::RangeDefinition::end ( ) const
inline

Definition at line 144 of file index.hpp.

Referenced by MicroModelica::IR::Index::isEmpty().

◆ endExp()

string MicroModelica::IR::RangeDefinition::endExp ( bool  convert_params,
bool  c_index 
) const

Definition at line 277 of file index.cpp.

◆ generateExp()

string MicroModelica::IR::RangeDefinition::generateExp ( Expression  exp,
int  limit,
bool  convert_params 
) const
protected

Definition at line 257 of file index.cpp.

◆ setBegin()

void MicroModelica::IR::RangeDefinition::setBegin ( int  begin)

Definition at line 253 of file index.cpp.

◆ setEnd()

void MicroModelica::IR::RangeDefinition::setEnd ( int  end)

Definition at line 255 of file index.cpp.

◆ size()

int MicroModelica::IR::RangeDefinition::size ( ) const
inline

Definition at line 147 of file index.hpp.

◆ step()

int MicroModelica::IR::RangeDefinition::step ( ) const
inline

Definition at line 146 of file index.hpp.

Referenced by MicroModelica::IR::Range::getExp().

Member Data Documentation

◆ _begin

int MicroModelica::IR::RangeDefinition::_begin
protected

Definition at line 155 of file index.hpp.

Referenced by MicroModelica::IR::Index::constant().

◆ _begin_exp

Expression MicroModelica::IR::RangeDefinition::_begin_exp
protected

Definition at line 158 of file index.hpp.

◆ _end

int MicroModelica::IR::RangeDefinition::_end
protected

Definition at line 156 of file index.hpp.

Referenced by MicroModelica::IR::Index::isEmpty().

◆ _end_exp

Expression MicroModelica::IR::RangeDefinition::_end_exp
protected

Definition at line 159 of file index.hpp.

◆ _step

int MicroModelica::IR::RangeDefinition::_step
protected

Definition at line 157 of file index.hpp.


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