GenericContainer
GenericContaine a tool for C++ programming
Loading...
Searching...
No Matches
GenericContainer.hh File Reference
#include <iostream>
#include <string>
#include <complex>
#include <map>
#include <deque>
#include <vector>
#include <sstream>
#include <stdexcept>
#include "GenericContainerConfig.hh"

Go to the source code of this file.

Classes

class  GC_namespace::mat_type< TYPE >
 Generic matrix storage type. More...
 
class  GC_namespace::GenericContainer
 The GenericContainer class provides a flexible container for storing heterogeneous data types. More...
 

Namespaces

namespace  GC_namespace
 

Macros

#define GENERIC_CONTAINER_HH
 

Typedefs

using GC_namespace::ostream_type = std::basic_ostream<char>
 Alias for a character-based output stream.
 
using GC_namespace::istream_type = std::basic_istream<char>
 Alias for a character-based input stream.
 
using GC_namespace::mat_int_type = mat_type<int_type>
 
using GC_namespace::mat_long_type = mat_type<long_type>
 
using GC_namespace::mat_real_type = mat_type<real_type>
 
using GC_namespace::mat_complex_type = mat_type<complex_type>
 
using GC_namespace::TypeAllowed
 Enum class representing types allowed for the GenericContainer.
 

Functions

string GC_namespace::to_string (complex_type const &v)
 
template<typename TYPE >
ostream_typeGC_namespace::operator<< (ostream_type &s, vector< TYPE > const &v)
 Overload of the operator<< for printing a vector of elements of a generic type.
 
template<typename TYPE >
ostream_typeGC_namespace::operator<< (ostream_type &s, mat_type< TYPE > const &mat)
 Overload of the operator<< for printing a matrix of elements of a generic type.
 
char const * GC_namespace::to_string (GC_type s)
 Converts the GC_type enum value to a string representation.
 
void GC_namespace::writeTable (vec_string_type const &headers, vector_type const &data, ostream_type &stream, char delimiter='\t')
 
void GC_namespace::writeTable (vec_string_type const &headers, mat_real_type const &data, ostream_type &stream, char delimiter='\t')
 
void GC_namespace::writeTableFormatted (vec_string_type const &headers, vector_type const &data, ostream_type &stream)
 
void GC_namespace::writeTableFormatted (vec_string_type const &headers, mat_real_type const &data, ostream_type &stream)
 

Macro Definition Documentation

◆ GENERIC_CONTAINER_HH

#define GENERIC_CONTAINER_HH