LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
impl.hpp File Reference
#include "decl.hpp"
#include "lbann/utils/exception.hpp"
#include <google/protobuf/any.pb.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/message.h>
#include <google/protobuf/reflection.h>
#include <h2/meta/core/ValueAsType.hpp>
#include <type_traits>
Include dependency graph for impl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lbann::protobuf::details::PBCppTypePOD< T >
 
struct  lbann::protobuf::details::PBCppTypeS< T >
 

Namespaces

 lbann
 
 lbann::protobuf
 
 lbann::protobuf::details
 

Macros

#define ADD_PB_CPPTYPE(TYPE, ENUMTYPE)
 

Functions

 lbann::protobuf::details::ADD_PB_CPPTYPE (int32, INT32)
 
 lbann::protobuf::details::ADD_PB_CPPTYPE (int64, INT64)
 
 lbann::protobuf::details::ADD_PB_CPPTYPE (uint32, UINT32)
 
 lbann::protobuf::details::ADD_PB_CPPTYPE (uint64, UINT64)
 
 lbann::protobuf::details::ADD_PB_CPPTYPE (double, DOUBLE)
 
 lbann::protobuf::details::ADD_PB_CPPTYPE (float, FLOAT)
 
 lbann::protobuf::details::ADD_PB_CPPTYPE (std::string, STRING)
 
 lbann::protobuf::details::ADD_PB_CPPTYPE (bool, BOOL)
 
template<typename T >
auto lbann::protobuf::details::get_repeated_field_ref (google::protobuf::Message const &msg, std::string const &field_name)
 Common code to extract a repeated field reference from a message. More...
 

Variables

template<typename T >
constexpr auto lbann::protobuf::details::PBCppType = PBCppTypeS<T>::value
 

Macro Definition Documentation

◆ ADD_PB_CPPTYPE

#define ADD_PB_CPPTYPE (   TYPE,
  ENUMTYPE 
)
Value:
template <> \
struct PBCppTypePOD<TYPE> \
{ \
static constexpr auto value = \
google::protobuf::FieldDescriptor::CPPTYPE_##ENUMTYPE; \
}

Definition at line 69 of file impl.hpp.