Back to index

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

#include <DF_Label.hxx>

Collaboration diagram for DF_LabelNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DF_LabelNode ()
 ~DF_LabelNode ()
void Reset ()

Private Attributes

int _tag
int _depth
DF_LabelNode_father
DF_LabelNode_previous
DF_LabelNode_next
DF_LabelNode_firstChild
DF_LabelNode_lastChild
DF_Document_document
std::map< std::string,
DF_Attribute * > 
_attributes

Friends

class DF_Document
class DF_Label
class DF_ChildIterator
class DF_Attribute

Detailed Description

Definition at line 33 of file DF_Label.hxx.


Constructor & Destructor Documentation

Definition at line 450 of file DF_Label.cxx.

{
  _depth = 0;
  _tag = 0;
  _attributes.clear();
  _document = NULL;
  _father = NULL;
  _firstChild = NULL;
  _lastChild = NULL;
  _previous = NULL;
  _next = NULL;
}

Definition at line 463 of file DF_Label.cxx.

{
  std::vector<DF_Attribute*> va;
  typedef std::map<std::string, DF_Attribute*>::const_iterator AI;
  for(AI p = _attributes.begin(); p!=_attributes.end(); p++)
    va.push_back(p->second);

  for(int i = 0, len = va.size(); i<len; i++) 
    delete va[i];

  _attributes.clear();
}

Member Function Documentation

Definition at line 477 of file DF_Label.cxx.

{
  _depth = 0;
  _tag = 0;

  std::vector<DF_Attribute*> va;
  typedef std::map<std::string, DF_Attribute*>::const_iterator AI;
  for(AI p = _attributes.begin(); p!=_attributes.end(); p++)
    va.push_back(p->second);

  for(int i = 0, len = va.size(); i<len; i++) 
    delete va[i];

  _attributes.clear();
  _document = NULL;
  _father = NULL;
  _firstChild = NULL;
  _lastChild = NULL;
  _previous = NULL;
  _next = NULL;  
}

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class DF_Attribute [friend]

Definition at line 53 of file DF_Label.hxx.

friend class DF_ChildIterator [friend]

Definition at line 52 of file DF_Label.hxx.

friend class DF_Document [friend]

Definition at line 50 of file DF_Label.hxx.

friend class DF_Label [friend]

Definition at line 51 of file DF_Label.hxx.


Member Data Documentation

std::map< std::string, DF_Attribute* > DF_LabelNode::_attributes [private]

Definition at line 48 of file DF_Label.hxx.

int DF_LabelNode::_depth [private]

Definition at line 41 of file DF_Label.hxx.

Definition at line 47 of file DF_Label.hxx.

Definition at line 42 of file DF_Label.hxx.

Definition at line 45 of file DF_Label.hxx.

Definition at line 46 of file DF_Label.hxx.

Definition at line 44 of file DF_Label.hxx.

Definition at line 43 of file DF_Label.hxx.

int DF_LabelNode::_tag [private]

Definition at line 40 of file DF_Label.hxx.


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