ReactOS  0.4.12-dev-51-ge94618b
XMLStorage::XMLNode::Children Struct Reference

internal children node list More...

#include <xmlstorage.h>

Inheritance diagram for XMLStorage::XMLNode::Children:
Collaboration diagram for XMLStorage::XMLNode::Children:

Public Types

typedef std::list< XMLNode * > super
 

Public Member Functions

 Children ()
 
 Children (Children &other)
 
void assign (Children &other)
 
void move (Children &other)
 
Childrenoperator= (Children &other)
 
void copy (const Children &other)
 
void clear ()
 
bool remove (XMLNode *node)
 

Private Member Functions

void reset ()
 

Detailed Description

internal children node list

Definition at line 909 of file xmlstorage.h.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ Children() [1/2]

XMLStorage::XMLNode::Children::Children ( )
inline

Definition at line 913 of file xmlstorage.h.

914  {
915  }

◆ Children() [2/2]

XMLStorage::XMLNode::Children::Children ( Children other)
inline

Definition at line 917 of file xmlstorage.h.

918  {
919  for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
920  push_back(*it);
921  }
int other
Definition: msacm.c:1364

Member Function Documentation

◆ assign()

void XMLStorage::XMLNode::Children::assign ( Children other)
inline

Definition at line 923 of file xmlstorage.h.

924  {
925  clear();
926  move(other);
927  }
int other
Definition: msacm.c:1364
void move(Children &other)
Definition: xmlstorage.h:929

◆ clear()

void XMLStorage::XMLNode::Children::clear ( void  )
inline

Definition at line 949 of file xmlstorage.h.

950  {
951  while(!empty()) {
952  XMLNode* node = back();
953  pop_back();
954 
955  node->clear();
956  delete node;
957  }
958  }
XMLNode(const XS_String &name)
Definition: xmlstorage.h:984
Definition: graphics.c:170
static const WCHAR empty[]
Definition: task.c:29
struct node node

◆ copy()

void XMLStorage::XMLNode::Children::copy ( const Children other)
inline

Definition at line 943 of file xmlstorage.h.

944  {
945  for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
946  push_back(new XMLNode(**it));
947  }
XMLNode(const XS_String &name)
Definition: xmlstorage.h:984
int other
Definition: msacm.c:1364

◆ move()

void XMLStorage::XMLNode::Children::move ( Children other)
inline

Definition at line 929 of file xmlstorage.h.

Referenced by XMLStorage::XMLNode::filter().

930  {
931  for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
932  push_back(*it);
933 
934  other.reset();
935  }
int other
Definition: msacm.c:1364

◆ operator=()

Definition at line 937 of file xmlstorage.h.

938  {
939  assign(other);
940  return *this;
941  }
int other
Definition: msacm.c:1364
void assign(Children &other)
Definition: xmlstorage.h:923

◆ remove()

bool XMLStorage::XMLNode::Children::remove ( XMLNode node)
inline

Definition at line 960 of file xmlstorage.h.

Referenced by XMLStorage::XMLPos::delete_this().

961  {
962  for(iterator it=begin(); it!=end(); ++it)
963  if (*it == node) {
964  erase(it);
965  return true;
966  }
967 
968  return false;
969  }
Definition: graphics.c:170
GLuint GLuint end
Definition: gl.h:1545
void erase(const XS_String &attr_name)
remove the attribute &#39;attr_name&#39;
Definition: xmlstorage.h:1106
static clock_t begin
Definition: xmllint.c:466

◆ reset()

void XMLStorage::XMLNode::Children::reset ( void  )
inlineprivate

Definition at line 972 of file xmlstorage.h.

Referenced by move().

973  {
974  super::clear();
975  }

The documentation for this struct was generated from the following file: