inline functions

This commit is contained in:
Andreas Fabri 2017-05-22 13:53:48 +02:00
parent bddd05aef4
commit fbdec23155
1 changed files with 8 additions and 8 deletions

View File

@ -69,35 +69,35 @@ public:
} }
std::ios& off(std::ios& os) inline std::ios& off(std::ios& os)
{ {
os.iword(IO::Static::get_file_format()) = IO::OFF; os.iword(IO::Static::get_file_format()) = IO::OFF;
return os; return os;
} }
std::ios& ply(std::ios& os) inline std::ios& ply(std::ios& os)
{ {
os.iword(IO::Static::get_file_format()) = IO::PLY; os.iword(IO::Static::get_file_format()) = IO::PLY;
return os; return os;
} }
std::ios& obj(std::ios& os) inline std::ios& obj(std::ios& os)
{ {
os.iword(IO::Static::get_file_format()) = IO::OBJ; os.iword(IO::Static::get_file_format()) = IO::OBJ;
return os; return os;
} }
std::ios& stl(std::ios& os) inline std::ios& stl(std::ios& os)
{ {
os.iword(IO::Static::get_file_format()) = IO::STL; os.iword(IO::Static::get_file_format()) = IO::STL;
return os; return os;
} }
IO::File_format file_format(std::ios& os) inline IO::File_format file_format(std::ios& os)
{ {
return static_cast<IO::File_format>(os.iword(IO::Static::get_file_format())); return static_cast<IO::File_format>(os.iword(IO::Static::get_file_format()));
} }
template <typename Dummy> template <typename Dummy>