COPASI API  4.16.103
Public Member Functions | Public Attributes | List of all members
CRDFTriplet Class Reference

#include <CRDFTriplet.h>

Collaboration diagram for CRDFTriplet:
Collaboration graph
[legend]

Public Member Functions

 CRDFTriplet (CRDFNode *pSubject=NULL, const CRDFPredicate &predicate=CRDFPredicate::end, CRDFNode *pObject=NULL)
 
 operator bool () const
 
bool operator< (const CRDFTriplet &rhs) const
 
bool operator== (const CRDFTriplet &rhs) const
 
 ~CRDFTriplet ()
 

Public Attributes

CRDFNodepObject
 
CRDFPredicate Predicate
 
CRDFNodepSubject
 

Detailed Description

Definition at line 21 of file CRDFTriplet.h.

Constructor & Destructor Documentation

CRDFTriplet::CRDFTriplet ( CRDFNode pSubject = NULL,
const CRDFPredicate predicate = CRDFPredicate::end,
CRDFNode pObject = NULL 
)

Definition at line 24 of file CRDFTriplet.cpp.

26  :
27  pSubject(pSubject),
28  Predicate(predicate),
29  pObject(pObject)
30 {}
CRDFNode * pSubject
Definition: CRDFTriplet.h:38
CRDFPredicate Predicate
Definition: CRDFTriplet.h:40
CRDFNode * pObject
Definition: CRDFTriplet.h:42
CRDFTriplet::~CRDFTriplet ( )

Definition at line 32 of file CRDFTriplet.cpp.

33 {}

Member Function Documentation

CRDFTriplet::operator bool ( ) const

Definition at line 35 of file CRDFTriplet.cpp.

36 {return (pSubject != NULL && pObject != NULL);}
CRDFNode * pSubject
Definition: CRDFTriplet.h:38
CRDFNode * pObject
Definition: CRDFTriplet.h:42
bool CRDFTriplet::operator< ( const CRDFTriplet rhs) const

Definition at line 45 of file CRDFTriplet.cpp.

References pObject, Predicate, and pSubject.

46 {
47  if (Predicate != rhs.Predicate)
48  return Predicate < rhs.Predicate;
49 
50  if (pSubject != rhs.pSubject)
51  return pSubject < rhs.pSubject;
52 
53  return pObject < rhs.pObject;
54 }
CRDFNode * pSubject
Definition: CRDFTriplet.h:38
CRDFPredicate Predicate
Definition: CRDFTriplet.h:40
CRDFNode * pObject
Definition: CRDFTriplet.h:42
bool CRDFTriplet::operator== ( const CRDFTriplet rhs) const

Definition at line 38 of file CRDFTriplet.cpp.

References pObject, Predicate, and pSubject.

39 {
40  return (pSubject == rhs.pSubject &&
41  pObject == rhs.pObject &&
42  Predicate == rhs.Predicate);
43 }
CRDFNode * pSubject
Definition: CRDFTriplet.h:38
CRDFPredicate Predicate
Definition: CRDFTriplet.h:40
CRDFNode * pObject
Definition: CRDFTriplet.h:42

Member Data Documentation

CRDFNode* CRDFTriplet::pObject
CRDFPredicate CRDFTriplet::Predicate
CRDFNode* CRDFTriplet::pSubject

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