OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::util::detail::CSVRowProxy< Derived > Class Template Reference

#include <osvr/Util/CSV.h>

Public Member Functions

 CSVRowProxy (CSVRowProxy const &)=delete
 non-copyable
 
CSVRowProxyoperator= (CSVRowProxy const &)=delete
 non-assignable
 
 CSVRowProxy (CSVRowProxy &&other)
 move constructible More...
 
 ~CSVRowProxy ()
 
template<typename... CellArgs>
void add (Cell< CellArgs...> const &c)
 

Detailed Description

template<typename Derived>
class osvr::util::detail::CSVRowProxy< Derived >

Returned by calls to .row() on a CSV object (you'll never need instantiate manually), and only really interacted with using the operator<< and cell() calls.

Intended only to survive a single statement, and for only one to be alive (for a given CSV object) at a time. You have been warned.

Definition at line 112 of file CSV.h.

Constructor & Destructor Documentation

template<typename Derived >
osvr::util::detail::CSVRowProxy< Derived >::CSVRowProxy ( CSVRowProxy< Derived > &&  other)
inline

move constructible

When moving, don't let the moved-from proxy perform finalization of this row.

Definition at line 129 of file CSV.h.

template<typename Derived >
osvr::util::detail::CSVRowProxy< Derived >::~CSVRowProxy ( )
inline

Destructor - finalizes the row in the CSV object if we've got some data and haven't been moved-from.

Definition at line 139 of file CSV.h.

Member Function Documentation

template<typename Derived >
template<typename... CellArgs>
void osvr::util::detail::CSVRowProxy< Derived >::add ( Cell< CellArgs...> const &  c)
inline

Main function, used by the operator<< to add your cell to the row in progress. All the non-type-dependent stuff is pulled out into separate methods to let the compiler optionally reduce code size.

Definition at line 152 of file CSV.h.


The documentation for this class was generated from the following file: