CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CNORXZ::CRange Class Reference

#include <crange.h>

Inheritance diagram for CNORXZ::CRange:
CNORXZ::RangeInterface< CRange > CNORXZ::RangeBase

Public Types

typedef RangeBase RB
 
typedef CIndex IndexType
 
typedef SizeT MetaType
 
typedef CRangeFactory FType
 
- Public Types inherited from CNORXZ::RangeInterface< CRange >
typedef RangeBase RB
 
- Public Types inherited from CNORXZ::RangeBase
typedef DIndex IndexType
 

Public Member Functions

virtual SizeT size () const override final
 
virtual SizeT dim () const override final
 
virtual String stringMeta (SizeT pos) const override final
 
virtual const TypeInfotype () const override final
 
virtual const TypeInfometaType () const override final
 
virtual RangePtr extend (const RangePtr &r) const override final
 
SizeT get (SizeT pos) const
 
SizeT getMeta (SizeT metaPos) const
 
- Public Member Functions inherited from CNORXZ::RangeInterface< CRange >
decltype(auto) begin () const
 
decltype(auto) end () const
 
virtual DIndex index (SizeT pos) const override final
 
- Public Member Functions inherited from CNORXZ::RangeBase
virtual ~RangeBase ()=default
 
virtual RangePtr sub (SizeT num) const
 
virtual MArray< RangePtrsub () const
 
bool operator== (const RangeBase &in) const
 
bool operator!= (const RangeBase &in) const
 
Uuid id () const
 
DIndex begin () const
 
DIndex end () const
 

Public Attributes

friend CRangeFactory
 
- Public Attributes inherited from CNORXZ::RangeBase
friend RangeFactoryBase
 

Protected Member Functions

 CRange ()=default
 
 CRange (const CRange &in)=delete
 
 CRange (SizeT size)
 
virtual Vector< Uuidkey () const override final
 
- Protected Member Functions inherited from CNORXZ::RangeInterface< CRange >
 RangeInterface ()=default
 
- Protected Member Functions inherited from CNORXZ::RangeBase
 RangeBase ()
 

Protected Attributes

SizeT mSize = 0
 
 SERIALIZATION_FUNCTIONS_NOPUB
 
- Protected Attributes inherited from CNORXZ::RangeBase
Uuid mId = {0,0}
 
Wptr< RangeBasemThis
 

Detailed Description


Classic Range The parameter space is given by a set of positve integer numbers running form 0 to size-1

Definition at line 166 of file crange.h.

Member Typedef Documentation

◆ FType

Definition at line 172 of file crange.h.

◆ IndexType

Definition at line 170 of file crange.h.

◆ MetaType

Definition at line 171 of file crange.h.

◆ RB

Definition at line 169 of file crange.h.

Constructor & Destructor Documentation

◆ CRange() [1/3]

CNORXZ::CRange::CRange ( )
protecteddefault

default constructor

◆ CRange() [2/3]

CNORXZ::CRange::CRange ( const CRange & in)
protecteddelete

◆ CRange() [3/3]

CNORXZ::CRange::CRange ( SizeT size)
protected

create range of given size

Parameters
size,inputsize, size type

Definition at line 198 of file crange.cc.

Member Function Documentation

◆ dim()

SizeT CNORXZ::CRange::dim ( ) const
finaloverridevirtual

Range dimension. Returns the range's dimension, which is equivalent to the number of sub-ranges. If a sub-range has non-zero dimension this is NOT taken into account!

Implements CNORXZ::RangeBase.

Definition at line 215 of file crange.cc.

◆ extend()

RangePtr CNORXZ::CRange::extend ( const RangePtr & r) const
finaloverridevirtual

Create extended range. Creates a new range consisting of the meta data spaces of this range and the range r

Parameters
rshared pointer to range used for extension

Implements CNORXZ::RangeBase.

Definition at line 235 of file crange.cc.

◆ get()

SizeT CNORXZ::CRange::get ( SizeT pos) const

return meta data at given position

Parameters
posposition, size type

Definition at line 200 of file crange.cc.

◆ getMeta()

SizeT CNORXZ::CRange::getMeta ( SizeT metaPos) const

return position for given meta data

Parameters
metaPosmeta data, size type

Definition at line 205 of file crange.cc.

◆ key()

Vector< Uuid > CNORXZ::CRange::key ( ) const
finaloverrideprotectedvirtual

Implements CNORXZ::RangeBase.

Definition at line 241 of file crange.cc.

◆ metaType()

const TypeInfo & CNORXZ::CRange::metaType ( ) const
finaloverridevirtual

The type of the range's meta data

Implements CNORXZ::RangeBase.

Definition at line 230 of file crange.cc.

◆ size()

SizeT CNORXZ::CRange::size ( ) const
finaloverridevirtual

Range size

Implements CNORXZ::RangeBase.

Definition at line 210 of file crange.cc.

◆ stringMeta()

std::string CNORXZ::CRange::stringMeta ( SizeT pos) const
finaloverridevirtual

Meta data in string format at lexicographic position pos.

Parameters
possize type argument

Implements CNORXZ::RangeBase.

Definition at line 220 of file crange.cc.

◆ type()

const TypeInfo & CNORXZ::CRange::type ( ) const
finaloverridevirtual

Range type

Implements CNORXZ::RangeBase.

Definition at line 225 of file crange.cc.

Member Data Documentation

◆ CRangeFactory

friend CNORXZ::CRange::CRangeFactory

Definition at line 174 of file crange.h.

◆ mSize

SizeT CNORXZ::CRange::mSize = 0
protected

range size

Definition at line 207 of file crange.h.

◆ SERIALIZATION_FUNCTIONS_NOPUB

CNORXZ::CRange::SERIALIZATION_FUNCTIONS_NOPUB
protected

Definition at line 209 of file crange.h.


The documentation for this class was generated from the following files: