[asterisk-scf-commits] asterisk-scf/integration/statereplicator.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu Sep 23 17:11:26 CDT 2010
branch "master" has been updated
via 24047862d0ef0b2731e29338771745de22032ad9 (commit)
via e46581e5f761d966afbbae17f61cfdd698664cf0 (commit)
from 0725be8f7b208fb427c81014e5ca4bd737900794 (commit)
Summary of changes:
src/StateReplicator.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 24047862d0ef0b2731e29338771745de22032ad9
Merge: e46581e 0725be8
Author: Mark Michelson <mmichelson at digium.com>
Date: Thu Sep 23 17:12:05 2010 -0500
Merge branch 'master' of git.asterisk.org:asterisk-scf/integration/statereplicator
commit e46581e5f761d966afbbae17f61cfdd698664cf0
Author: Mark Michelson <mmichelson at digium.com>
Date: Thu Sep 23 17:11:49 2010 -0500
Fix some typos in the comments of the header.
diff --git a/src/StateReplicator.h b/src/StateReplicator.h
index 5a4fb81..91f0921 100644
--- a/src/StateReplicator.h
+++ b/src/StateReplicator.h
@@ -25,14 +25,14 @@ namespace StateReplication
void removeListener(TestStateReplicatorListener *listener);
void setState (FooStateItemSeq items);
void removeState(FooKeySeq items);
- idempotent TestStateItemSeq getState(FooSeq itemKeys);
+ idempotent TestStateItemSeq getState(FooKeySeq itemKeys);
idempotent TestStateItemSeq getAllState();
};
The Listener should implement (at a minimum) these operations:
interface FooStateReplicatorListener
{
- void stateRemove(FooSeq itemKeys);
+ void stateRemoved(FooKeySeq itemKeys);
void stateSet(FooStateItemSeq items);
};
@@ -100,7 +100,7 @@ public:
*/
void removeListener(const L& listener, const Ice::Current& = ::Ice::Current())
{
- std::vector<L>::iterator it = std::find_if(mListeners.begin(), mListeners.end(), IdentifyListener<L>(listener));
+ typename std::vector<L>::iterator it = std::find_if(mListeners.begin(), mListeners.end(), IdentifyListener<L>(listener));
if (it != mListeners.end())
{
@@ -123,12 +123,12 @@ public:
{
std::vector<K> allIds;
- for(std::map<K, S>::const_iterator it = mStateItemMap.begin(); it != mStateItemMap.end(); ++it)
+ for(typename std::map<K, S>::const_iterator it = mStateItemMap.begin(); it != mStateItemMap.end(); ++it)
{
allIds.push_back(it->first);
}
- for_each(mListeners.begin(), mListeners.end(), RemoveStateNotice<L,std::vector<K>>(allIds));
+ for_each(mListeners.begin(), mListeners.end(), RemoveStateNotice<L,std::vector<K> >(allIds));
mStateItemMap.clear();
}
@@ -139,10 +139,10 @@ public:
*/
void setState(const std::vector<S>& items, const Ice::Current& = ::Ice::Current())
{
- for (std::vector<S>::const_iterator iter = items.begin();
+ for (typename std::vector<S>::const_iterator iter = items.begin();
iter != items.end(); ++iter)
{
- std::map<K, S>::iterator mapItem = mStateItemMap.find((*iter)->key);
+ typename std::map<K, S>::iterator mapItem = mStateItemMap.find((*iter)->key);
if (mapItem != mStateItemMap.end())
{
@@ -154,7 +154,7 @@ public:
}
}
- for_each( mListeners.begin(), mListeners.end(), SetStateNotice<L,std::vector<S>>(items) );
+ for_each( mListeners.begin(), mListeners.end(), SetStateNotice<L,std::vector<S> >(items) );
}
/**
@@ -163,12 +163,12 @@ public:
*/
void removeState(const std::vector<K>& ids, const Ice::Current& = ::Ice::Current())
{
- for (std::vector<K>::const_iterator iter = ids.begin(); iter != ids.end(); ++iter)
+ for (typename std::vector<K>::const_iterator iter = ids.begin(); iter != ids.end(); ++iter)
{
mStateItemMap.erase(*iter);
}
- for_each(mListeners.begin(), mListeners.end(), RemoveStateNotice<L,std::vector<K>>(ids));
+ for_each(mListeners.begin(), mListeners.end(), RemoveStateNotice<L,std::vector<K> >(ids));
}
/**
@@ -179,7 +179,7 @@ public:
{
std::vector<S> results;
- for(std::vector<K>::const_iterator it = itemKeys.begin(); it != itemKeys.end(); ++it)
+ for(typename std::vector<K>::const_iterator it = itemKeys.begin(); it != itemKeys.end(); ++it)
{
results.push_back(mStateItemMap[(*it)]);
}
@@ -194,7 +194,7 @@ public:
{
std::vector<S> results;
- for(std::map<K, S>::const_iterator it = mStateItemMap.begin(); it != mStateItemMap.end(); ++it)
+ for(typename std::map<K, S>::const_iterator it = mStateItemMap.begin(); it != mStateItemMap.end(); ++it)
{
results.push_back(it->second);
}
-----------------------------------------------------------------------
--
asterisk-scf/integration/statereplicator.git
More information about the asterisk-scf-commits
mailing list