COPASI API  4.16.103
Functions
CRDFTriplet.cpp File Reference
#include "copasi.h"
#include "CRDFGraph.h"
#include "CRDFSubject.h"
Include dependency graph for CRDFTriplet.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CRDFTriplet &triplet)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CRDFTriplet triplet 
)

Definition at line 56 of file CRDFTriplet.cpp.

References CRDFNode::getObject(), CRDFNode::getSubject(), CRDFPredicate::getURI(), CRDFTriplet::pObject, CRDFTriplet::Predicate, and CRDFTriplet::pSubject.

57 {
58  if (triplet)
59  {
60  os << triplet.pSubject->getSubject() << ", ";
61  os << triplet.Predicate.getURI() << ", ";
62  os << triplet.pObject->getObject() << std::endl;
63  }
64  else
65  os << "Invalid Triplet" << std::endl;
66 
67  return os;
68 }
CRDFNode * pSubject
Definition: CRDFTriplet.h:38
const CRDFSubject & getSubject() const
Definition: CRDFNode.cpp:69
CRDFObject & getObject()
Definition: CRDFNode.cpp:94
CRDFPredicate Predicate
Definition: CRDFTriplet.h:40
const std::string & getURI() const
CRDFNode * pObject
Definition: CRDFTriplet.h:42