Skip to content

Commit b4cf423

Browse files
committed
declare some AggrTypeDescriptor member functions const
1 parent 52635e7 commit b4cf423

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/clstepcore/ExpDict.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,19 +1687,19 @@ class SCL_CORE_EXPORT AggrTypeDescriptor : public TypeDescriptor {
16871687

16881688

16891689
/// find bound type
1690-
AggrBoundTypeEnum Bound1Type() { return _bound1_type; };
1690+
AggrBoundTypeEnum Bound1Type() const { return _bound1_type; };
16911691
/// get a constant bound
1692-
SDAI_Integer Bound1( ) {
1692+
SDAI_Integer Bound1( ) const {
16931693
assert( _bound1_type == bound_constant );
16941694
return _bound1;
16951695
}
16961696
/// get a runtime bound using an object's 'this' pointer
1697-
SDAI_Integer Bound1Runtime( SDAI_Application_instance* this_ptr) {
1697+
SDAI_Integer Bound1Runtime( SDAI_Application_instance* this_ptr) const {
16981698
assert( this_ptr && ( _bound1_type == bound_runtime ) );
16991699
return _bound1_callback(this_ptr) ;
17001700
}
17011701
/// get a bound's EXPRESS function call string
1702-
std::string Bound1Funcall() {
1702+
std::string Bound1Funcall() const {
17031703
return _bound1_str;
17041704
}
17051705
/// set bound to a constant
@@ -1719,19 +1719,19 @@ class SCL_CORE_EXPORT AggrTypeDescriptor : public TypeDescriptor {
17191719
}
17201720

17211721
/// find bound type
1722-
AggrBoundTypeEnum Bound2Type() { return _bound2_type; };
1722+
AggrBoundTypeEnum Bound2Type() const { return _bound2_type; };
17231723
/// get a constant bound
1724-
SDAI_Integer Bound2( ) {
1724+
SDAI_Integer Bound2( ) const {
17251725
assert( _bound2_type == bound_constant );
17261726
return _bound2;
17271727
}
17281728
/// get a runtime bound using an object's 'this' pointer
1729-
SDAI_Integer Bound2Runtime( SDAI_Application_instance* this_ptr) {
1729+
SDAI_Integer Bound2Runtime( SDAI_Application_instance* this_ptr) const {
17301730
assert( this_ptr && ( _bound2_type == bound_runtime ) );
17311731
return _bound2_callback(this_ptr) ;
17321732
}
17331733
/// get a bound's EXPRESS function call string
1734-
std::string Bound2Funcall() {
1734+
std::string Bound2Funcall() const {
17351735
return _bound2_str;
17361736
}
17371737
/// set bound to a constant

0 commit comments

Comments
 (0)