Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef GUI_WIDGETS_EDIT___PUBLISHER_SUBSCRIBER__HPP
2 #define GUI_WIDGETS_EDIT___PUBLISHER_SUBSCRIBER__HPP
75 operator T const&()
const
94 typename TSubscribersVector::iterator itToBeDetached;
96 if (pSubscriber != *itToBeDetached)
106 typename TSubscribersVector::iterator itSubscriber;
108 (*itSubscriber)->Update(
m_Value);
bool operator!=(T const &rhs) const
void Attach(ISubscriberT< T > *pSubscriber) const
void Detach(ISubscriberT< T > *pSubscriber) const
CPublisherT(CPublisherT< T > const &publisher)
TSubscribersVector m_Subscribers
CPublisherT< T > & operator=(T const &rhs)
bool operator==(T const &rhs) const
std::vector< ISubscriberT< T > * > TSubscribersVector
virtual void Update(const T &value)=0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const GenericPointer< typename T::ValueType > T2 value