Back to index

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

#include <SALOMEDS_UseCaseIterator.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_UseCaseIterator (const SALOMEDSImpl_UseCaseIterator &theIterator)
 SALOMEDS_UseCaseIterator (SALOMEDS::UseCaseIterator_ptr theIterator)
 ~SALOMEDS_UseCaseIterator ()
virtual void Init (bool theAllLevels)
virtual bool More ()
virtual void Next ()
virtual _PTR (SObject) Value()

Private Attributes

bool _isLocal
SALOMEDSImpl_UseCaseIterator * _local_impl
SALOMEDS::UseCaseIterator_var _corba_impl

Detailed Description

Definition at line 38 of file SALOMEDS_UseCaseIterator.hxx.


Constructor & Destructor Documentation

SALOMEDS_UseCaseIterator::SALOMEDS_UseCaseIterator ( const SALOMEDSImpl_UseCaseIterator &  theIterator)

Definition at line 32 of file SALOMEDS_UseCaseIterator.cxx.

{
  _isLocal = true;
  _local_impl = theIterator.GetPersistentCopy();
  _corba_impl = SALOMEDS::UseCaseIterator::_nil();
}
SALOMEDS_UseCaseIterator::SALOMEDS_UseCaseIterator ( SALOMEDS::UseCaseIterator_ptr  theIterator)

Definition at line 39 of file SALOMEDS_UseCaseIterator.cxx.

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

Definition at line 45 of file SALOMEDS_UseCaseIterator.cxx.

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

Member Function Documentation

virtual SALOMEDS_UseCaseIterator::_PTR ( SObject  ) [virtual]
void SALOMEDS_UseCaseIterator::Init ( bool  theAllLevels) [virtual]

Implements SALOMEDSClient_UseCaseIterator.

Definition at line 51 of file SALOMEDS_UseCaseIterator.cxx.

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

Here is the call graph for this function:

Implements SALOMEDSClient_UseCaseIterator.

Definition at line 60 of file SALOMEDS_UseCaseIterator.cxx.

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

Here is the call graph for this function:

void SALOMEDS_UseCaseIterator::Next ( ) [virtual]

Implements SALOMEDSClient_UseCaseIterator.

Definition at line 71 of file SALOMEDS_UseCaseIterator.cxx.

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

Here is the call graph for this function:


Member Data Documentation

SALOMEDS::UseCaseIterator_var SALOMEDS_UseCaseIterator::_corba_impl [private]

Definition at line 43 of file SALOMEDS_UseCaseIterator.hxx.

Definition at line 41 of file SALOMEDS_UseCaseIterator.hxx.

SALOMEDSImpl_UseCaseIterator* SALOMEDS_UseCaseIterator::_local_impl [private]

Definition at line 42 of file SALOMEDS_UseCaseIterator.hxx.


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