30 #ifndef _COUPLING_POLICY_HXX_
31 #define _COUPLING_POLICY_HXX_
76 template <
typename Container >
78 const typename Container::key_type & expectedDataId,
79 bool & isEqual ,
bool & isBounded,
80 typename Container::iterator & wDataIt1 )
const {
81 typedef typename Container::key_type key_type;
82 typedef typename Container::value_type value_type;
83 typedef typename Container::iterator iterator;
86 wDataIt1 = std::find_if(storedDatas.begin(),storedDatas.end(),fkp);
87 isEqual = (wDataIt1 != storedDatas.end());
88 std::cout <<
"-------- Generic isDataIdConvenient : isEqual : " << isEqual <<
" , isBounded " << isBounded << std::endl;
89 return isEqual || isBounded;
97 template <
typename DataManipulator,
class EnableIf =
void >
100 template <
typename Iterator,
typename DataId >
103 const Iterator & it1)
const {
105 std::cout <<
"-------- Generic BoundedDataIdProcessor.apply() called " << std::endl;
115 template <
typename DataManipulator>
120 template <
typename Container >
122 typename Container::iterator & wDataIt1 )
const {
123 typedef typename Container::key_type key_type;
124 typedef typename Container::value_type value_type;
125 typedef typename Container::iterator iterator;
127 std::cout <<
"-------- Generic eraseDataId called " << std::endl;
136 template <
typename DataManipulator >
141 template <
typename Container,
typename DataId >
143 const DataId & expectedDataId,
144 typename Container::iterator & wDataIt1 )
const {
145 typedef typename Container::key_type key_type;
146 typedef typename Container::value_type value_type;
147 typedef typename Container::iterator iterator;
149 std::cout <<
"-------- Generic DisconnectProcessor called " << std::endl;
155 template <
typename DataManipulator>
160 template <
typename Container ,
typename TimeType ,
typename TagType >
162 typedef typename Container::key_type key_type;
163 typedef typename Container::value_type value_type;
164 typedef typename Container::iterator iterator;
Definition: CouplingPolicy.hxx:65
virtual void wakeupWaiting()
Definition: CouplingPolicy.hxx:170
virtual ~CouplingPolicy()
Definition: CouplingPolicy.hxx:172
bool isDataIdConveniant(Container &storedDatas, const typename Container::key_type &expectedDataId, bool &isEqual, bool &isBounded, typename Container::iterator &wDataIt1) const
Definition: CouplingPolicy.hxx:77
Definition: CouplingPolicy.hxx:98
void apply(typename iterator_t< Iterator >::value_type &data, const DataId &dataId, const Iterator &it1) const
Definition: CouplingPolicy.hxx:101
BoundedDataIdProcessor(const CouplingPolicy &couplingPolicy)
Definition: CouplingPolicy.hxx:99
Definition: CouplingPolicy.hxx:137
DisconnectProcessor(const CouplingPolicy &couplingPolicy)
Definition: CouplingPolicy.hxx:139
bool apply(Container &storedDatas, const DataId &expectedDataId, typename Container::iterator &wDataIt1) const
Definition: CouplingPolicy.hxx:142
Definition: CouplingPolicy.hxx:156
EraseDataIdBeforeOrAfterTagProcessor(CouplingPolicy couplingPolicy)
Definition: CouplingPolicy.hxx:158
void apply(Container &storedDatas, TimeType time, TagType tag, bool before) const
Definition: CouplingPolicy.hxx:161
Definition: CouplingPolicy.hxx:116
void apply(Container &storedDatas, typename Container::iterator &wDataIt1) const
Definition: CouplingPolicy.hxx:121
EraseDataIdProcessor(CouplingPolicy couplingPolicy)
Definition: CouplingPolicy.hxx:118
Definition: FindKeyPredicate.hxx:39
value_type1::second_type value_type
Definition: IteratorTraits.hxx:38
double TagType
Definition: testAdjacentPredicate.cxx:53
std::pair< TimeType, TagType > DataId
Definition: testAdjacentPredicate.cxx:54
int TimeType
Definition: testAdjacentPredicate.cxx:52