CMS 3D CMS Logo

Classes | Functions
DDName.h File Reference
#include <iosfwd>
#include <map>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  DDName
 DDName is used to identify DDD entities uniquely. More...
 
struct  DDNameInterface
 DDNameInterface provides a common interface to DDD entities. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const DDName &n)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDName n 
)

Definition at line 12 of file DDName.cc.

References DDName::name(), and DDName::ns().

Referenced by DDNameInterface::ddname().

13 {
14  os << n.ns() << ':' << n.name();
15  return os;
16 }
const std::string & ns() const
Returns the namespace.
Definition: DDName.cc:102
const std::string & name() const
Returns the name.
Definition: DDName.cc:88