![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "lib/diff/record.hpp"
wrapped record reference.
A helper for lib::GenNode and the diff representation. RecordRef is copyable and movable, but like a reference can not be rebound. It can be used to refer to a subtree within the diff representation, without the need to copy.
Definition at line 617 of file record.hpp.
Public Member Functions | |
| RecordRef () noexcept | |
| by default create an invalid ("bottom") reference | |
| RecordRef (Target &o) noexcept | |
| create a reference bound to the given target; can not be rebound | |
| RecordRef (Target &&)=delete | |
| prevent moving into black hole | |
| RecordRef (RecordRef const &)=default | |
| RecordRef (RecordRef &&)=default | |
| RecordRef & | operator= (RecordRef const &)=delete |
| references can not be reassigned | |
| RecordRef & | operator= (RecordRef &)=delete |
| RecordRef & | operator= (RecordRef &&o) |
| assignment is not allowed, but moving is | |
| operator bool () const | |
| bool | empty () const |
| operator Target & () const | |
| target is accessed by cast | |
| Target * | get () const noexcept |
| operator string () const | |
Friends | |
| bool | operator== (RecordRef const &r1, RecordRef const &r2) |
| bool | operator!= (RecordRef const &r1, RecordRef const &r2) |
Private Types | |
| using | Target = Record< VAL > |
Private Attributes | |
| Target * | record_ |
|
inlinenoexcept |
by default create an invalid ("bottom") reference
Definition at line 626 of file record.hpp.
create a reference bound to the given target; can not be rebound
Definition at line 632 of file record.hpp.
Definition at line 619 of file record.hpp.
references can not be reassigned
assignment is not allowed, but moving is
Definition at line 648 of file record.hpp.
References RecordRef< VAL >::record_.
|
inlineexplicit |
Definition at line 656 of file record.hpp.
References RecordRef< VAL >::record_.
|
inline |
Definition at line 662 of file record.hpp.
References RecordRef< VAL >::record_.
Referenced by DataCap::matchRec(), DataCap::maybeAccessNestedRec(), RecordRef< VAL >::operator string(), and lib::diff::renderCompact().
Here is the caller graph for this function:
|
inline |
target is accessed by cast
| error::Logic | on bottom reference |
Definition at line 670 of file record.hpp.
References RecordRef< VAL >::record_.
|
inlinenoexcept |
Definition at line 679 of file record.hpp.
References RecordRef< VAL >::record_.
Referenced by WrappedStandardExeBuilder::invokeOriginalBuilder(), DataCap::matchRec(), DataCap::matchRec(), DataCap::maybeAccessNestedRec(), lib::diff::renderCompact(), and GenericRecord_test::wrapRef().
Here is the caller graph for this function:
|
inline |
Definition at line 684 of file record.hpp.
References RecordRef< VAL >::empty(), and RecordRef< VAL >::record_.
Here is the call graph for this function:
|
private |
Definition at line 621 of file record.hpp.
Referenced by RecordRef< VAL >::empty(), RecordRef< VAL >::get(), RecordRef< VAL >::operator bool(), RecordRef< VAL >::operator string(), RecordRef< VAL >::operator Target &(), and RecordRef< VAL >::operator=().
|
friend |
Definition at line 692 of file record.hpp.
|
friend |
Definition at line 697 of file record.hpp.
Collaboration diagram for RecordRef< VAL >: