NEST main@caf0ae8
 
Loading...
Searching...
No Matches
dictionary.cpp File Reference
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "dictionary.h"
#include "kernel_manager.h"
Include dependency graph for dictionary.cpp:

Functions

template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &vec)
 General vector streamer.
 
template<>
std::vector< double > dictionary_::cast_value_< std::vector< double > > (const any_type &value, const std::string &key) const
 Specialization that allows passing long or empty vectors where double vectors are expected.
 
template<>
std::vector< std::string > dictionary_::cast_value_< std::vector< std::string > > (const any_type &value, const std::string &key) const
 Specialization that allows passing empty lists where a list of strings is expected.
 
std::string get_typename (const any_type &operand)
 Return typename of operand.
 
std::string get_dict_typenames (const Dictionary &dict)
 Return multi-line string displaying dictionary content.
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::vector< long > > &)
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::vector< double > > &)
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::vector< std::vector< long > > > &)
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::vector< std::vector< double > > > &)
 
std::ostream & operator<< (std::ostream &os, const std::shared_ptr< nest::Parameter > &)
 
std::ostream & operator<< (std::ostream &os, const nest::VerbosityLevel &)
 
std::ostream & operator<< (std::ostream &os, const Dictionary &dict)
 Print Dictionary.
 
std::ostream & operator<< (std::ostream &os, const std::monostate &)
 Print std::monostate as "None".
 
std::ostream & operator<< (std::ostream &os, const AnyVector &av)
 Print AnyVector.
 
std::ostream & operator<< (std::ostream &os, const EmptyList &)
 Print EmptyList.
 

Function Documentation

◆ dictionary_::cast_value_< std::vector< double > >()

template<>
std::vector< double > dictionary_::cast_value_< std::vector< double > > ( const any_type &  value,
const std::string &  key 
) const

Specialization that allows passing long or empty vectors where double vectors are expected.

Note
This specialization forwards to cast_vector_value_<double>, but is required explicitly, because, e.g., get() calls 0cast_value_() directly even if the argument is a vector.

◆ dictionary_::cast_value_< std::vector< std::string > >()

template<>
std::vector< std::string > dictionary_::cast_value_< std::vector< std::string > > ( const any_type &  value,
const std::string &  key 
) const

Specialization that allows passing empty lists where a list of strings is expected.

◆ operator<<() [1/7]

std::ostream & operator<< ( std::ostream &  os,
const nest::VerbosityLevel &   
)

◆ operator<<() [2/7]

std::ostream & operator<< ( std::ostream &  os,
const std::shared_ptr< nest::Parameter > &   
)

◆ operator<<() [3/7]

std::ostream & operator<< ( std::ostream &  os,
const std::vector< std::vector< double > > &   
)

◆ operator<<() [4/7]

std::ostream & operator<< ( std::ostream &  os,
const std::vector< std::vector< long > > &   
)

◆ operator<<() [5/7]

std::ostream & operator<< ( std::ostream &  os,
const std::vector< std::vector< std::vector< double > > > &   
)

◆ operator<<() [6/7]

std::ostream & operator<< ( std::ostream &  os,
const std::vector< std::vector< std::vector< long > > > &   
)

◆ operator<<() [7/7]

template<typename T >
std::ostream & operator<< ( std::ostream &  os,
const std::vector< T > &  vec 
)

General vector streamer.

This templated operator streams all elements of a std::vector<>.