LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
lbann::RootedInputArchiveAdaptor< InputArchiveT > Class Template Reference

#include <rooted_archive_adaptor.hpp>

Inheritance diagram for lbann::RootedInputArchiveAdaptor< InputArchiveT >:
[legend]
Collaboration diagram for lbann::RootedInputArchiveAdaptor< InputArchiveT >:
[legend]

Public Types

using archive_type = InputArchiveT
 

Public Member Functions

 RootedInputArchiveAdaptor (std::istream &is, 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 load_on_root (T &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_ = RootedInputArchiveAdaptor< archive_type >
 
using BaseType_ = cereal::InputArchive< ThisType_ >
 

Private Attributes

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

Detailed Description

template<typename InputArchiveT>
class lbann::RootedInputArchiveAdaptor< InputArchiveT >

Definition at line 123 of file rooted_archive_adaptor.hpp.

Member Typedef Documentation

◆ archive_type

template<typename InputArchiveT>
using lbann::RootedInputArchiveAdaptor< InputArchiveT >::archive_type = InputArchiveT

Definition at line 132 of file rooted_archive_adaptor.hpp.

◆ BaseType_

template<typename InputArchiveT>
using lbann::RootedInputArchiveAdaptor< InputArchiveT >::BaseType_ = cereal::InputArchive<ThisType_>
private

Definition at line 136 of file rooted_archive_adaptor.hpp.

◆ ThisType_

template<typename InputArchiveT>
using lbann::RootedInputArchiveAdaptor< InputArchiveT >::ThisType_ = RootedInputArchiveAdaptor<archive_type>
private

Definition at line 135 of file rooted_archive_adaptor.hpp.

Constructor & Destructor Documentation

◆ RootedInputArchiveAdaptor()

template<typename InputArchiveT>
lbann::RootedInputArchiveAdaptor< InputArchiveT >::RootedInputArchiveAdaptor ( std::istream &  is,
El::Grid const &  g,
El::Int  root = 0 
)
inline

Definition at line 139 of file rooted_archive_adaptor.hpp.

Member Function Documentation

◆ am_root()

template<typename InputArchiveT>
bool lbann::RootedInputArchiveAdaptor< InputArchiveT >::am_root ( ) const
inlinenoexcept

Definition at line 153 of file rooted_archive_adaptor.hpp.

Here is the caller graph for this function:

◆ epilogue_on_root()

template<typename InputArchiveT>
template<typename T >
void lbann::RootedInputArchiveAdaptor< InputArchiveT >::epilogue_on_root ( T const &  data)
inline

Definition at line 176 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 InputArchiveT>
El::Grid const& lbann::RootedInputArchiveAdaptor< InputArchiveT >::grid ( ) const
inlinenoexcept

Definition at line 149 of file rooted_archive_adaptor.hpp.

Here is the caller graph for this function:

◆ load_on_root()

template<typename InputArchiveT>
template<typename T >
void lbann::RootedInputArchiveAdaptor< InputArchiveT >::load_on_root ( T &  data)
inline

Definition at line 162 of file rooted_archive_adaptor.hpp.

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

◆ prologue_on_root()

template<typename InputArchiveT>
template<typename T >
void lbann::RootedInputArchiveAdaptor< InputArchiveT >::prologue_on_root ( T const &  data)
inline

Definition at line 169 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 InputArchiveT>
El::Int lbann::RootedInputArchiveAdaptor< InputArchiveT >::root ( ) const
inlinenoexcept

Definition at line 151 of file rooted_archive_adaptor.hpp.

Here is the caller graph for this function:

◆ set_next_name()

template<typename InputArchiveT>
void lbann::RootedInputArchiveAdaptor< InputArchiveT >::set_next_name ( char const *  name)
inline

Definition at line 155 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 InputArchiveT>
std::optional<archive_type> lbann::RootedInputArchiveAdaptor< InputArchiveT >::ar_
private

Definition at line 183 of file rooted_archive_adaptor.hpp.

◆ grid_

template<typename InputArchiveT>
El::Grid const* lbann::RootedInputArchiveAdaptor< InputArchiveT >::grid_
private

Definition at line 184 of file rooted_archive_adaptor.hpp.

◆ root_

template<typename InputArchiveT>
El::Int lbann::RootedInputArchiveAdaptor< InputArchiveT >::root_
private

Definition at line 185 of file rooted_archive_adaptor.hpp.


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