• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

src/xpath/XPathOpRoot.cpp

00001 #include <spl/xml/xpath/private/XPathOpRoot.h>
00002 
00003 XPathOpRoot::XPathOpRoot()
00004 {
00005 }
00006 
00007 XPathOpRoot::XPathOpRoot(const XPathOpRoot& op)
00008 {
00009 }
00010 
00011 XPathOpRoot::~XPathOpRoot()
00012 {
00013 }
00014 
00015 XPathOpRoot& XPathOpRoot::operator =(const XPathOpRoot& oproot)
00016 {
00017         return *this;
00018 }
00019 
00020 bool XPathOpRoot::IsMatch(XmlNode& context)
00021 {
00022         return context.ParentNode().IsNull();
00023 }
00024 
00025 XmlNodeListPtr XPathOpRoot::NextContext(XmlNodePtr context)
00026 {
00027         ASSERT(IsMatch(context));
00028         XmlNodeListPtr nodes = XmlNodeListPtr(new XmlNodeList());
00029         nodes->Add(context);
00030         return nodes;
00031 }
00032 
00033 #if defined(DEBUG) || defined(_DEBUG)
00034 void XPathOpRoot::CheckMem() const
00035 {
00036         XPathOperator::CheckMem();
00037 }
00038 
00039 void XPathOpRoot::ValidateMem() const
00040 {
00041         XPathOperator::ValidateMem();
00042 }
00043 #endif