dartsim/dart — pull request #99 by jslee02 (2013-09-18 10:00:34+00:00)
Title: Don't return the whole array of class member variable.

For example,

class Skeleton
{
// recommended
BodyNode* getBodyNode(int i) const;
int getNumBodyNodes() const

// not recommended
// const std::vector& getBodyNodes() const;

protected:
std::vector mBodyNodes;
// ...
};