opensurgsim
Public Member Functions | List of all members
MockTriangleData Class Reference

Triangle data for testing, storing ID and edge IDs. More...

#include <MockObjects.h>

Public Member Functions

 MockTriangleData (size_t id, const std::array< size_t, 3 > &edges)
 Constructor. More...
 
 MockTriangleData ()
 Constructor.
 
virtual ~MockTriangleData ()
 Destructor.
 
size_t getId () const
 Gets the triangle's unique ID in its mesh.
 
const std::array< size_t, 3 > & getEdges () const
 Gets the IDs of the triangle's edges in its mesh.
 
bool operator== (const MockTriangleData &data) const
 Compare the triangle data to another one (equality) More...
 

Detailed Description

Triangle data for testing, storing ID and edge IDs.

Constructor & Destructor Documentation

§ MockTriangleData()

MockTriangleData::MockTriangleData ( size_t  id,
const std::array< size_t, 3 > &  edges 
)
inline

Constructor.

Parameters
idUnique ID of the triangle in its mesh
edgesIDs of the triangle's edges in its mesh

Member Function Documentation

§ operator==()

bool MockTriangleData::operator== ( const MockTriangleData data) const
inline

Compare the triangle data to another one (equality)

Parameters
dataThe MockTriangleData to compare it to
Returns
True if the two triangle data are equal, False otherwise

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