Public Member Functions | Private Attributes | List of all members
SceneModel::Relation Class Reference

#include <Relation.h>

Public Member Functions

bool containsObject (const std::string &pType) const
 
std::string getObjectTypeA () const
 
std::string getObjectTypeB () const
 
std::string getOtherType (const std::string &pFirstType) const
 
 Relation (std::string pObjectTypeA, std::string pObjectTypeB)
 

Private Attributes

std::string mObjectTypeA
 
std::string mObjectTypeB
 

Detailed Description

This class represents a relation between to objects represented by their types.

Definition at line 28 of file Relation.h.

Constructor & Destructor Documentation

SceneModel::Relation::Relation ( std::string  pObjectTypeA,
std::string  pObjectTypeB 
)

Constructor

Parameters
pObjectTypeAtype of the first object
pObjectTypeBtype of the second object

Definition at line 22 of file Relation.cpp.

Member Function Documentation

bool SceneModel::Relation::containsObject ( const std::string &  pType) const

Returns whether object of given type participates in the relation

Parameters
pTypeto check
Returns
whether an object of this type participates in the relation

Definition at line 36 of file Relation.cpp.

std::string SceneModel::Relation::getObjectTypeA ( ) const

Get first object type

Returns
first object type

Definition at line 27 of file Relation.cpp.

std::string SceneModel::Relation::getObjectTypeB ( ) const

Get second object type

Returns
second object type

Definition at line 31 of file Relation.cpp.

std::string SceneModel::Relation::getOtherType ( const std::string &  pFirstType) const

Returns the type of the other object participating in this relation given one

Parameters
pFirstTypethe given type
Returns
the other type

Definition at line 41 of file Relation.cpp.

Member Data Documentation

std::string SceneModel::Relation::mObjectTypeA
private

First object type

Definition at line 69 of file Relation.h.

std::string SceneModel::Relation::mObjectTypeB
private

Second object type

Definition at line 74 of file Relation.h.


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


asr_relation_graph_generator
Author(s): Meißner Pascal
autogenerated on Fri Nov 15 2019 03:39:19