TECA
The Toolkit for Extreme Climate Analysis
teca_table_collection Class Reference

A collection of named tables. More...

#include <teca_table_collection.h>

Public Types

using allocator = teca_dataset::allocator
 

Public Member Functions

void clear ()
 
template<typename nT , typename... oT>
void declare_set (nT &&a_name, oT &&...args)
 
template<typename nT >
void declare (nT &&a_name)
 
int append (p_teca_table array)
 
int append (const std::string &name, p_teca_table array)
 
int set (unsigned int i, p_teca_table array)
 
int set (const std::string &name, p_teca_table array)
 
int remove (unsigned int i)
 
int remove (const std::string &name)
 
unsigned int size () const noexcept
 
p_teca_table get (unsigned int i)
 
const_p_teca_table get (unsigned int i) const
 
bool has (const std::string &name) const
 
p_teca_table get (const std::string &name)
 
const_p_teca_table get (const std::string &name) const
 
p_teca_table operator[] (const std::string &name)
 
const_p_teca_table operator[] (const std::string &name) const
 
std::string & get_name (unsigned int i)
 
const std::string & get_name (unsigned int i) const
 
std::string get_class_name () const
 
int get_type_code () const
 
void copy (const const_p_teca_table_collection &other, allocator alloc=allocator::malloc)
 deep copy using the passed allocator for new allocations More...
 
void shallow_copy (const p_teca_table_collection &other)
 shallow copy More...
 
void swap (p_teca_table_collection &other)
 
int to_stream (teca_binary_stream &s) const
 
int from_stream (teca_binary_stream &s)
 
int to_stream (std::ostream &) const
 
int from_stream (std::istream &)
 

Static Public Member Functions

static p_teca_table_collection New ()
 

Protected Member Functions

 teca_table_collection (const teca_table_collection &)=delete
 
 teca_table_collection (const teca_table_collection &&)=delete
 
void operator= (const teca_table_collection &)=delete
 
void operator= (const teca_table_collection &&)=delete
 
void declare_set ()
 

Detailed Description

A collection of named tables.

Member Function Documentation

◆ copy()

void teca_table_collection::copy ( const const_p_teca_table_collection &  other,
allocator  alloc = allocator::malloc 
)

deep copy using the passed allocator for new allocations

◆ shallow_copy()

void teca_table_collection::shallow_copy ( const p_teca_table_collection &  other)

shallow copy


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