Пример #1
0
/*private*/
std::auto_ptr<OffsetSegmentGenerator>
OffsetCurveBuilder::getSegGen(double dist)
{
  std::auto_ptr<OffsetSegmentGenerator> osg(
    new OffsetSegmentGenerator(precisionModel, bufParams, dist)
  );
  return osg;
}
Пример #2
0
std::ostream&
operator<<(std::ostream& ostr,
           const volumedriver::ClusterLocation& loc)
{
    boost::io::ios_all_saver osg(ostr);

    return ostr << loc.sco().str()
                << ":" << std::hex  << std::setfill('0') << std::setw(4)
                << loc.offset();
}