struct RopePiece
Declaration
struct RopePiece { /* full declaration omitted */ };
Description
RopePiece - This class represents a view into a RopeRefCountString object. This allows references to string data to be efficiently chopped up and moved around without having to push around the string data itself. For example, we could have a 1M RopePiece and want to insert something into the middle of it. To do this, we split it into two RopePiece objects that both refer to the same underlying RopeRefCountString (just with different offsets) which is a nice constant time operation.
Declared at: clang/include/clang/Rewrite/Core/RewriteRope.h:58
Member Variables
- public llvm::IntrusiveRefCntPtr<RopeRefCountString> StrData
- public unsigned int StartOffs = 0
- public unsigned int EndOffs = 0
Method Overview
- public RopePiece()
- public RopePiece(llvm::IntrusiveRefCntPtr<RopeRefCountString> Str, unsigned int Start, unsigned int End)
- public unsigned int size() const
Methods
¶RopePiece()
RopePiece()
Declared at: clang/include/clang/Rewrite/Core/RewriteRope.h:63
¶RopePiece(llvm::IntrusiveRefCntPtr<
RopeRefCountString> Str,
unsigned int Start,
unsigned int End)
RopePiece(llvm::IntrusiveRefCntPtr<
RopeRefCountString> Str,
unsigned int Start,
unsigned int End)
Declared at: clang/include/clang/Rewrite/Core/RewriteRope.h:64
Parameters
- llvm::IntrusiveRefCntPtr<RopeRefCountString> Str
- unsigned int Start
- unsigned int End
¶unsigned int size() const
unsigned int size() const
Declared at: clang/include/clang/Rewrite/Core/RewriteRope.h:75