Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QQmlJS::Dom::AttachedInfoT< Info > Class Template Referencefinal

#include <qqmldomattachedinfo_p.h>

+ Inheritance diagram for QQmlJS::Dom::AttachedInfoT< Info >:
+ Collaboration diagram for QQmlJS::Dom::AttachedInfoT< Info >:

Public Types

using Ptr = std::shared_ptr< AttachedInfoT >
 
using InfoType = Info
 
- Public Types inherited from QQmlJS::Dom::AttachedInfo
enum class  PathType { Relative , Canonical }
 
enum class  FindOption { None = 0 , SetRootTreePath = 0x1 , SetFoundTreePath = 0x2 , Default = 0x3 }
 
using Ptr = std::shared_ptr< AttachedInfo >
 
- Public Types inherited from QQmlJS::Dom::DomBase
using FilterT = function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)>
 

Public Member Functions

 AttachedInfoT (Ptr parent=nullptr, Path p=Path())
 
 AttachedInfoT (const AttachedInfoT &o)
 
AttachedInfo::Ptr instantiate (AttachedInfo::Ptr parent, Path p=Path()) const override
 
DomItem infoItem (DomItem &self) override
 
Ptr makeCopy (DomItem &self) const
 
Ptr parent () const
 
const Infoinfo () const
 
Infoinfo ()
 
- Public Member Functions inherited from QQmlJS::Dom::AttachedInfo
DomType kind () const override
 
Path canonicalPath (DomItem &self) const override
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor) override
 
AttachedInfo::Ptr makeCopy (DomItem &self) const
 
Ptr parent () const
 
Path path () const
 
void setPath (Path p)
 
 AttachedInfo (Ptr parent=nullptr, Path p=Path())
 
 AttachedInfo (const AttachedInfo &o)
 
DomItem itemAtPath (DomItem &self, Path p, PathType pType=PathType::Relative) const
 
DomItem infoAtPath (DomItem &self, Path p, PathType pType=PathType::Relative) const
 
MutableDomItem ensureItemAtPath (MutableDomItem &self, Path p, PathType pType=PathType::Relative)
 
MutableDomItem ensureInfoAtPath (MutableDomItem &self, Path p, PathType pType=PathType::Relative)
 
virtual AttachedInfo::Ptr instantiate (AttachedInfo::Ptr parent, Path p=Path()) const =0
 
virtual DomItem infoItem (DomItem &self)=0
 
DomItem infoItem (DomItem &self) const
 
QMap< Path, PtrsubItems () const
 
void setSubItems (QMap< Path, Ptr > v)
 
- Public Member Functions inherited from QQmlJS::Dom::OwningItem
 OwningItem (const OwningItem &o)
 
 OwningItem (int derivedFrom=0)
 
 OwningItem (int derivedFrom, QDateTime lastDataUpdateAt)
 
 OwningItem (const OwningItem &&)=delete
 
OwningItemoperator= (const OwningItem &&)=delete
 
Path canonicalPath (DomItem &self) const override=0
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor) override
 
std::shared_ptr< OwningItemmakeCopy (DomItem &self) const
 
Path pathFromOwner () const
 
Path pathFromOwner (DomItem &) const override final
 
DomItem containingObject (DomItem &self) const override
 
int derivedFrom () const
 
virtual int revision () const
 
QDateTime createdAt () const
 
virtual QDateTime lastDataUpdateAt () const
 
virtual void refreshedDataAt (QDateTime tNew)
 
virtual bool frozen () const
 
virtual bool freeze ()
 
QDateTime frozenAt () const
 
virtual void addError (DomItem &self, ErrorMessage msg)
 
void addErrorLocal (ErrorMessage msg)
 
void clearErrors (ErrorGroups groups=ErrorGroups({}))
 
bool iterateErrors (DomItem &self, function_ref< bool(DomItem source, ErrorMessage msg)> visitor, Path inPath=Path())
 
QMultiMap< Path, ErrorMessagelocalErrors () const
 
virtual bool iterateSubOwners (DomItem &self, function_ref< bool(DomItem &owner)> visitor)
 
QBasicMutexmutex () const
 
- Public Member Functions inherited from QQmlJS::Dom::DomBase
virtual ~DomBase ()=default
 
DomBasedomBase ()
 
virtual DomType kind () const =0
 
virtual DomKind domKind () const
 
virtual Path pathFromOwner (DomItem &self) const =0
 
