Back to index

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

#include <SALOMEDS_ChildIterator.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_ChildIterator (const SALOMEDSImpl_ChildIterator &theIterator)
 SALOMEDS_ChildIterator (SALOMEDS::ChildIterator_ptr theIterator)
 ~SALOMEDS_ChildIterator ()
virtual void Init ()
virtual void InitEx (bool theAllLevels)
virtual bool More ()
virtual void Next ()
virtual _PTR (SObject) Value()

Private Attributes

bool _isLocal
SALOMEDSImpl_ChildIterator * _local_impl
SALOMEDS::ChildIterator_var _corba_impl

Detailed Description

Definition at line 37 of file SALOMEDS_ChildIterator.hxx.


Constructor & Destructor Documentation

SALOMEDS_ChildIterator::SALOMEDS_ChildIterator ( const SALOMEDSImpl_ChildIterator &  theIterator)

Definition at line 31 of file SALOMEDS_ChildIterator.cxx.

{
  SALOMEDS::Locker lock;

  _isLocal = true;
  _local_impl = theIterator.GetPersistentCopy();
  _corba_impl = SALOMEDS::ChildIterator::_nil();
}

Here is the call graph for this function:

SALOMEDS_ChildIterator::SALOMEDS_ChildIterator ( SALOMEDS::ChildIterator_ptr  theIterator)

Definition at line 40 of file SALOMEDS_ChildIterator.cxx.

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

Definition at line 46 of file SALOMEDS_ChildIterator.cxx.

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

Member Function Documentation

virtual SALOMEDS_ChildIterator::_PTR ( SObject  ) [virtual]
void SALOMEDS_ChildIterator::Init ( ) [virtual]

Implements SALOMEDSClient_ChildIterator.

Definition at line 52 of file SALOMEDS_ChildIterator.cxx.

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

Here is the call graph for this function:

void SALOMEDS_ChildIterator::InitEx ( bool  theAllLevels) [virtual]

Implements SALOMEDSClient_ChildIterator.

Definition at line 61 of file SALOMEDS_ChildIterator.cxx.

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

Here is the call graph for this function:

Implements SALOMEDSClient_ChildIterator.

Definition at line 70 of file SALOMEDS_ChildIterator.cxx.

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

Here is the call graph for this function:

void SALOMEDS_ChildIterator::Next ( ) [virtual]

Implements SALOMEDSClient_ChildIterator.

Definition at line 81 of file SALOMEDS_ChildIterator.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::ChildIterator_var SALOMEDS_ChildIterator::_corba_impl [private]

Definition at line 42 of file SALOMEDS_ChildIterator.hxx.

Definition at line 40 of file SALOMEDS_ChildIterator.hxx.

SALOMEDSImpl_ChildIterator* SALOMEDS_ChildIterator::_local_impl [private]

Definition at line 41 of file SALOMEDS_ChildIterator.hxx.


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