LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
lbann::RootedOutputArchiveAdaptor< OutputArchiveT > Class Template Reference

#include <rooted_archive_adaptor.hpp>

Inheritance diagram for lbann::RootedOutputArchiveAdaptor< OutputArchiveT >:
[legend]
Collaboration diagram for lbann::RootedOutputArchiveAdaptor< OutputArchiveT >:
[legend]

Public Types

using archive_type = OutputArchiveT
 

Public Member Functions

 RootedOutputArchiveAdaptor (std::ostream &os, El::Grid const &g, El::Int root=0)
 
El::Grid const & grid () const noexcept
 
El::Int root () const noexcept
 
bool am_root () const noexcept
 
void set_next_name (char const *name)
 
template<typename T >
void save_on_root (T const &data)
 
template<typename T >
void prologue_on_root (T const &data)
 
template<typename T >
void epilogue_on_root (T const &data)
 

Private Types

using ThisType_ = RootedOutputArchiveAdaptor< archive_type >
 
using BaseType_ = cereal::OutputArchive< ThisType_ >
 

Private Attributes

std::optional< archive_typear_
 
El::Grid const * grid_
 
El::Int root_
 

Detailed Description

template<typename OutputArchiveT>
class lbann::RootedOutputArchiveAdaptor< OutputArchiveT >

Definition at line 57 of file rooted_archive_adaptor.hpp.

Member Typedef Documentation

◆ archive_type

template<typename OutputArchiveT>
using lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::archive_type = OutputArchiveT

Definition at line 66 of file rooted_archive_adaptor.hpp.

◆ BaseType_

template<typename OutputArchiveT>
using lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::BaseType_ = cereal::OutputArchive<ThisType_>
private

Definition at line 70 of file rooted_archive_adaptor.hpp.

◆ ThisType_

template<typename OutputArchiveT>
using lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::ThisType_ = RootedOutputArchiveAdaptor<archive_type>
private

Definition at line 69 of file rooted_archive_adaptor.hpp.

Constructor & Destructor Documentation

◆ RootedOutputArchiveAdaptor()

template<typename OutputArchiveT>
lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::RootedOutputArchiveAdaptor ( std::ostream &  os,
El::Grid const &  g,
El::Int  root = 0 
)
inline

Definition at line 73 of file rooted_archive_adaptor.hpp.

Member Function Documentation

◆ am_root()

template<typename OutputArchiveT>
bool lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::am_root ( ) const
inlinenoexcept

Definition at line 87 of file rooted_archive_adaptor.hpp.

◆ epilogue_on_root()

template<typename OutputArchiveT>
template<typename T >
void lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::epilogue_on_root ( T const &  data)
inline

Definition at line 110 of file rooted_archive_adaptor.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ grid()

template<typename OutputArchiveT>
El::Grid const& lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::grid ( ) const
inlinenoexcept

Definition at line 83 of file rooted_archive_adaptor.hpp.

Here is the caller graph for this function:

◆ prologue_on_root()

template<typename OutputArchiveT>
template<typename T >
void lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::prologue_on_root ( T const &  data)
inline

Definition at line 103 of file rooted_archive_adaptor.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ root()

template<typename OutputArchiveT>
El::Int lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::root ( ) const
inlinenoexcept

Definition at line 85 of file rooted_archive_adaptor.hpp.

Here is the caller graph for this function:

◆ save_on_root()

template<typename OutputArchiveT>
template<typename T >
void lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::save_on_root ( T const &  data)
inline

Definition at line 96 of file rooted_archive_adaptor.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_next_name()

template<typename OutputArchiveT>
void lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::set_next_name ( char const *  name)
inline

Definition at line 89 of file rooted_archive_adaptor.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ar_

template<typename OutputArchiveT>
std::optional<archive_type> lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::ar_
private

Definition at line 117 of file rooted_archive_adaptor.hpp.

◆ grid_

template<typename OutputArchiveT>
El::Grid const* lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::grid_
private

Definition at line 118 of file rooted_archive_adaptor.hpp.

◆ root_

template<typename OutputArchiveT>
El::Int lbann::RootedOutputArchiveAdaptor< OutputArchiveT >::root_
private

Definition at line 119 of file rooted_archive_adaptor.hpp.


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