Loading...
Searching...
No Matches
yoda.hpp File Reference

A showcase header for the doxyYoda Doxygen theme. More...

#include <cmath>
#include <string>
#include <vector>
#include <optional>
#include <functional>
Include dependency graph for yoda.hpp:

Go to the source code of this file.

Classes

class  yoda::ScopedTimer
 A simple RAII-based timer for benchmarking. More...
 
class  yoda::Vec2< T >
 A 2D vector with common geometric operations. More...
 

Namespaces

namespace  yoda
 The Yoda namespace — core utilities for the doxyYoda demo.
 
namespace  yoda::palette
 Color palette constants from the Solarized scheme.
 

Typedefs

using yoda::Vec2d = Vec2<double>
 Convenience alias for a double-precision 2D vector.
 
using yoda::Vec2i = Vec2<int>
 Convenience alias for an integer 2D vector.
 

Enumerations

enum class  yoda::Interpolation { yoda::Linear , yoda::Cosine , yoda::Cubic , yoda::CatmullRom }
 Interpolation methods available for smoothing operations. More...
 

Functions

template<typename T>
std::optional< T > yoda::find_if (const std::vector< T > &values, std::function< bool(const T &)> pred)
 Find the first element satisfying a predicate.
 
double yoda::lerp (double a, double b, double t)
 Linearly interpolate between two values.
 
template<typename T>
std::vector< T > yoda::map (const std::vector< T > &values, std::function< T(T)> fn)
 Apply a function element-wise to a vector of values.
 

Variables

constexpr unsigned int yoda::palette::base0 = 0x839496
 Body text (light mode)
 
constexpr unsigned int yoda::palette::base00 = 0x657b83
 Body text (dark mode)
 
constexpr unsigned int yoda::palette::base01 = 0x586e75
 Optional emphasized content.
 
constexpr unsigned int yoda::palette::base02 = 0x073642
 Dark background.
 
constexpr unsigned int yoda::palette::base03 = 0x002b36
 Darkest background.
 
constexpr unsigned int yoda::palette::base1 = 0x93a1a1
 Optional de-emphasized content.
 
constexpr unsigned int yoda::palette::base2 = 0xeee8d5
 Light background highlights.
 
constexpr unsigned int yoda::palette::base3 = 0xfdf6e3
 Lightest background.
 
constexpr unsigned int yoda::palette::blue = 0x268bd2
 Accent: blue.
 
constexpr unsigned int yoda::palette::cyan = 0x2aa198
 Accent: cyan.
 
constexpr unsigned int yoda::palette::green = 0x859900
 Accent: green.
 
constexpr unsigned int yoda::palette::magenta = 0xd33682
 Accent: magenta.
 
constexpr unsigned int yoda::palette::orange = 0xcb4b16
 Accent: orange.
 
constexpr unsigned int yoda::palette::red = 0xdc322f
 Accent: red.
 
constexpr unsigned int yoda::palette::violet = 0x6c71c4
 Accent: violet.
 
constexpr unsigned int yoda::palette::yellow = 0xb58900
 Accent: yellow.
 

Detailed Description

A showcase header for the doxyYoda Doxygen theme.

This file demonstrates the visual styling of various Doxygen constructs as rendered by the doxyYoda theme — code blocks, math, admonitions, member documentation, templates, and more.

Author
Rohit Goswami
Version
0.1.0
Date
2024

Definition in file yoda.hpp.