/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * -------------------------------------------------------------------------- */ /** * @file types.h * @brief Typedefs for easier changing of types * @author Richard Roberts * @date Aug 21, 2010 * @addtogroup base */ #include #include #include namespace gtsam { /* ************************************************************************* */ std::string _defaultIndexFormatter(Index j) { return boost::lexical_cast(j); } /* ************************************************************************* */ std::string _defaultKeyFormatter(Key key) { const Symbol asSymbol(key); if(asSymbol.chr() > 0) return (std::string)asSymbol; else return boost::lexical_cast(key); } }