ReactOS 0.4.15-dev-5667-ged97270
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

Definition at line 911 of file xmlstorage.h.

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:1376

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 }
void move(Children &other)
Definition: xmlstorage.h:929

Referenced by operator=(), and XMLStorage::XMLReaderBase::StartElementHandler().

◆ clear()

void XMLStorage::XMLNode::Children::clear ( )
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 }
static const WCHAR empty[]
Definition: main.c:47
Definition: dlist.c:348

Referenced by assign(), XMLStorage::XMLNode::clear(), and XMLStorage::XMLNode::operator=().

◆ 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 }

Referenced by XMLStorage::XMLNode::operator=().

◆ move()

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

Definition at line 929 of file xmlstorage.h.

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

Referenced by assign().

◆ operator=()

Children & XMLStorage::XMLNode::Children::operator= ( Children other)
inline

Definition at line 937 of file xmlstorage.h.

938 {
939 assign(other);
940 return *this;
941 }
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.

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 }
GLuint GLuint end
Definition: gl.h:1545
void erase(const XS_String &attr_name)
remove the attribute 'attr_name'
Definition: xmlstorage.h:1106
static clock_t begin
Definition: xmllint.c:458

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

◆ reset()

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

Definition at line 972 of file xmlstorage.h.

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

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