Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeTreeNode Class Reference

#include <SALOMEDS_AttributeTreeNode.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_AttributeTreeNode (SALOMEDSImpl_AttributeTreeNode *theAttr)
 SALOMEDS_AttributeTreeNode (SALOMEDS::AttributeTreeNode_ptr theAttr)
 ~SALOMEDS_AttributeTreeNode ()
virtual void SetFather (const _PTR(AttributeTreeNode)&value)
virtual bool HasFather ()
virtual _PTR (AttributeTreeNode) GetFather()
virtual void SetPrevious (const _PTR(AttributeTreeNode)&value)
virtual bool HasPrevious ()
virtual _PTR (AttributeTreeNode) GetPrevious()
virtual void SetNext (const _PTR(AttributeTreeNode)&value)
virtual bool HasNext ()
virtual _PTR (AttributeTreeNode) GetNext()
virtual void SetFirst (const _PTR(AttributeTreeNode)&value)
virtual bool HasFirst ()
virtual _PTR (AttributeTreeNode) GetFirst()
virtual void SetTreeID (const std::string &value)
virtual std::string GetTreeID ()
virtual void Append (const _PTR(AttributeTreeNode)&value)
virtual void Prepend (const _PTR(AttributeTreeNode)&value)
virtual void InsertBefore (const _PTR(AttributeTreeNode)&value)
virtual void InsertAfter (const _PTR(AttributeTreeNode)&value)
virtual void Remove ()
virtual int Depth ()
virtual bool IsRoot ()
virtual bool IsDescendant (const _PTR(AttributeTreeNode)&value)
virtual bool IsFather (const _PTR(AttributeTreeNode)&value)
virtual bool IsChild (const _PTR(AttributeTreeNode)&value)
virtual std::string Label ()
virtual _PTR (SObject) GetSObject()=0
virtual void CheckLocked ()=0
virtual std::string Type ()=0
virtual std::string GetClassType ()=0

Detailed Description

Definition at line 39 of file SALOMEDS_AttributeTreeNode.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTreeNode::SALOMEDS_AttributeTreeNode ( SALOMEDSImpl_AttributeTreeNode *  theAttr)

Definition at line 36 of file SALOMEDS_AttributeTreeNode.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeTreeNode::SALOMEDS_AttributeTreeNode ( SALOMEDS::AttributeTreeNode_ptr  theAttr)

Definition at line 40 of file SALOMEDS_AttributeTreeNode.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 44 of file SALOMEDS_AttributeTreeNode.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:

virtual SALOMEDS_AttributeTreeNode::_PTR ( AttributeTreeNode  ) [virtual]
virtual SALOMEDS_AttributeTreeNode::_PTR ( AttributeTreeNode  ) [virtual]
virtual SALOMEDS_AttributeTreeNode::_PTR ( AttributeTreeNode  ) [virtual]
virtual SALOMEDS_AttributeTreeNode::_PTR ( AttributeTreeNode  ) [virtual]
void SALOMEDS_AttributeTreeNode::Append ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 269 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *anOther;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    anOther = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->Append(anOther);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var anOther = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->Append(anOther);
  }
}

Here is the call graph for this function:

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

Implemented in Standard_EXPORT, and Standard_EXPORT.

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 351 of file SALOMEDS_AttributeTreeNode.cxx.

{
  int aDepth;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aDepth = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl)->Depth();
  }
  else aDepth =  SALOMEDS::AttributeTreeNode::_narrow(_corba_impl)->Depth();
  return aDepth;
}

Here is the call graph for this function:

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

Implemented in Standard_EXPORT, and Standard_EXPORT.

std::string SALOMEDS_AttributeTreeNode::GetTreeID ( ) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 253 of file SALOMEDS_AttributeTreeNode.cxx.

{
  std::string aGUID;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode* aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    aGUID = aNode->GetTreeID();
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    aGUID = aNode->GetTreeID();
  }

  return aGUID;
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 65 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode* aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    ret = aNode->HasFather();
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    ret = aNode->HasFather();
  }
  return ret;
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 209 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode* aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    ret = aNode->HasFirst();
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    ret = aNode->HasFirst();
  }
  return ret;
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 161 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode* aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    ret = aNode->HasNext();
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    ret = aNode->HasNext();
  }
  return ret;
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 113 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode* aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    ret = aNode->HasPrevious();
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    ret = aNode->HasPrevious();
  }
  return ret;
}

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::InsertAfter ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 323 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *anOther;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    anOther = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->InsertAfter(anOther);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var anOther = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->InsertAfter(anOther);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::InsertBefore ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 305 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *anOther;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    anOther = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->InsertBefore(anOther);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var anOther = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->InsertBefore(anOther);
  }
}

Here is the call graph for this function:

bool SALOMEDS_AttributeTreeNode::IsChild ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 411 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *anOther;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    anOther = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    ret = aNode->IsChild(anOther);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var anOther = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    ret = aNode->IsChild(anOther);
  }  
  return ret;  
}

Here is the call graph for this function:

bool SALOMEDS_AttributeTreeNode::IsDescendant ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 373 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *anOther;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    anOther = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    ret = aNode->IsDescendant(anOther);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var anOther = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    ret = aNode->IsDescendant(anOther);
  }  
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_AttributeTreeNode::IsFather ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 392 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *anOther;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    anOther = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    ret = aNode->IsFather(anOther);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var anOther = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    ret = aNode->IsFather(anOther);
  }  
  return ret;  
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 362 of file SALOMEDS_AttributeTreeNode.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl)->IsRoot();
  }
  else ret =  SALOMEDS::AttributeTreeNode::_narrow(_corba_impl)->IsRoot();
  return ret;
}

Here is the call graph for this function:

std::string SALOMEDS_AttributeTreeNode::Label ( ) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 430 of file SALOMEDS_AttributeTreeNode.cxx.

{
  std::string aLabel;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aLabel = _local_impl->Label().Entry();
  }
  else aLabel = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl)->Label();
  return aLabel;
}

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::Prepend ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 287 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *anOther;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    anOther = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->Prepend(anOther);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var anOther = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->Prepend(anOther);
  }
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 341 of file SALOMEDS_AttributeTreeNode.cxx.

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

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::SetFather ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 47 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *aFather;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    aFather = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->SetFather(aFather);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var aFather = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->SetFather(aFather);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::SetFirst ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 191 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *aFirst;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    aFirst = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->SetFirst(aFirst);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var aFirst = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->SetFirst(aFirst);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::SetNext ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 143 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode  *aNode, *aNext;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    aNext = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->SetNext(aNext);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var aNext = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->SetNext(aNext);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::SetPrevious ( const _PTR(AttributeTreeNode)&  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 95 of file SALOMEDS_AttributeTreeNode.cxx.

{
  SALOMEDS_AttributeTreeNode* aTN = dynamic_cast<SALOMEDS_AttributeTreeNode*>(value.get());
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode *aNode, *aPrev;
    aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    aPrev = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(aTN->_local_impl);
    aNode->SetPrevious(aPrev);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    SALOMEDS::AttributeTreeNode_var aPrev = SALOMEDS::AttributeTreeNode::_narrow(aTN->_corba_impl);
    aNode->SetPrevious(aPrev);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTreeNode::SetTreeID ( const std::string &  value) [virtual]

Implements SALOMEDSClient_AttributeTreeNode.

Definition at line 239 of file SALOMEDS_AttributeTreeNode.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTreeNode* aNode = dynamic_cast<SALOMEDSImpl_AttributeTreeNode*>(_local_impl);
    aNode->SetTreeID(value);
  }
  else {
    SALOMEDS::AttributeTreeNode_var aNode = SALOMEDS::AttributeTreeNode::_narrow(_corba_impl);
    aNode->SetTreeID(value.c_str());
  }
}

Here is the call graph for this function:

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

Implemented in Standard_EXPORT, and Standard_EXPORT.


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