Back to index

salome-kernel  6.5.0
Public Types | Public Member Functions | Protected Attributes | Private Types | Friends
palm_data_short_port_provides Class Reference

#include <palm_data_short_port_provides.hxx>

Inheritance diagram for palm_data_short_port_provides:
Inheritance graph
[legend]
Collaboration diagram for palm_data_short_port_provides:
Collaboration graph
[legend]

List of all members.

Public Types

typedef atom_manipulation
< CORBA::Short >::Type 
DataType
typedef atom_manipulation
< CORBA::Short >::CorbaInType 
CorbaInDataType
typedef CORBA::Long TimeType
typedef CORBA::Long TagType
typedef
InternalDataIdContainer
< TimeType, TagType
DataIdContainer

Public Member Functions

 palm_data_short_port_provides ()
virtual ~palm_data_short_port_provides ()
void put (DataManipulator::CorbaInType data, CORBA::Long time, CORBA::Long tag)
virtual Ports::Port_ptr get_port_ref ()
 This method permits to get the CORBA reference of the port.
virtual void provides_port_changed (int connection_nbr, const Engines::DSC::Message message)
 This method is the callback called by the component to inform the provides port of a new or a removed connection.
virtual Ports::PortProperties_ptr get_port_properties ()
 This is used to get the property object of the port.
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)
filtre_conversionget_filtre_convert_TIME ()
filtre_conversionget_filtre_convert_TAG ()
TimeType getTime (const DataId &dataId) const
TagType getTag (const DataId &dataId) const
template<typename Container >
bool isDataIdConveniant (Container &storedDatas, const typename Container::key_type &expectedDataId, bool &isEqual, bool &isBounded, typename Container::iterator &wDataIt1) const

Protected Attributes

PortProperties_idefault_properties

Private Types

typedef CORBA::Short CorbaDataType
typedef atom_manipulation
< CorbaDataType
DataManipulator
typedef GenericPort
< DataManipulator,
PalmCouplingPolicy
Port

Friends

class InternalDataIdContainer

Detailed Description

Definition at line 35 of file palm_data_short_port_provides.hxx.


Member Typedef Documentation

typedef CORBA::Short palm_data_short_port_provides::CorbaDataType [private]

Definition at line 41 of file palm_data_short_port_provides.hxx.

typedef atom_manipulation< CORBA::Short > ::CorbaInType GenericPort< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::CorbaInDataType [inherited]

Definition at line 66 of file GenericPort.hxx.

Definition at line 62 of file PalmCouplingPolicy.hxx.

Definition at line 42 of file palm_data_short_port_provides.hxx.

typedef atom_manipulation< CORBA::Short > ::Type GenericPort< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::DataType [inherited]

Definition at line 65 of file GenericPort.hxx.

Definition at line 43 of file palm_data_short_port_provides.hxx.

typedef CORBA::Long PalmCouplingPolicy::TagType [inherited]

Definition at line 60 of file PalmCouplingPolicy.hxx.

typedef CORBA::Long PalmCouplingPolicy::TimeType [inherited]

Definition at line 59 of file PalmCouplingPolicy.hxx.


Constructor & Destructor Documentation

Definition at line 46 of file palm_data_short_port_provides.hxx.

{}

Definition at line 47 of file palm_data_short_port_provides.hxx.

{}

Member Function Documentation

void GenericPort< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::close ( PortableServer::POA_var  poa,
PortableServer::ObjectId_var  id 
) [inherited]
void GenericPort< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::erase ( TimeType  time,
TagType  tag,
bool  before 
) [inherited]
DataType GenericPort< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::get ( TimeType  time,
TagType  tag 
) [inherited]
DataType GenericPort< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::get ( TimeType ti,
TimeType  tf,
TagType  tag = 0 
) [inherited]

Definition at line 54 of file PalmCouplingPolicy.hxx.

{ return &filtre_convert_TAG;  }

Here is the caller graph for this function:

Definition at line 53 of file PalmCouplingPolicy.hxx.

{ return &filtre_convert_TIME; }

Here is the caller graph for this function:

Ports::PortProperties_ptr base_port::get_port_properties ( ) [virtual, inherited]

This is used to get the property object of the port.

Returns:
property's CORBA reference.

Definition at line 42 of file base_port.cxx.

{
  return default_properties->_this();
}
virtual Ports::Port_ptr palm_data_short_port_provides::get_port_ref ( ) [inline, virtual]

This method permits to get the CORBA reference of the port.

Returns:
port's CORBA reference.

Implements provides_port.

Definition at line 53 of file palm_data_short_port_provides.hxx.

                                       {
    return _this();
  }
TagType PalmCouplingPolicy::getTag ( const DataId dataId) const [inline, inherited]

Definition at line 65 of file PalmCouplingPolicy.hxx.

{ return dataId.second;}
TimeType PalmCouplingPolicy::getTime ( const DataId dataId) const [inline, inherited]

Definition at line 64 of file PalmCouplingPolicy.hxx.

{ return dataId.first;}
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< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::next ( TimeType t,
TagType tag 
) [inherited]
virtual void provides_port::provides_port_changed ( int  connection_nbr,
const Engines::DSC::Message  message 
) [inline, virtual, inherited]

This method is the callback called by the component to inform the provides port of a new or a removed connection.

Parameters:
connection_nbrcurrent connection number.
messagemessage associated with this connection.

Definition at line 60 of file provides_port.hxx.

                                                                        {}
void palm_data_short_port_provides::put ( DataManipulator::CorbaInType  data,
CORBA::Long  time,
CORBA::Long  tag 
) [inline]

Reimplemented from GenericPort< atom_manipulation< CORBA::Short >, PalmCouplingPolicy >.

Definition at line 49 of file palm_data_short_port_provides.hxx.

                                                                           {
    Port::put(data, time, tag);
  }

Here is the call graph for this function:

void GenericPort< atom_manipulation< CORBA::Short > , PalmCouplingPolicy >::wakeupWaiting ( ) [virtual, inherited]

Reimplemented from CouplingPolicy.


Friends And Related Function Documentation

friend class InternalDataIdContainer [friend, inherited]

Definition at line 50 of file PalmCouplingPolicy.hxx.


Member Data Documentation

Definition at line 49 of file base_port.hxx.


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