suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Recorder Class Referenceabstract

A Recorder class. More...

#include <Recorder.h>

Inheritance diagram for Recorder:
Collaboration diagram for Recorder:

Public Member Functions

 Recorder (unsigned, uvec &&, OutputType, unsigned, bool)
 ctor
 
virtual void initialize (const shared_ptr< DomainBase > &)
 
void insert (double)
 
void insert (std::vector< vec > &&, uword)
 
void record (const shared_ptr< DomainBase > &)
 
virtual void clear_status ()
 
virtual void save ()
 
void print () override
 
- Public Member Functions inherited from UniqueTag
 UniqueTag (const UniqueTag &)=delete
 
 UniqueTag (UniqueTag &&)=delete
 
UniqueTagoperator= (const UniqueTag &)=delete
 
UniqueTagoperator= (UniqueTag &&)=delete
 
 ~UniqueTag () override=default
 
 Tag (unsigned=0)
 
 Tag (const Tag &)=default
 
 Tag (Tag &&) noexcept=default
 
- Public Member Functions inherited from Tag
 Tag (unsigned=0)
 
 Tag (const Tag &)=default
 
 Tag (Tag &&) noexcept=default
 
Tagoperator= (const Tag &)=delete
 
Tagoperator= (Tag &&)=delete
 
virtual ~Tag ()=default
 
void set_tag (unsigned) const
 
unsigned get_tag () const
 
void enable ()
 
void disable ()
 
void guard ()
 
void unguard ()
 
bool is_active () const
 
bool is_guarded () const
 

Protected Member Functions

virtual const uvecupdate_tag (const shared_ptr< DomainBase > &)
 
virtual void record_impl (const shared_ptr< DomainBase > &)=0
 

Static Protected Member Functions

static std::vector< vec > normalise_size (std::vector< vec > &&)
 

Protected Attributes

const OutputType original_type
 
const OutputType variable_type
 
const int component
 
const unsigned interval
 
const uvec reference_tag
 
uvec object_tag
 
std::vector< doubletime_pool
 
std::unordered_map< uword, std::vector< std::vector< vec > > > data_pool
 
unsigned counter = 0u
 

Detailed Description

A Recorder class.

Author
tlc
Date
27/07/2017
Version
0.1.0

Constructor & Destructor Documentation

◆ Recorder()

Recorder::Recorder ( unsigned  T,
uvec &&  B,
OutputType  L,
unsigned  I,
bool  H 
)

ctor

Parameters
Tunique tag
Bobject tags
Lvariable type
Irecord interval
Hif to use hdf5 format

Member Function Documentation

◆ clear_status()

void Recorder::clear_status ( )
virtual

Reimplemented in VisualisationRecorder.

Here is the caller graph for this function:

◆ initialize()

void Recorder::initialize ( const shared_ptr< DomainBase > &  D)
virtual

Reimplemented in AmplitudeRecorder, ElementRecorder, NodeRecorder, and SumRecorder.

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

◆ insert() [1/2]

void Recorder::insert ( double  T)
Here is the caller graph for this function:

◆ insert() [2/2]

void Recorder::insert ( std::vector< vec > &&  data,
uword  tag 
)

◆ normalise_size()

std::vector< vec > Recorder::normalise_size ( std::vector< vec > &&  container)
staticprotected

◆ print()

void Recorder::print ( )
overridevirtual

Reimplemented from Tag.

Reimplemented in SumRecorder, and VisualisationRecorder.

◆ record()

void Recorder::record ( const shared_ptr< DomainBase > &  D)
Here is the call graph for this function:

◆ record_impl()

virtual void Recorder::record_impl ( const shared_ptr< DomainBase > &  )
protectedpure virtual

Implemented in GlobalRecorder.

Here is the caller graph for this function:

◆ save()

void Recorder::save ( )
virtual

Reimplemented in EigenRecorder, FrameRecorder, and VisualisationRecorder.

Here is the call graph for this function:

◆ update_tag()

const uvec & Recorder::update_tag ( const shared_ptr< DomainBase > &  )
protectedvirtual
Here is the caller graph for this function:

Member Data Documentation

◆ component

const int Recorder::component
protected

◆ counter

unsigned Recorder::counter = 0u
protected

◆ data_pool

std::unordered_map<uword, std::vector<std::vector<vec> > > Recorder::data_pool
protected

◆ interval

const unsigned Recorder::interval
protected

◆ object_tag

uvec Recorder::object_tag
protected

◆ original_type

const OutputType Recorder::original_type
protected

◆ reference_tag

const uvec Recorder::reference_tag
protected

◆ time_pool

std::vector<double> Recorder::time_pool
protected

◆ variable_type

const OutputType Recorder::variable_type
protected

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