flippy
a c++20 package for dynamically triangulated membrane simulations.
Loading...
Searching...
No Matches
utils.hpp File Reference

This file contains helper functions that are used throughout flippy, but are not specific to any given class. More...

#include <iostream>
#include <fstream>
#include <utility>
#include <filesystem>
#include <type_traits>
Include dependency graph for utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fp
 

Functions

static void fp::json_dump (std::string const &file_name, const Json &data)
 Simple wrapper function around Json objects built in dump() method.
 
static Json fp::json_read (std::string file_name)
 Simple wrapper function that reads the content of a text file into a json object.
 
template<typename T >
static bool fp::is_member (std::vector< T > const &v, T const &el)
 Convenient wrapper around std::find, which only works for std::vectors.
 

Detailed Description

This file contains helper functions that are used throughout flippy, but are not specific to any given class.