Skip to content

Commit

Permalink
Unify naming of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aksem committed Mar 11, 2024
1 parent 3f304bb commit b771997
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cola/libavoid/obstacle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ ConnRefList Obstacle::attachedConnectors(void) const
return attachedConns;
}

unsigned int Obstacle::getUniqueId(void) const
unsigned int Obstacle::uniqueId(void) const
{
return m_unique_id;
}
Expand Down
2 changes: 1 addition & 1 deletion cola/libavoid/obstacle.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Obstacle
//! @brief Returns the position of this obstacle.
//! @returns A point representing the position of this obstacle.
virtual Point position(void) const = 0;
unsigned int getUniqueId(void) const;
unsigned int uniqueId(void) const;

void setNewPoly(const Polygon& poly);
VertInf *firstVert(void);
Expand Down
8 changes: 4 additions & 4 deletions cola/libavoid/scanline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ bool CmpNodePos::operator() (const Node* u, const Node* v) const
}

// use unique ids of base objects to differentiate nodes
return u->getUniqueId() < v->getUniqueId();
return u->uniqueId() < v->uniqueId();
}


Expand Down Expand Up @@ -294,9 +294,9 @@ bool Node::isShapeInShape(Node *another)
&& max[1] <= another->max[1]);
}

unsigned int Node::getUniqueId(void) const
unsigned int Node::uniqueId(void) const
{
return v ? v->getUniqueId() : (c ? c->uniqueId : ss->uniqueId);
return v ? v->uniqueId() : (c ? c->uniqueId : ss->uniqueId);
}


Expand All @@ -322,7 +322,7 @@ int compare_events(const void *a, const void *b)
return ea->type - eb->type;
}
COLA_ASSERT(ea->v != eb->v);
return (ea->v->getUniqueId() - eb->v->getUniqueId());
return (ea->v->uniqueId() - eb->v->uniqueId());
}


Expand Down
2 changes: 1 addition & 1 deletion cola/libavoid/scanline.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Node
double firstPointBelow(size_t dim);
bool isInsideShape(size_t dimension);
bool isShapeInShape(Node *another);
unsigned int getUniqueId(void) const;
unsigned int uniqueId(void) const;
};


Expand Down

0 comments on commit b771997

Please sign in to comment.