TECA
Public Member Functions | List of all members
teca_variant_array Class Referenceabstract

type agnostic container for array based data More...

#include <teca_variant_array.h>

Inheritance diagram for teca_variant_array:
teca_variant_array_impl< T >

Public Member Functions

 teca_variant_array (const teca_variant_array &other)=delete
 
 teca_variant_array (teca_variant_array &&other)=delete
 
teca_variant_arrayoperator= (const teca_variant_array &other)
 
teca_variant_arrayoperator= (teca_variant_array &&other)
 
virtual p_teca_variant_array new_instance () const =0
 
virtual p_teca_variant_array new_instance (size_t n) const =0
 
virtual p_teca_variant_array new_copy () const =0
 
virtual p_teca_variant_array new_copy (size_t start, size_t end) const =0
 
bool operator== (const teca_variant_array &other) const
 
virtual std::string get_class_name () const =0
 
virtual void initialize ()=0
 
template<typename T >
void get (unsigned long i, T &val) const
 
template<typename T >
void get (std::vector< T > &vals) const
 
template<typename T >
void get (size_t start, size_t end, T *vals) const
 
template<typename T >
void set (const std::vector< T > &vals)
 
template<typename T >
void set (unsigned long i, const T &val)
 
template<typename T >
void set (size_t start, size_t end, const T *vals)
 
template<typename T >
void append (const T &val)
 
template<typename T >
void append (const std::vector< T > &vals)
 
virtual unsigned long size () const noexcept=0
 
virtual void resize (unsigned long i)=0
 
virtual void reserve (unsigned long i)=0
 
virtual void clear () noexcept=0
 
void copy (const teca_variant_array &other)
 
void copy (const const_p_teca_variant_array &other)
 
void append (const teca_variant_array &other)
 
void append (const const_p_teca_variant_array &other)
 
virtual void swap (teca_variant_array &other)=0
 
void swap (const p_teca_variant_array &other)
 
virtual bool equal (const teca_variant_array &other) const =0
 
bool equal (const const_p_teca_variant_array &other) const
 
virtual int to_stream (teca_binary_stream &s) const =0
 
virtual int from_stream (teca_binary_stream &s)=0
 
virtual int to_stream (std::ostream &s) const =0
 
virtual int from_stream (std::ostream &s)=0
 
virtual unsigned int type_code () const noexcept=0
 

Detailed Description

type agnostic container for array based data

type agnostic container for array based data.


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