[opengtl-commits] [740] more const |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 740
Author: cyrille
Date: 2009-05-26 15:08:09 +0200 (Tue, 26 May 2009)
Log Message:
-----------
more const
Modified Paths:
--------------
trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp
trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h
Modified: trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp 2009-05-26 13:06:15 UTC (rev 739)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.cpp 2009-05-26 13:08:09 UTC (rev 740)
@@ -68,7 +68,7 @@
m_registeredVariables.push_back(variable);
}
-bool TemplateGenerationContext::isAllreadyRegistered( const GTLCore::String& variable) {
+bool TemplateGenerationContext::isAllreadyRegistered( const GTLCore::String& variable) const {
foreach( const GTLCore::String& string, m_registeredVariables)
{
if( string == variable ) return true;
@@ -76,16 +76,16 @@
return false;
}
-const GTLCore::String& TemplateGenerationContext::suffix() {
+const GTLCore::String& TemplateGenerationContext::suffix() const {
GTL_ASSERT(m_isLocalContext);
return m_suffix;
}
-int TemplateGenerationContext::currentChannel() {
+int TemplateGenerationContext::currentChannel() const {
GTL_ASSERT(m_isLocalContext);
return m_currentChannel;
}
const GTLCore::Type* TemplateGenerationContext::currentChannelType() const {
- return pixelDescription().channelTypes()[currentChannelType()];
+ return pixelDescription().channelTypes()[currentChannel()];
}
Modified: trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h 2009-05-26 13:06:15 UTC (rev 739)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/templatecompiler/GenerationContext_p.h 2009-05-26 13:08:09 UTC (rev 740)
@@ -34,9 +34,9 @@
const GTLCore::PixelDescription& pixelDescription() const;
void startOperation();
void registerVariable( const GTLCore::String& variable);
- bool isAllreadyRegistered( const GTLCore::String& variable);
- const GTLCore::String& suffix();
- int currentChannel();
+ bool isAllreadyRegistered( const GTLCore::String& variable) const;
+ const GTLCore::String& suffix() const;
+ int currentChannel() const;
const GTLCore::Type* currentChannelType() const;
private:
GTLCore::String m_code;