libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
TOKEN_GROUPS.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include "TOKEN_INFORMATION.hh"
19
20#include <introvirt/core/fwd.hh>
23
24namespace introvirt {
25namespace windows {
26namespace nt {
27
33 public:
36
43 virtual SID_AND_ATTRIBUTES& operator[](uint32_t index) = 0;
44 virtual const SID_AND_ATTRIBUTES& operator[](uint32_t index) const = 0;
45
49 virtual SID_AND_ATTRIBUTES& at(uint32_t index) = 0;
50 virtual const SID_AND_ATTRIBUTES& at(uint32_t index) const = 0;
51
58 virtual iterator erase(const const_iterator& iter) = 0;
59
65 virtual uint32_t length() const = 0;
66
72 virtual iterator begin() = 0;
73
79 virtual iterator end() = 0;
80
86 virtual const_iterator begin() const = 0;
87
93 virtual const_iterator end() const = 0;
94};
95
96} /* namespace nt */
97} /* namespace windows */
98} /* namespace introvirt */
Definition SID_AND_ATTRIBUTES.hh:52
Handler for TOKEN_GROUPS information buffers.
Definition TOKEN_GROUPS.hh:32
virtual const_iterator end() const =0
Get the end iterator.
virtual SID_AND_ATTRIBUTES & operator[](uint32_t index)=0
Get an entry at the specified index.
virtual const SID_AND_ATTRIBUTES & operator[](uint32_t index) const =0
virtual iterator begin()=0
Get an iterator to the first entry.
virtual const SID_AND_ATTRIBUTES & at(uint32_t index) const =0
virtual iterator end()=0
Get the end iterator.
virtual iterator erase(const const_iterator &iter)=0
Remove an element from the list.
virtual const_iterator begin() const =0
Get an iterator to the first entry.
virtual SID_AND_ATTRIBUTES & at(uint32_t index)=0
Get an entry at the specified index.
virtual uint32_t length() const =0
Get the number of entries.
An abstract class reprseneting a more specific token information buffer.
Definition TOKEN_INFORMATION.hh:36
Iterator helper for _INFORMATION types that have a fixed array result.
Definition array_iterator.hh:35
Core IntroVirt classes.
Definition Cr0.hh:20