Back to index

salome-kernel  6.5.0
Public Member Functions | Private Attributes
SALOMEDS_SComponentIterator Class Reference

#include <SALOMEDS_SComponentIterator.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_SComponentIterator (const SALOMEDSImpl_SComponentIterator &theIterator)
 SALOMEDS_SComponentIterator (SALOMEDS::SComponentIterator_ptr theIterator)
 ~SALOMEDS_SComponentIterator ()
virtual void Init ()
virtual bool More ()
virtual void Next ()
virtual _PTR (SComponent) Value()

Private Attributes

bool _isLocal
SALOMEDSImpl_SComponentIterator * _local_impl
SALOMEDS::SComponentIterator_var _corba_impl

Detailed Description

Definition at line 37 of file SALOMEDS_SComponentIterator.hxx.


Constructor & Destructor Documentation

SALOMEDS_SComponentIterator::SALOMEDS_SComponentIterator ( const SALOMEDSImpl_SComponentIterator &  theIterator)

Definition at line 33 of file SALOMEDS_SComponentIterator.cxx.

:_local_impl(theIterator.GetPersistentCopy())
{
  _isLocal = true;
  _corba_impl = SALOMEDS::SComponentIterator::_nil();
}
SALOMEDS_SComponentIterator::SALOMEDS_SComponentIterator ( SALOMEDS::SComponentIterator_ptr  theIterator)

Definition at line 40 of file SALOMEDS_SComponentIterator.cxx.

{
  _isLocal = false;
  _corba_impl = SALOMEDS::SComponentIterator::_duplicate(theIterator);
}

Definition at line 46 of file SALOMEDS_SComponentIterator.cxx.

{
  if(!_isLocal) _corba_impl->UnRegister(); 
  else if(_local_impl) delete _local_impl;
}

Member Function Documentation

virtual SALOMEDS_SComponentIterator::_PTR ( SComponent  ) [virtual]

Implements SALOMEDSClient_SComponentIterator.

Definition at line 52 of file SALOMEDS_SComponentIterator.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    _local_impl->Init();
  }
  else _corba_impl->Init();
}

Here is the call graph for this function:

Implements SALOMEDSClient_SComponentIterator.

Definition at line 61 of file SALOMEDS_SComponentIterator.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    ret = _local_impl->More();
  }
  else ret = _corba_impl->More();
  return ret;
}

Here is the call graph for this function:

Implements SALOMEDSClient_SComponentIterator.

Definition at line 72 of file SALOMEDS_SComponentIterator.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    _local_impl->Next();
  }
  else _corba_impl->Next();
}

Here is the call graph for this function:


Member Data Documentation

SALOMEDS::SComponentIterator_var SALOMEDS_SComponentIterator::_corba_impl [private]

Definition at line 47 of file SALOMEDS_SComponentIterator.hxx.

Definition at line 45 of file SALOMEDS_SComponentIterator.hxx.

SALOMEDSImpl_SComponentIterator* SALOMEDS_SComponentIterator::_local_impl [private]

Definition at line 46 of file SALOMEDS_SComponentIterator.hxx.


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