Blender V5.3
blender::ParsedRNAPath< N > Class Template Reference

#include <RNA_path.hh>

Public Member Functions

 ParsedRNAPath ()=default
 ParsedRNAPath (ParsedRNAPathRef path)
std::string to_string () const
 operator ParsedRNAPathRef () const

Static Public Member Functions

static std::optional< ParsedRNAPath > from_string (StringRefNull path)

Public Attributes

Vector< rna_path::Item, N > items

Detailed Description

template<int64_t N = 4>
class blender::ParsedRNAPath< N >

Storage for a parsed path, using a variable inline buffer to avoid allocations. This class helps to amortize the cost of string parsing across multiple uses of the RNA path. If this is just stored on the stack, a larger inline buffer can make more sense.

Parameters
NThe inline buffer size of the vector for optimized storage of common shorter paths.

Definition at line 142 of file RNA_path.hh.

Constructor & Destructor Documentation

◆ ParsedRNAPath() [1/2]

template<int64_t N = 4>
blender::ParsedRNAPath< N >::ParsedRNAPath ( )
default

◆ ParsedRNAPath() [2/2]

template<int64_t N = 4>
blender::ParsedRNAPath< N >::ParsedRNAPath ( ParsedRNAPathRef path)
inline

Definition at line 147 of file RNA_path.hh.

References items.

Member Function Documentation

◆ from_string()

◆ operator ParsedRNAPathRef()

template<int64_t N = 4>
blender::ParsedRNAPath< N >::operator ParsedRNAPathRef ( ) const
inline

Definition at line 153 of file RNA_path.hh.

◆ to_string()

template<int64_t N>
std::string blender::ParsedRNAPath< N >::to_string ( ) const

Definition at line 285 of file rna_path.cc.

References items, and blender::rna_path::to_string().

Member Data Documentation

◆ items

template<int64_t N = 4>
Vector<rna_path::Item, N> blender::ParsedRNAPath< N >::items

Definition at line 144 of file RNA_path.hh.

Referenced by ParsedRNAPath(), and to_string().


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