Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
prstring Class Reference
Collaboration diagram for prstring:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 prstring (void)
 prstring (const char *)
 prstring (const prstring &)
void operator= (const char *)
void operator= (const std::string &)
void operator= (const prstring &)
void operator+= (const char *)
void operator+= (const std::string &)
std::string operator+ (const char *) const
std::string operator+ (const std::string &) const
 operator std::string (void) const
std::string str (void) const
bool empty () const

Private Attributes

Glib::Mutex lock_
std::string val_

Detailed Description

Definition at line 15 of file environment.cpp.


Constructor & Destructor Documentation

prstring::prstring ( void  )

Definition at line 38 of file environment.cpp.

                       {
}
prstring::prstring ( const char *  val)

Definition at line 41 of file environment.cpp.

                                 :val_(val) {
}
prstring::prstring ( const prstring val)

Definition at line 44 of file environment.cpp.

                                     :val_(val.str()) {
}

Member Function Documentation

bool prstring::empty ( ) const

Definition at line 94 of file environment.cpp.

                           {
  const_cast<Glib::Mutex&>(lock_).lock();
  bool r = val_.empty();
  const_cast<Glib::Mutex&>(lock_).unlock();
  return r;
}

Here is the caller graph for this function:

prstring::operator std::string ( void  ) const

Definition at line 87 of file environment.cpp.

                                       {
  const_cast<Glib::Mutex&>(lock_).lock();
  std::string r = val_;
  const_cast<Glib::Mutex&>(lock_).unlock();
  return r;
}
std::string prstring::operator+ ( const char *  val) const

Definition at line 73 of file environment.cpp.

                                                   {
  const_cast<Glib::Mutex&>(lock_).lock();
  std::string r = val_ + val;
  const_cast<Glib::Mutex&>(lock_).unlock();
  return r;
}
std::string prstring::operator+ ( const std::string &  val) const

Definition at line 80 of file environment.cpp.

                                                        {
  const_cast<Glib::Mutex&>(lock_).lock();
  std::string r = val_ + val;
  const_cast<Glib::Mutex&>(lock_).unlock();
  return r;
}
void prstring::operator+= ( const char *  val)

Definition at line 63 of file environment.cpp.

                                         {
  Glib::Mutex::Lock lock(lock_);
  val_+=val;
}
void prstring::operator+= ( const std::string &  val)

Definition at line 68 of file environment.cpp.

                                              {
  Glib::Mutex::Lock lock(lock_);
  val_+=val;
}
void prstring::operator= ( const char *  val)

Definition at line 47 of file environment.cpp.

                                        {
  Glib::Mutex::Lock lock(lock_);
  val_=val;
}
void prstring::operator= ( const std::string &  val)

Definition at line 52 of file environment.cpp.

                                             {
  Glib::Mutex::Lock lock(lock_);
  val_=val;
}
void prstring::operator= ( const prstring val)

Definition at line 57 of file environment.cpp.

                                            {
  if(&val == this) return;
  Glib::Mutex::Lock lock(lock_);
  val_=val.str();
}

Here is the call graph for this function:

std::string prstring::str ( void  ) const

Definition at line 101 of file environment.cpp.

                                  {
  return operator std::string();
}

Here is the caller graph for this function:


Member Data Documentation

Glib::Mutex prstring::lock_ [private]

Definition at line 17 of file environment.cpp.

std::string prstring::val_ [private]

Definition at line 18 of file environment.cpp.


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