summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/LibraryI.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-08-07 08:11:04 +0000
committerMichi Henning <michi@zeroc.com>2002-08-07 08:11:04 +0000
commit6f80a3ab314ce37197d8a5d9ece0ded1ddddb539 (patch)
treeb1c9c1ac1385e35699a919316605af66f2abd5d7 /cpp/demo/Freeze/library/LibraryI.cpp
parentSet _locator to 0 in LocatorInfo::destroy() (diff)
downloadice-6f80a3ab314ce37197d8a5d9ece0ded1ddddb539.tar.bz2
ice-6f80a3ab314ce37197d8a5d9ece0ded1ddddb539.tar.xz
ice-6f80a3ab314ce37197d8a5d9ece0ded1ddddb539.zip
Changed C++ mapping to generate const member functions in the skeleton
class for nonmutable operations.
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.cpp')
-rw-r--r--cpp/demo/Freeze/library/LibraryI.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp
index 298ed23c374..378868cd21e 100644
--- a/cpp/demo/Freeze/library/LibraryI.cpp
+++ b/cpp/demo/Freeze/library/LibraryI.cpp
@@ -23,7 +23,7 @@ BookI::~BookI()
}
void
-BookI::destroy(const Ice::Current&)
+BookI::destroy(const Ice::Current&) const
{
IceUtil::RWRecMutex::RLock sync(*this);
@@ -46,14 +46,14 @@ BookI::destroy(const Ice::Current&)
}
::BookDescription
-BookI::getBookDescription(const Ice::Current&)
+BookI::getBookDescription(const Ice::Current&) const
{
// Immutable
return description;
}
::std::string
-BookI::getRenterName(const Ice::Current&)
+BookI::getRenterName(const Ice::Current&) const
{
IceUtil::RWRecMutex::RLock sync(*this);
@@ -186,7 +186,7 @@ LibraryI::createBook(const ::BookDescription& description, const Ice::Current&)
}
::BookPrx
-LibraryI::findByIsbn(const string& isbn, const Ice::Current&)
+LibraryI::findByIsbn(const string& isbn, const Ice::Current&) const
{
//
// No locking is necessary since no internal mutable state is
@@ -210,7 +210,7 @@ LibraryI::findByIsbn(const string& isbn, const Ice::Current&)
}
::BookPrxSeq
-LibraryI::findByAuthors(const string& authors, const Ice::Current&)
+LibraryI::findByAuthors(const string& authors, const Ice::Current&) const
{
IceUtil::RWRecMutex::RLock sync(*this);
@@ -232,7 +232,7 @@ LibraryI::findByAuthors(const string& authors, const Ice::Current&)
}
void
-LibraryI::setEvictorSize(::Ice::Int size, const Ice::Current&)
+LibraryI::setEvictorSize(::Ice::Int size, const Ice::Current&) const
{
//
// No synchronization necessary, _evictor is immutable.
@@ -241,7 +241,7 @@ LibraryI::setEvictorSize(::Ice::Int size, const Ice::Current&)
}
void
-LibraryI::shutdown(const Ice::Current& current)
+LibraryI::shutdown(const Ice::Current& current) const
{
//
// No synchronization necessary, _adapter is immutable.