virtual Path canonicalPath (DomItem &self) const =0
 
virtual bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor)=0
 
bool iterateDirectSubpathsConst (DomItem &self, DirectVisitor) const
 
virtual DomItem containingObject (DomItem &self) const
 
virtual void dump (DomItem &, Sink sink, int indent, FilterT filter) const
 
virtual quintptr id () const
 
QString typeName () const
 
virtual QList< QStringfields (DomItem &self) const
 
virtual DomItem field (DomItem &self, QStringView name) const
 
virtual index_type indexes (DomItem &self) const
 
virtual DomItem index (DomItem &self, index_type index) const
 
virtual QSet< QString > const keys (DomItem &self) const
 
virtual DomItem key (DomItem &self, QString name) const
 
virtual QString canonicalFilePath (DomItem &self) const
 
virtual void writeOut (DomItem &self, OutWriter &lw) const
 
virtual QCborValue value () const
 

Static Public Member Functions

static Ptr createTree (Path p=Path())
 
static Ptr ensure (Ptr self, Path path, PathType pType=PathType::Relative)
 
static Ptr find (Ptr self, Path p, PathType pType=PathType::Relative)
 
static AttachedInfoLookupResult< PtrfindAttachedInfo (DomItem &item, QStringView fieldName, AttachedInfo::FindOptions options)
 
static Ptr treePtr (DomItem &item, QStringView fieldName)
 
static bool visitTree (Ptr base, function_ref< bool(Path, Ptr)>visitor, Path basePath=Path())
 
- Static Public Member Functions inherited from QQmlJS::Dom::AttachedInfo
static Ptr ensure (Ptr self, Path path, PathType pType=PathType::Relative)
 Returns that the AttachedInfo corresponding to the given path, creating it if it does not exists.
 
static Ptr find (Ptr self, Path p, PathType pType=PathType::Relative)
 
static AttachedInfoLookupResult< PtrfindAttachedInfo (DomItem &item, QStringView treeFieldName, FindOptions options=AttachedInfo::FindOption::None)
 
static Ptr treePtr (DomItem &item, QStringView fieldName)
 
- Static Public Member Functions inherited from QQmlJS::Dom::OwningItem
static int nextRevision ()
 

Static Public Attributes

static constexpr DomType kindValue = DomType::AttachedInfo
 
- Static Public Attributes inherited from QQmlJS::Dom::AttachedInfo
static constexpr DomType kindValue = DomType::AttachedInfo
 

Protected Member Functions

std::shared_ptr< OwningItemdoCopy (DomItem &) const override
 
virtual std::shared_ptr< OwningItemdoCopy (DomItem &self) const =0
 

Additional Inherited Members

- Protected Attributes inherited from QQmlJS::Dom::AttachedInfo
Path m_path
 
std::weak_ptr< AttachedInfom_parent
 
QMap< Path, Ptrm_subItems
 

Detailed Description

template<typename Info>
class QQmlJS::Dom::AttachedInfoT< Info >

Definition at line 154 of file qqmldomattachedinfo_p.h.

Member Typedef Documentation

◆ InfoType

template<typename Info >
using QQmlJS::Dom::AttachedInfoT< Info >::InfoType = Info

Definition at line 159 of file qqmldomattachedinfo_p.h.

◆ Ptr

template<typename Info >
using QQmlJS::Dom::AttachedInfoT< Info >::Ptr = std::shared_ptr<AttachedInfoT>

Definition at line 158 of file qqmldomattachedinfo_p.h.

Constructor & Destructor Documentation

◆ AttachedInfoT() [1/2]

template<typename Info >
QQmlJS::Dom::AttachedInfoT< Info >::AttachedInfoT ( Ptr  parent = nullptr,
Path  p = Path() 
)
inline

Definition at line 161 of file qqmldomattachedinfo_p.h.

◆ AttachedInfoT() [2/2]

template<typename Info >
QQmlJS::Dom::AttachedInfoT< Info >::AttachedInfoT ( const AttachedInfoT< Info > &  o)
inline

Definition at line 162 of file qqmldomattachedinfo_p.h.

References i, and o.

Member Function Documentation

◆ createTree()

template<typename Info >
static Ptr QQmlJS::Dom::AttachedInfoT< Info >::createTree ( Path  p = Path())
inlinestatic

Definition at line 174 of file qqmldomattachedinfo_p.h.

