coding style - topasmc/dicom-interface GitHub Wiki

  • A file
#ifndef FILENAME_H
#define FILENAME_H


/// \file
/// 
/// An introduction for this source file
*/

#include <C++> //start with C++ includes

#include <rti/base/rti_vec.hpp> //full path

namespace rti{

/// \class class_name
/// description
class {


}

}

#endif
  • All lower capital

  • Method: one-line per

CUDA_HOST
return_type
method_name(double a)
{

}

method_name(
    double a,
    double b)
{

}

inline virtual
size_t
method_name()
const
{
    
}
⚠️ **GitHub.com Fallback** ⚠️