Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Protected Attributes
Arc::DItemString Class Reference

#include <DBranch.h>

Inheritance diagram for Arc::DItemString:
Inheritance graph
[legend]
Collaboration diagram for Arc::DItemString:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DItemString (void)
 DItemString (const std::string &)
 DItemString (const char *)
virtual ~DItemString (void)
virtual DItemNew (void) const
virtual std::string str () const
virtual bool operator== (const DItem &)
virtual bool operator< (const DItem &)
virtual bool operator> (const DItem &)
virtual bool operator<= (const DItem &)
virtual bool operator>= (const DItem &)
virtual operator bool (void)
virtual bool operator! (void)
virtual DItemStringoperator= (const DItem &)
virtual DItemStringoperator= (const std::string &)

Protected Attributes

std::string value_

Detailed Description

Definition at line 68 of file DBranch.h.


Constructor & Destructor Documentation

Here is the caller graph for this function:

Arc::DItemString::DItemString ( const std::string &  s)

Definition at line 80 of file DBranch.cpp.

    : value_(s) {}
Arc::DItemString::DItemString ( const char *  s)

Definition at line 83 of file DBranch.cpp.

    : value_(s) {}
Arc::DItemString::~DItemString ( void  ) [virtual]

Definition at line 90 of file DBranch.cpp.

{}

Member Function Documentation

DItem * Arc::DItemString::New ( void  ) const [virtual]

Reimplemented from Arc::DItem.

Definition at line 86 of file DBranch.cpp.

                                    {
    return new DItemString(value_);
  }

Here is the call graph for this function:

Arc::DItemString::operator bool ( void  ) [virtual]

Reimplemented from Arc::DItem.

Definition at line 131 of file DBranch.cpp.

                                 {
    return !value_.empty();
  }
bool Arc::DItemString::operator! ( void  ) [virtual]

Reimplemented from Arc::DItem.

Definition at line 135 of file DBranch.cpp.

                                  {
    return value_.empty();
  }
bool Arc::DItemString::operator< ( const DItem item) [virtual]

Reimplemented from Arc::DItem.

Definition at line 103 of file DBranch.cpp.

                                               {
    const DItemString *sitem = dynamic_cast<const DItemString*>(&item);
    if (sitem)
      return (value_ < sitem->value_);
    return (value_ < item.str());
  }

Here is the call graph for this function:

bool Arc::DItemString::operator<= ( const DItem item) [virtual]

Reimplemented from Arc::DItem.

Definition at line 117 of file DBranch.cpp.

                                                {
    const DItemString *sitem = dynamic_cast<const DItemString*>(&item);
    if (sitem)
      return (value_ <= sitem->value_);
    return (value_ <= item.str());
  }

Here is the call graph for this function:

DItemString & Arc::DItemString::operator= ( const DItem item) [virtual]

Reimplemented from Arc::DItem.

Definition at line 139 of file DBranch.cpp.

                                                       {
    const DItemString *sitem = dynamic_cast<const DItemString*>(&item);
    if (sitem)
      value_ = sitem->value_;
    else
      value_ = item.str();
    return *this;
  }

Here is the call graph for this function:

DItemString & Arc::DItemString::operator= ( const std::string &  s) [virtual]

Reimplemented from Arc::DItem.

Definition at line 148 of file DBranch.cpp.

                                                        {
    value_ = s;
    return *this;
  }
bool Arc::DItemString::operator== ( const DItem item) [virtual]

Reimplemented from Arc::DItem.

Definition at line 96 of file DBranch.cpp.

                                                {
    const DItemString *sitem = dynamic_cast<const DItemString*>(&item);
    if (sitem)
      return (value_ == sitem->value_);
    return (value_ == item.str());
  }

Here is the call graph for this function:

bool Arc::DItemString::operator> ( const DItem item) [virtual]

Reimplemented from Arc::DItem.

Definition at line 110 of file DBranch.cpp.

                                               {
    const DItemString *sitem = dynamic_cast<const DItemString*>(&item);
    if (sitem)
      return (value_ < sitem->value_);
    return (value_ < item.str());
  }

Here is the call graph for this function:

bool Arc::DItemString::operator>= ( const DItem item) [virtual]

Reimplemented from Arc::DItem.

Definition at line 124 of file DBranch.cpp.

                                                {
    const DItemString *sitem = dynamic_cast<const DItemString*>(&item);
    if (sitem)
      return (value_ >= sitem->value_);
    return (value_ >= item.str());
  }

Here is the call graph for this function:

std::string Arc::DItemString::str ( ) const [virtual]

Reimplemented from Arc::DItem.

Definition at line 92 of file DBranch.cpp.

                                   {
    return value_;
  }

Member Data Documentation

std::string Arc::DItemString::value_ [protected]

Definition at line 71 of file DBranch.h.


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