Macaulay2 Engine
Loading...
Searching...
No Matches
Word Class Reference

Non-owning view of a non-commutative word: [begin, end) of int variable indices. More...

#include <Word.hpp>

Public Member Functions

 Word ()
 Word (const int *begin, const int *end)
 Word (const std::vector< int > &val)
void init (const int *begin, const int *end)
const intbegin () const
const intend () const
int size () const
bool operator== (Word rhs) const
int operator[] (int i) const

Private Attributes

const intmBegin
const intmEnd
int mSize

Detailed Description

Non-owning view of a non-commutative word: [begin, end) of int variable indices.

Note
AI-generated documentation. Verify against the source before relying on it.

Stores three pointers / lengths (mBegin, mEnd, mSize) into an externally owned buffer (typically a MemoryBlock arena in NCF4). The view is cheap to copy and pass around but the caller must keep the backing buffer alive for the Word's lifetime. Equality is elementwise; iteration goes through begin() / end() / operator[].

Definition at line 55 of file Word.hpp.


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