Back to index

salome-kernel  6.5.0
Public Types | Public Member Functions
GenericProvidesPort< DataManipulator, CouplingPolicy, ProvidesPort > Class Template Reference

#include <GenericProvidesPort.hxx>

Inheritance diagram for GenericProvidesPort< DataManipulator, CouplingPolicy, ProvidesPort >:
Inheritance graph
[legend]
Collaboration diagram for GenericProvidesPort< DataManipulator, CouplingPolicy, ProvidesPort >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef DataManipulator::Type DataType
typedef
DataManipulator::CorbaInType 
CorbaInDataType

Public Member Functions

virtual ~GenericProvidesPort ()
void put (CorbaInDataType data, TimeType time, TagType tag)
DataType get (TimeType time, TagType tag)
DataType get (TimeType &ti, TimeType tf, TagType tag=0)
DataType next (TimeType &t, TagType &tag)
void close (PortableServer::POA_var poa, PortableServer::ObjectId_var id)
void wakeupWaiting ()
void erase (TimeType time, TagType tag, bool before)
template<typename Container >
bool isDataIdConveniant (Container &storedDatas, const typename Container::key_type &expectedDataId, bool &isEqual, bool &isBounded, typename Container::iterator &wDataIt1) const

Detailed Description

template<typename DataManipulator, typename CouplingPolicy, typename ProvidesPort = provides_port>
class GenericProvidesPort< DataManipulator, CouplingPolicy, ProvidesPort >

Definition at line 35 of file GenericProvidesPort.hxx.


Member Typedef Documentation

template<typename DataManipulator , typename CouplingPolicy , typename ProvidesPort = provides_port>
typedef DataManipulator::CorbaInType GenericProvidesPort< DataManipulator, CouplingPolicy, ProvidesPort >::CorbaInDataType

Reimplemented from GenericPort< DataManipulator, CouplingPolicy >.

Definition at line 40 of file GenericProvidesPort.hxx.

template<typename DataManipulator , typename CouplingPolicy , typename ProvidesPort = provides_port>
typedef DataManipulator::Type GenericProvidesPort< DataManipulator, CouplingPolicy, ProvidesPort >::DataType

Reimplemented from GenericPort< DataManipulator, CouplingPolicy >.

Definition at line 39 of file GenericProvidesPort.hxx.


Constructor & Destructor Documentation

template<typename DataManipulator , typename CouplingPolicy , typename ProvidesPort = provides_port>
virtual GenericProvidesPort< DataManipulator, CouplingPolicy, ProvidesPort >::~GenericProvidesPort ( ) [inline, virtual]

Definition at line 42 of file GenericProvidesPort.hxx.

{};

Member Function Documentation

void GenericPort< DataManipulator, CouplingPolicy >::close ( PortableServer::POA_var  poa,
PortableServer::ObjectId_var  id 
) [inherited]
void GenericPort< DataManipulator, CouplingPolicy >::erase ( TimeType  time,
TagType  tag,
bool  before 
) [inherited]
DataType GenericPort< DataManipulator, CouplingPolicy >::get ( TimeType  time,
TagType  tag 
) [inherited]
DataType GenericPort< DataManipulator, CouplingPolicy >::get ( TimeType &  ti,
TimeType  tf,
TagType  tag = 0 
) [inherited]
template<typename Container >
bool CouplingPolicy::isDataIdConveniant ( Container &  storedDatas,
const typename Container::key_type &  expectedDataId,
bool isEqual,
bool isBounded,
typename Container::iterator &  wDataIt1 
) const [inline, inherited]

Definition at line 77 of file CouplingPolicy.hxx.

                                                                        {
    typedef typename Container::key_type   key_type;
    typedef typename Container::value_type value_type;
    typedef typename Container::iterator iterator;
    isBounded = false;
    FindKeyPredicate<value_type> fkp(expectedDataId);
    wDataIt1  = std::find_if(storedDatas.begin(),storedDatas.end(),fkp);
    isEqual   = (wDataIt1 != storedDatas.end());
    std::cout << "-------- Generic isDataIdConvenient : isEqual : " << isEqual << " , isBounded " << isBounded << std::endl;
    return isEqual || isBounded;
  }
DataType GenericPort< DataManipulator, CouplingPolicy >::next ( TimeType &  t,
TagType &  tag 
) [inherited]
void GenericPort< DataManipulator, CouplingPolicy >::put ( CorbaInDataType  data,
TimeType  time,
TagType  tag 
) [inherited]
void GenericPort< DataManipulator, CouplingPolicy >::wakeupWaiting ( ) [virtual, inherited]

Reimplemented from CouplingPolicy.


The documentation for this class was generated from the following file: