Permalink
Browse files

added headers

  • Loading branch information...
lvv committed Dec 27, 2013
1 parent e9bce26 commit cb3a01067b2a17b740bd0f84ef0bfb53c77b1968
Showing with 82 additions and 5 deletions.
  1. +5 −0 array.h
  2. +4 −1 benchmark.h
  3. +4 −0 check.h
  4. +5 −0 csv.h
  5. +17 −1 doc/index.txt
  6. +4 −0 float.h
  7. +5 −0 last_n.h
  8. +6 −0 lvv.h
  9. +3 −0 make_unique.h
  10. +4 −0 math.h
  11. +6 −1 memoize.h
  12. +4 −1 meta.h
  13. +4 −1 mmap.h
  14. +4 −0 png.h
  15. +4 −0 spool.h
  16. +3 −0 token.h
@@ -1,3 +1,8 @@
// Array class (similar to std::array)
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_ARRAY
#define LVV_ARRAY
@@ -1,4 +1,7 @@
// Benchmarks
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_BENCHMARK_H
#define LVV_BENCHMARK_H
@@ -1,3 +1,7 @@
// Simple unit test.
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_CHECK_H
#define LVV_CHECK_H
5 csv.h
@@ -1,3 +1,8 @@
// CVS reader
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_CSV_H
#define LVV_CSV_H
@@ -4,8 +4,24 @@ LvvLib - C++ utility library
// HTML rendered version of this file is at: http://volnitsky.com/project/lvvlib
:gh-ll: http://github.com/lvv/lvvlib/tree/master/
MMAP.H
-------
Wraps and simplifies use of mmap(2) and munmap(2) functions.
///// save T oject
#define path "t.mmap"
T out;
mmap_write(path,out); // saves object out
T& in = mmap_read<T>(path); // restore it in object in
////// save T array
T a[n];
mmap_write(path,a);
size_t n; // array size
T *aa = mmap_read<T>(path,n); // restore it, size in n
ARRAY.H
-------
@@ -1,3 +1,7 @@
// Floating point numers utilities
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_FLOAT_H
#define LVV_FLOAT_H
namespace lvv {
@@ -1,3 +1,8 @@
// last_n - circular buffer class
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_LAST_N_H
#define LVV_LAST_N_H
6 lvv.h
@@ -1,3 +1,9 @@
// General/Misc utilities
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_H
#define LVV_H
@@ -1,3 +1,6 @@
// last_n - circular buffer class
// Part of lvvlib - https://github.com/lvv/lvvlib
// Missing in STD make_unique implemetaition by S T Lavavej
// http://stackoverflow.com/questions/7038357/make-unique-and-perfect-forwarding
#include <memory>
4 math.h
@@ -1,3 +1,7 @@
// math.h
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_MATH_H
#define LVV_MATH_H
@@ -1,4 +1,9 @@
// MEMOIZE() from http://slackito.com/2011/03/17/automatic-memoization-in-cplusplus0x/
// memoize - add chashing to pure function
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
// from http://slackito.com/2011/03/17/automatic-memoization-in-cplusplus0x/
#ifndef LVV_MEMOIZE_H
#define LVV_MEMOIZE_H
5 meta.h
@@ -1,5 +1,8 @@
// meta.h - template metaprogramming and convenience macros (obsolete)
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
// template metaprogramming and convenience macros
#ifndef LVV_META_H
#define LVV_META_H
5 mmap.h
@@ -1,5 +1,8 @@
// mmap(2) wrapper
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
// mmap wrapper
#include <string.h>
#include <errno.h>
4 png.h
@@ -1,3 +1,7 @@
// PNG writer
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_PNG_H
#define LVV_PNG_H
@@ -1,3 +1,7 @@
// spool.h
// Part of lvvlib - https://github.com/lvv/lvvlib
// Copyright (c) 2000-2013
// Leonid Volnitsky (Leonid@Volnitsky.com)
#ifndef LVV_SPOOL
#define LVV_SPOOL
@@ -1,3 +1,6 @@
// splits string into tokens
// part of lvvlib - https://github.com/lvv/lvvlib
#include<algorithm>
using std::find_if;
using std::find_if_not;

0 comments on commit cb3a010

Please sign in to comment.