Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
Seg Struct Reference

Description

Test Dummy: a "segment" representing an integer interval.

Memory management can be tracked since each instance gets a distinct ID number. Moreover, a Seg can be marked as "empty", which is visible on the string conversion

Definition at line 65 of file split-splice-test.cpp.

Static Public Attributes

static uint idGen {0}
 
static size_t cnt {0}
 
static size_t check {0}
 

Public Attributes

int start
 
int after
 
bool empty
 
uint id
 

Public Member Functions

 ~Seg ()
 
 Seg (int s, int a, bool nil=false)
 
 Seg (Seg const &ref, int s, int a)
 create a clone, but modify bounds
 
 Seg (Seg &&rr)
 move-init: causes source-ref to be invalidated
 
 operator string () const
 

Additional Inherited Members

- Protected Member Functions inherited from MoveOnly
 ~MoveOnly ()=default
 
 MoveOnly ()=default
 
 MoveOnly (MoveOnly &&)=default
 
 MoveOnly (MoveOnly const &)=delete
 
MoveOnlyoperator= (MoveOnly &&)=delete
 
MoveOnlyoperator= (MoveOnly const &)=delete
 

Constructor & Destructor Documentation

◆ ~Seg()

~Seg ( )
inline

Definition at line 72 of file split-splice-test.cpp.

◆ Seg() [1/3]

Seg ( int  s,
int  a,
bool  nil = false 
)
inline

Definition at line 78 of file split-splice-test.cpp.

◆ Seg() [2/3]

Seg ( Seg const &  ref,
int  s,
int  a 
)
inline

create a clone, but modify bounds

Definition at line 89 of file split-splice-test.cpp.

◆ Seg() [3/3]

Seg ( Seg &&  rr)
inline

move-init: causes source-ref to be invalidated

Definition at line 100 of file split-splice-test.cpp.

Member Function Documentation

◆ operator string()

operator string ( ) const
inline

Definition at line 109 of file split-splice-test.cpp.

Member Data Documentation

◆ start

int start

Definition at line 68 of file split-splice-test.cpp.

◆ after

int after

Definition at line 69 of file split-splice-test.cpp.

◆ empty

bool empty

Definition at line 70 of file split-splice-test.cpp.

◆ id

uint id

Definition at line 120 of file split-splice-test.cpp.

◆ idGen

uint idGen {0}
static

Definition at line 121 of file split-splice-test.cpp.

◆ cnt

size_t cnt {0}
static

Definition at line 122 of file split-splice-test.cpp.

◆ check

size_t check {0}
static

Definition at line 123 of file split-splice-test.cpp.

+ Inheritance diagram for Seg:
+ Collaboration diagram for Seg:

The documentation for this struct was generated from the following file: