Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeSequenceOfReal Class Reference

#include <SALOMEDS_AttributeSequenceOfReal.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_AttributeSequenceOfReal (SALOMEDSImpl_AttributeSequenceOfReal *theAttr)
 SALOMEDS_AttributeSequenceOfReal (SALOMEDS::AttributeSequenceOfReal_ptr theAttr)
 ~SALOMEDS_AttributeSequenceOfReal ()
virtual void Assign (const std::vector< double > &other)
virtual std::vector< double > CorbaSequence ()
virtual void Add (double value)
virtual void Remove (int index)
virtual void ChangeValue (int index, double value)
virtual double 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_AttributeSequenceOfReal.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeSequenceOfReal::SALOMEDS_AttributeSequenceOfReal ( SALOMEDSImpl_AttributeSequenceOfReal *  theAttr)

Definition at line 31 of file SALOMEDS_AttributeSequenceOfReal.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeSequenceOfReal::SALOMEDS_AttributeSequenceOfReal ( SALOMEDS::AttributeSequenceOfReal_ptr  theAttr)

Definition at line 36 of file SALOMEDS_AttributeSequenceOfReal.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 40 of file SALOMEDS_AttributeSequenceOfReal.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_AttributeSequenceOfReal::Add ( double  value) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfReal.

Definition at line 78 of file SALOMEDS_AttributeSequenceOfReal.cxx.

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

Here is the call graph for this function:

void SALOMEDS_AttributeSequenceOfReal::Assign ( const std::vector< double > &  other) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfReal.

Definition at line 43 of file SALOMEDS_AttributeSequenceOfReal.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeSequenceOfReal.

Definition at line 98 of file SALOMEDS_AttributeSequenceOfReal.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_local_impl)->ChangeValue(index, value);
  }
  else SALOMEDS::AttributeSequenceOfReal::_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< double > SALOMEDS_AttributeSequenceOfReal::CorbaSequence ( ) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfReal.

Definition at line 59 of file SALOMEDS_AttributeSequenceOfReal.cxx.

{
  std::vector<double> aVector;
  int i, aLength;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    SALOMEDSImpl_AttributeSequenceOfReal* aSeqAttr = NULL;
    aSeqAttr = dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_local_impl);
    aLength = aSeqAttr->Length();
    for (i = 1; i <=aLength; i++) aVector.push_back(aSeqAttr->Value(i));
  }
  else {
    SALOMEDS::AttributeSequenceOfReal_var aSeqAttr = SALOMEDS::AttributeSequenceOfReal::_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_AttributeSequenceOfReal.

Definition at line 119 of file SALOMEDS_AttributeSequenceOfReal.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeSequenceOfReal.

Definition at line 88 of file SALOMEDS_AttributeSequenceOfReal.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_local_impl)->Remove(index);
  }
  else SALOMEDS::AttributeSequenceOfReal::_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.

double SALOMEDS_AttributeSequenceOfReal::Value ( int  index) [virtual]

Implements SALOMEDSClient_AttributeSequenceOfReal.

Definition at line 108 of file SALOMEDS_AttributeSequenceOfReal.cxx.

{
  double aValue;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aValue = dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_local_impl)->Value(index);
  }
  else aValue = SALOMEDS::AttributeSequenceOfReal::_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: