ranges: comment blocks
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Christian Zimmermann 2023-11-04 00:24:30 +01:00
parent c9f7407de8
commit 337774cd8f
32 changed files with 338 additions and 20 deletions

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/crange.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_crange_cc_h__ #ifndef __cxz_crange_cc_h__
#define __cxz_crange_cc_h__ #define __cxz_crange_cc_h__
@ -17,24 +28,7 @@ namespace CNORXZ
return UPos(id == this->id() ? 1 : 0); return UPos(id == this->id() ? 1 : 0);
} }
} }
/*
template <class Index>
decltype(auto) CIndex::formatFrom(const Index& ind) const
{
return *this;
}
template <class Index>
decltype(auto) CIndex::slice(const Sptr<Index>& ind) const
{
if(ind != nullptr){
if(ind->dim() != 0) {
return Sptr<CIndex>();
}
}
return std::make_shared<CIndex>(*this);
}
*/
template <class Xpr, class F> template <class Xpr, class F>
decltype(auto) CIndex::ifor(const Xpr& xpr, F&& f) const decltype(auto) CIndex::ifor(const Xpr& xpr, F&& f) const
{ {

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/crange.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_crange_h__ #ifndef __cxz_crange_h__
#define __cxz_crange_h__ #define __cxz_crange_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/dindex.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_dindex_cc_h__ #ifndef __cxz_dindex_cc_h__
#define __cxz_dindex_cc_h__ #define __cxz_dindex_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/dindex.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_dindex_h__ #ifndef __cxz_dindex_h__
#define __cxz_dindex_h__ #define __cxz_dindex_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/eindex.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_eindex_cc_h__ #ifndef __cxz_eindex_cc_h__
#define __cxz_eindex_cc_h__ #define __cxz_eindex_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/eindex.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_eindex_h__ #ifndef __cxz_eindex_h__
#define __cxz_eindex_h__ #define __cxz_eindex_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_base.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_base_cc_h__ #ifndef __cxz_index_base_cc_h__
#define __cxz_index_base_cc_h__ #define __cxz_index_base_cc_h__

View file

@ -1,4 +1,14 @@
// -*- C++ -*- // -*- C++ -*-
/**
@file include/ranges/index_base.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_base_h__ #ifndef __cxz_index_base_h__
#define __cxz_index_base_h__ #define __cxz_index_base_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_format.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_format_cc_h__ #ifndef __cxz_index_format_cc_h__
#define __cxz_index_format_cc_h__ #define __cxz_index_format_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_format.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_format_h__ #ifndef __cxz_index_format_h__
#define __cxz_index_format_h__ #define __cxz_index_format_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_mul.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_mul_cc_h__ #ifndef __cxz_index_mul_cc_h__
#define __cxz_index_mul_cc_h__ #define __cxz_index_mul_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_mul.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_mul_h__ #ifndef __cxz_index_mul_h__
#define __cxz_index_mul_h__ #define __cxz_index_mul_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_pack.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_pack_cc_h__ #ifndef __cxz_index_pack_cc_h__
#define __cxz_index_pack_cc_h__ #define __cxz_index_pack_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_pack.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_pack_h__ #ifndef __cxz_index_pack_h__
#define __cxz_index_pack_h__ #define __cxz_index_pack_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/index_utils.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_index_utils_h__ #ifndef __cxz_index_utils_h__
#define __cxz_index_utils_h__ #define __cxz_index_utils_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/lindex.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_lindex_cc_h__ #ifndef __cxz_lindex_cc_h__
#define __cxz_lindex_cc_h__ #define __cxz_lindex_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/lindex.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_lindex_h__ #ifndef __cxz_lindex_h__
#define __cxz_lindex_h__ #define __cxz_lindex_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/mrange.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_mrange_cc_h__ #ifndef __cxz_mrange_cc_h__
#define __cxz_mrange_cc_h__ #define __cxz_mrange_cc_h__

View file

@ -1,4 +1,14 @@
// -*- C++ -*- // -*- C++ -*-
/**
@file include/ranges/mrange.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_mrange_h__ #ifndef __cxz_mrange_h__
#define __cxz_mrange_h__ #define __cxz_mrange_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/prange.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_prange_cc_h__ #ifndef __cxz_prange_cc_h__
#define __cxz_prange_cc_h__ #define __cxz_prange_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/prange.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_prange_h__ #ifndef __cxz_prange_h__
#define __cxz_prange_h__ #define __cxz_prange_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/range_base.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_range_base_cc_h__ #ifndef __cxz_range_base_cc_h__
#define __cxz_range_base_cc_h__ #define __cxz_range_base_cc_h__
@ -6,8 +17,6 @@
#include "dindex.h" #include "dindex.h"
#include "mrange.h" #include "mrange.h"
//#include "crange.h"
namespace CNORXZ namespace CNORXZ
{ {

View file

@ -1,7 +1,7 @@
// -*- C++ -*- // -*- C++ -*-
/** /**
@file include/range/range_base.h @file include/ranges/range_base.h
@brief RangeBase declaration @brief RangeBase declaration
Include basic headers containing defintions and macros Include basic headers containing defintions and macros

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/ranges.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#include "index_base.cc.h" #include "index_base.cc.h"
#include "range_base.cc.h" #include "range_base.cc.h"

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/ranges.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#include "range_base.h" #include "range_base.h"
#include "index_base.h" #include "index_base.h"

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/srange.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_range_cc_h__ #ifndef __cxz_range_cc_h__
#define __cxz_range_cc_h__ #define __cxz_range_cc_h__

View file

@ -1,4 +1,14 @@
// -*- C++ -*- // -*- C++ -*-
/**
@file include/ranges/srange.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_srange_h__ #ifndef __cxz_srange_h__
#define __cxz_srange_h__ #define __cxz_srange_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/urange.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_urange_cc_h__ #ifndef __cxz_urange_cc_h__
#define __cxz_urange_cc_h__ #define __cxz_urange_cc_h__

View file

@ -1,4 +1,14 @@
// -*- C++ -*- // -*- C++ -*-
/**
@file include/ranges/urange.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_urange_h__ #ifndef __cxz_urange_h__
#define __cxz_urange_h__ #define __cxz_urange_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/xindex.cc.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_xindex_cc_h__ #ifndef __cxz_xindex_cc_h__
#define __cxz_xindex_cc_h__ #define __cxz_xindex_cc_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/xindex.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_xindex_h__ #ifndef __cxz_xindex_h__
#define __cxz_xindex_h__ #define __cxz_xindex_h__

View file

@ -1,3 +1,14 @@
// -*- C++ -*-
/**
@file include/ranges/yrange.h
@brief ...
Copyright (c) 2022 Christian Zimmermann. All rights reserved.
Mail: chizeta@f3l.de
**/
#ifndef __cxz_yrange_h__ #ifndef __cxz_yrange_h__
#define __cxz_yrange_h__ #define __cxz_yrange_h__