Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeSequenceOfInteger Class Reference

#include <SALOMEDS_AttributeSequenceOfInteger.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_AttributeSequenceOfInteger (SALOMEDSImpl_AttributeSequenceOfInteger *theAttr)
 SALOMEDS_AttributeSequenceOfInteger (SALOMEDS::AttributeSequenceOfInteger_ptr theAttr)
 ~SALOMEDS_AttributeSequenceOfInteger ()
virtual void Assign (const std::vector< int > &other)
virtual std::vector< int > CorbaSequence ()
virtual void Add (int value)
virtual void Remove (int index)
virtual void ChangeValue (int index, int value)
virtual int Value (int index)
virtual int Length ()
virtual void CheckLocked ()=0
virtual std::string Type ()=0
virtual std::string GetClassType ()=0
virtual _PTR (SObject) GetSObject()=0

Detailed Description

Definition at line 41 of file SALOMEDS_AttributeSequenceOfInteger.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeSequenceOfInteger::SALOMEDS_AttributeSequenceOfInteger ( SALOMEDSImpl_AttributeSequenceOfInteger *  theAttr)

Definition at line 31 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeSequenceOfInteger::SALOMEDS_AttributeSequenceOfInteger ( SALOMEDS::AttributeSequenceOfInteger_ptr  theAttr)

Definition at line 36 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 40 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{}

Member Function Documentation

virtual SALOMEDSClient_GenericAttribute::_PTR ( SObject  ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

Here is the caller graph for this function:

void SALOMEDS_AttributeSequenceOfInteger::Add ( int  value) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfInteger.

Definition at line 79 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeSequenceOfInteger*>(_local_impl)->Add(value);
  }
  else SALOMEDS::AttributeSequenceOfInteger::_narrow(_corba_impl)->Add(value);
}

Here is the call graph for this function:

void SALOMEDS_AttributeSequenceOfInteger::Assign ( const std::vector< int > &  other) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfInteger.

Definition at line 43 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{
  int i, aLength = other.size();
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeSequenceOfInteger*>(_local_impl)->Assign(other);
  }
  else {
    SALOMEDS::LongSeq_var aSeq = new SALOMEDS::LongSeq();
    aSeq->length(aLength);
    for (i = 0; i < aLength; i++) aSeq[i] = other[i];
    SALOMEDS::AttributeSequenceOfInteger::_narrow(_corba_impl)->Assign(aSeq);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeSequenceOfInteger::ChangeValue ( int  index,
int  value 
) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfInteger.

Definition at line 99 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeSequenceOfInteger*>(_local_impl)->ChangeValue(index, value);
  }
  else SALOMEDS::AttributeSequenceOfInteger::_narrow(_corba_impl)->ChangeValue(index, value);
}

Here is the call graph for this function:

virtual void SALOMEDSClient_GenericAttribute::CheckLocked ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

std::vector< int > SALOMEDS_AttributeSequenceOfInteger::CorbaSequence ( ) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfInteger.

Definition at line 59 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{
  std::vector<int> aVector;
  int i, aLength;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeSequenceOfInteger* aSeqAttr;
    aSeqAttr = dynamic_cast<SALOMEDSImpl_AttributeSequenceOfInteger*>(_local_impl);
    aLength = aSeqAttr->Length();
    for (i = 1; i <=aLength; i++) aVector.push_back(aSeqAttr->Value(i));
  }
  else {
    SALOMEDS::AttributeSequenceOfInteger_var aSeqAttr =
      SALOMEDS::AttributeSequenceOfInteger::_narrow(_corba_impl);
    aLength = aSeqAttr->Length();
    for (i = 1; i <=aLength; i++) aVector.push_back(aSeqAttr->Value(i));
  }
  return aVector;
}

Here is the call graph for this function:

virtual std::string SALOMEDSClient_GenericAttribute::GetClassType ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

Implements SALOMEDSClient_AttributeSequenceOfInteger.

Definition at line 120 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{
  int aValue;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aValue = dynamic_cast<SALOMEDSImpl_AttributeSequenceOfInteger*>(_local_impl)-> Length();
  }
  else aValue = SALOMEDS::AttributeSequenceOfInteger::_narrow(_corba_impl)-> Length();
  return aValue;
}

Here is the call graph for this function:

void SALOMEDS_AttributeSequenceOfInteger::Remove ( int  index) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfInteger.

Definition at line 89 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeSequenceOfInteger*>(_local_impl)->Remove(index);
  }
  else SALOMEDS::AttributeSequenceOfInteger::_narrow(_corba_impl)->Remove(index);
}

Here is the call graph for this function:

virtual std::string SALOMEDSClient_GenericAttribute::Type ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

int SALOMEDS_AttributeSequenceOfInteger::Value ( int  index) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfInteger.

Definition at line 109 of file SALOMEDS_AttributeSequenceOfInteger.cxx.

{
  int aValue;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aValue = dynamic_cast<SALOMEDSImpl_AttributeSequenceOfInteger*>(_local_impl)->Value(index);
  }
  else aValue = SALOMEDS::AttributeSequenceOfInteger::_narrow(_corba_impl)->Value(index);
  return aValue;
}

Here is the call graph for this function:


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