Referenced by QQmlJS::Dom::UpdatedScriptExpression::createTree().

+ Here is the caller graph for this function:

◆ doCopy()

template<typename Info >
std::shared_ptr< OwningItem > QQmlJS::Dom::AttachedInfoT< Info >::doCopy ( DomItem ) const
inlineoverrideprotectedvirtual

Implements QQmlJS::Dom::OwningItem.

Definition at line 229 of file qqmldomattachedinfo_p.h.

◆ ensure()

template<typename Info >
static Ptr QQmlJS::Dom::AttachedInfoT< Info >::ensure ( Ptr  self,
Path  path,
PathType  pType = PathType::Relative 
)
inlinestatic

Definition at line 178 of file qqmldomattachedinfo_p.h.

Referenced by QQmlJS::Dom::UpdatedScriptExpression::ensure().

+ Here is the caller graph for this function:

◆ find()

template<typename Info >
static Ptr QQmlJS::Dom::AttachedInfoT< Info >::find ( Ptr  self,
Path  p,
PathType  pType = PathType::Relative 
)
inlinestatic

Definition at line 182 of file qqmldomattachedinfo_p.h.

◆ findAttachedInfo()

template<typename Info >
static AttachedInfoLookupResult< Ptr > QQmlJS::Dom::AttachedInfoT< Info >::findAttachedInfo ( DomItem item,
QStringView  fieldName,
AttachedInfo::FindOptions  options 
)
inlinestatic

Definition at line 186 of file qqmldomattachedinfo_p.h.

References item.

Referenced by QQmlJS::Dom::UpdatedScriptExpression::findAttachedInfo().

+ Here is the caller graph for this function:

◆ info() [1/2]

template<typename Info >
Info & QQmlJS::Dom::AttachedInfoT< Info >::info ( )
inline

Definition at line 227 of file qqmldomattachedinfo_p.h.

◆ info() [2/2]

template<typename Info >
const Info & QQmlJS::Dom::AttachedInfoT< Info >::info ( ) const
inline

Definition at line 226 of file qqmldomattachedinfo_p.h.

◆ infoItem()

template<typename Info >
DomItem QQmlJS::Dom::AttachedInfoT< Info >::infoItem ( DomItem self)
inlineoverridevirtual

Implements QQmlJS::Dom::AttachedInfo.

Definition at line 217 of file qqmldomattachedinfo_p.h.

◆ instantiate()

template<typename Info >
AttachedInfo::Ptr QQmlJS::Dom::AttachedInfoT< Info >::instantiate ( AttachedInfo::Ptr  parent,
Path  p = Path() 
) const
inlineoverridevirtual

Implements QQmlJS::Dom::AttachedInfo.

Definition at line 214 of file qqmldomattachedinfo_p.h.

References parent.

◆ makeCopy()

template<typename Info >
Ptr QQmlJS::Dom::AttachedInfoT< Info >::makeCopy ( DomItem self) const
inline

Definition at line 219 of file qqmldomattachedinfo_p.h.

◆ parent()

template<typename Info >
Ptr QQmlJS::Dom::AttachedInfoT< Info >::parent ( ) const
inline

Definition at line 224 of file qqmldomattachedinfo_p.h.

◆ treePtr()

template<typename Info >
static Ptr QQmlJS::Dom::AttachedInfoT< Info >::treePtr ( DomItem item,
QStringView  fieldName 
)
inlinestatic

Definition at line 192 of file qqmldomattachedinfo_p.h.

References item.

Referenced by QQmlJS::Dom::UpdatedScriptExpression::treePtr().

+ Here is the caller graph for this function:

◆ visitTree()

template<typename Info >
static bool QQmlJS::Dom::AttachedInfoT< Info >::visitTree ( Ptr  base,
function_ref< bool(Path, Ptr)>  visitor,
Path  basePath = Path() 
)
inlinestatic

Definition at line 196 of file qqmldomattachedinfo_p.h.

References base, QString::cbegin(), QString::cend(), it, and QQmlJS::Dom::Path::path().

Referenced by QQmlJS::Dom::UpdatedScriptExpression::visitTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ kindValue

template<typename Info >
constexpr DomType QQmlJS::Dom::AttachedInfoT< Info >::kindValue = DomType::AttachedInfo
staticconstexpr

Definition at line 157 of file qqmldomattachedinfo_p.h.


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